/* 吃饭打卡 · 西安美食地图 */
.eat-app{display:flex;flex-direction:column;height:calc(100vh - 64px);overflow:hidden}

/* 顶部标题栏 */
.eat-head{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:#fff;border-bottom:1px solid #ffe0ec;flex-shrink:0}
.eat-title{display:flex;align-items:center;gap:12px}
.eat-emoji{font-size:2rem}
.eat-title h1{margin:0;color:#5a2c40;font-size:1.25rem}
.eat-title p{margin:2px 0 0;color:#b08a99;font-size:.8rem}
.eat-stats{display:flex;align-items:center;gap:18px}
.eat-stat{text-align:center}
.eat-stat b{display:block;font-size:1.3rem;color:#e64980;line-height:1.1}
.eat-stat span{font-size:.72rem;color:#b08a99}

/* 主体：地图 + 可收起侧栏 */
.eat-main{flex:1;display:flex;min-height:0;position:relative;--side-w:340px}
.eat-map-wrap{flex:1;position:relative;min-width:0}
#map{position:absolute;inset:0;background:#f3e9ee}
.eat-side{position:absolute;top:0;right:0;bottom:0;width:var(--side-w);background:#fff;border-left:1px solid #ffe0ec;display:flex;flex-direction:column;min-height:0;z-index:30;transform:translateX(110%);transition:transform .28s ease;box-shadow:-12px 0 36px rgba(0,0,0,.08)}
.eat-side.open{transform:translateX(0)}
.eat-side-toggle{position:absolute;top:50%;right:0;transform:translateY(-50%);z-index:31;display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 9px;border:none;border-radius:14px 0 0 14px;background:linear-gradient(135deg,#ff6b9d,#e64980);color:#fff;font-weight:700;cursor:pointer;box-shadow:-4px 6px 18px rgba(230,73,128,.3);transition:right .28s ease;font-size:1.2rem;line-height:1}
.eat-side-toggle span:last-child{font-size:.7rem}
.eat-side-toggle.open{right:var(--side-w)}
.eat-side-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #ffe0ec}
.eat-side-head h2{margin:0;color:#5a2c40;font-size:1.05rem}
.eat-side-sub{background:#ffe1ec;color:#e64980;font-weight:700;padding:2px 10px;border-radius:20px;font-size:.8rem}
.eat-list{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
.eat-card{background:#fffafc;border:1px solid #ffe0ec;border-radius:14px;padding:12px;transition:.15s;cursor:pointer}
.eat-card:hover{box-shadow:0 6px 18px rgba(230,73,128,.15);transform:translateY(-1px)}
.eat-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.eat-card-name{font-weight:700;color:#5a2c40;font-size:.98rem}
.eat-card-stars{color:#ffb400;font-size:.85rem;white-space:nowrap;letter-spacing:1px}
.eat-card-note{color:#8a6b78;font-size:.8rem;line-height:1.5;margin-top:6px}
.eat-card-ops{display:flex;gap:8px;margin-top:8px}
.eat-card-ops button{font-size:.78rem;padding:4px 10px;border-radius:9px;border:1px solid #ffd3e2;background:#fff;color:#e64980;cursor:pointer;transition:.15s}
.eat-card-ops button:hover{background:#ffeef4}
.eat-card-del{border-color:#ffc9c9!important;color:#e25555!important}
.eat-card-del:hover{background:#fff0f0!important}
.eat-empty{text-align:center;color:#b08a99;padding:40px 20px}
.eat-empty-emoji{font-size:2.4rem;margin-bottom:8px}

/* 工具栏 + 提示 */
.eat-toolbar{position:absolute;top:14px;right:14px;display:flex;gap:10px;z-index:20}
.eat-btn{padding:9px 16px;border:none;border-radius:12px;background:linear-gradient(135deg,#ff6b9d,#e64980);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(230,73,128,.35);font-size:.9rem;transition:.15s}
.eat-btn:hover{transform:translateY(-1px)}
.eat-btn-ghost{background:#fff;color:#e64980;border:1.5px solid #ffd3e2;box-shadow:none}
.eat-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:rgba(255,255,255,.92);color:#8a6b78;font-size:.78rem;padding:7px 14px;border-radius:20px;box-shadow:0 4px 14px rgba(230,73,128,.18);pointer-events:none;max-width:90%;text-align:center}

/* 未配置 Key 占位 */
.eat-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:15}
.eat-placeholder .mp-card{background:#fff;border-radius:18px;padding:28px 34px;text-align:center;box-shadow:0 14px 40px rgba(230,73,128,.18);max-width:360px}
.eat-placeholder .mp-icon{font-size:2.6rem}
.eat-placeholder h3{margin:10px 0 6px;color:#5a2c40}
.eat-placeholder p{color:#8a6b78;font-size:.85rem;margin:0 0 14px;line-height:1.6}

/* 地图标点 */
.eat-marker{position:relative;width:34px;height:34px}
.eat-pin{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#ff6b9d,#e64980);display:flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 6px 14px rgba(230,73,128,.45);border:2px solid #fff}
.eat-marker-stars{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);font-size:10px;line-height:1;color:#e64980;background:#fff;padding:1px 5px;border-radius:9px;box-shadow:0 2px 6px rgba(230,73,128,.3);white-space:nowrap;font-weight:700}

/* 信息窗 */
.eat-info{max-width:240px}
.eat-info-name{font-weight:800;color:#5a2c40;font-size:1rem;margin-bottom:4px}
.eat-info-stars{color:#ffb400;font-size:.9rem;margin-bottom:6px;letter-spacing:1px}
.eat-info-note{color:#7a5a68;font-size:.82rem;line-height:1.5;margin-bottom:8px;white-space:pre-wrap}
.eat-info-ops{display:flex;gap:8px}
.eat-info-ops button{font-size:.78rem;padding:4px 12px;border-radius:9px;border:1px solid #ffd3e2;background:#fff;color:#e64980;cursor:pointer}
.eat-info-ops .eat-info-del{border-color:#ffc9c9;color:#e25555}

/* 表单字段 */
.eat-field{position:relative}
.eat-suggest{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:10;background:#fff;border:1px solid #ffd3e2;border-radius:12px;box-shadow:0 12px 30px rgba(230,73,128,.18);overflow:hidden;display:none}
.eat-suggest.show{display:block}
.eat-suggest-item{padding:9px 12px;cursor:pointer;border-bottom:1px solid #fff0f5;transition:.12s}
.eat-suggest-item:last-child{border-bottom:none}
.eat-suggest-item:hover{background:#fff0f6}
.eat-suggest-name{font-weight:600;color:#5a2c40;font-size:.9rem}
.eat-suggest-addr{font-size:.75rem;color:#b08a99;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eat-suggest-empty{padding:10px 12px;color:#b08a99;font-size:.82rem}
.eat-loc{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}
.eat-loc-status{font-size:.78rem;color:#b08a99;line-height:1.4}
.eat-loc-btn{padding:7px 11px;border:1.5px solid #ffd3e2;border-radius:10px;background:#fff;color:#e64980;font-weight:600;font-size:.82rem;cursor:pointer;white-space:nowrap;transition:.15s}
.eat-loc-btn:hover{background:#ffeef4}
.lj-label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:#5a2c40;font-weight:600;margin-bottom:12px}
.lj-label input,.lj-label textarea{padding:10px 12px;border:1.5px solid #ffd3e2;border-radius:12px;font-size:.95rem;font-weight:400;font-family:inherit;background:#fffafc;resize:vertical}
.lj-label input:focus,.lj-label textarea:focus{outline:none;border-color:#e64980}
.lj-form{display:flex;flex-direction:column;gap:12px}
.lj-form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:#5a2c40;font-weight:600}
.lj-form input{padding:10px 12px;border:1.5px solid #ffd3e2;border-radius:12px;font-size:.95rem;font-weight:400;font-family:inherit;background:#fffafc}
.lj-form input:focus{outline:none;border-color:#e64980}

/* 星级选择器 */
.eat-star-pick{display:flex;gap:4px;font-size:1.7rem;cursor:pointer;user-select:none}
.eat-star-pick span{color:#e0c3cf;transition:.1s;line-height:1}
.eat-star-pick span.on{color:#ffb400}
.eat-star-pick span:hover{transform:scale(1.15)}

/* 今天吃啥 · 抽签机（老虎机） */
.wheel-mask{position:fixed;inset:0;background:rgba(60,20,40,.5);display:none;align-items:center;justify-content:center;z-index:320;padding:18px}
.wheel-mask.show{display:flex}
.wheel-box{background:#fff;border-radius:22px;padding:22px;width:min(440px,100%);text-align:center;position:relative;box-shadow:0 24px 60px rgba(0,0,0,.3);animation:wheelPop .25s ease}
@keyframes wheelPop{from{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}
.wheel-box h3{margin:0 0 2px;color:#5a2c40;font-size:1.25rem;padding-right:34px}
.wheel-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff0f5;border:1px solid #ffd6e7;color:#c2648a;font-size:1.15rem;line-height:1;
  cursor:pointer;z-index:5;transition:.18s;box-shadow:0 2px 8px rgba(230,73,128,.15)}
.wheel-close:hover{background:#ff6b9d;color:#fff;border-color:transparent;transform:rotate(90deg)}
.wheel-sub{font-size:.78rem;color:#b08a99;margin:0 0 14px}

.slot-machine{display:flex;justify-content:center;margin:4px 0 14px}
.slot-window{position:relative;width:320px;max-width:100%;height:150px;overflow:hidden;border-radius:18px;
  background:linear-gradient(180deg,#fff5fa,#ffe9f1);
  border:3px solid #ff6b9d;
  box-shadow:0 10px 30px rgba(230,73,128,.28), inset 0 10px 24px rgba(230,73,128,.14)}
.slot-window.spinning{animation:slotPulse .5s ease-in-out infinite}
@keyframes slotPulse{0%,100%{box-shadow:0 10px 30px rgba(230,73,128,.28), inset 0 10px 24px rgba(230,73,128,.14)}
  50%{box-shadow:0 10px 42px rgba(230,73,128,.6), inset 0 10px 24px rgba(230,73,128,.32)}}
.slot-window::before,.slot-window::after{content:'';position:absolute;left:0;right:0;height:54px;z-index:3;pointer-events:none}
.slot-window::before{top:0;background:linear-gradient(180deg,#fff5fa 35%,rgba(255,245,250,0))}
.slot-window::after{bottom:0;background:linear-gradient(0deg,#fff5fa 35%,rgba(255,245,250,0))}
.slot-reel{position:absolute;left:0;right:0;top:0;will-change:transform}
.slot-cell{height:50px;display:flex;align-items:center;justify-content:center;gap:12px;
  font-size:1.05rem;font-weight:700;color:#5a2c40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 16px}
.slot-cell .em{font-size:1.5rem;flex-shrink:0}
.slot-cell .nm{flex:1;overflow:hidden;text-overflow:ellipsis}
.slot-cell .st{color:#ffb400;font-size:.85rem;letter-spacing:1px;flex-shrink:0}
.slot-center{position:absolute;left:0;right:0;top:50px;height:50px;z-index:2;pointer-events:none;
  border-top:2px solid rgba(230,73,128,.55);border-bottom:2px solid rgba(230,73,128,.55);
  background:rgba(230,73,128,.07);  box-shadow:inset 0 0 22px rgba(230,73,128,.25)}

.wheel-spin{margin-top:0;width:100%;padding:12px;border:none;border-radius:14px;background:linear-gradient(135deg,#ff6b9d,#e64980);color:#fff;font-size:1rem;font-weight:700;cursor:pointer;box-shadow:0 8px 24px rgba(230,73,128,.4);transition:.15s}
.wheel-spin:hover{transform:translateY(-1px)}
.wheel-spin:disabled{opacity:.6;cursor:default;transform:none}
.wheel-result{margin-top:14px;min-height:20px;font-weight:800;color:#e64980;font-size:1.05rem}
.wheel-result .win-card{display:inline-flex;flex-direction:column;align-items:center;gap:4px;background:#fff5fa;border:1px solid #ffd3e2;border-radius:14px;padding:12px 20px;animation:winPop .4s ease}
@keyframes winPop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
.wheel-result .win-name{font-size:1.15rem;color:#5a2c40;font-weight:800}
.wheel-result .win-stars{color:#ffb400;letter-spacing:2px}
.wheel-result .win-go{margin-top:6px;font-size:.82rem;padding:6px 14px;border-radius:10px;border:1.5px solid #ffd3e2;background:#fff;color:#e64980;font-weight:700;cursor:pointer}
.wheel-result .win-go:hover{background:#ffeef4}

/* 撒花 */
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:400;display:none}
.confetti.show{display:block}

/* 响应式 */
@media (max-width:820px){
  .eat-main{--side-w:86vw}
  .eat-map-wrap{min-height:44vh}
  .eat-head{flex-wrap:wrap;gap:10px}
}
