/* 梦甜私房菜 · 全局样式（卡通暖色风 / 折叠屏自适应） */
@font-face {
  font-family: 'LemiBobo';
  src: local('LemiBobo'); /* 若已安装乐米波波体则使用；否则回退到下方卡通字体栈 */
  font-display: swap;
}

:root {
  --pink: #ff8fab;
  --pink-deep: #e75a82;
  --cream: #fff6ef;
  --milk: #fffdfb;
  --brown: #6b4a3a;
  --gold: #f4b740;
  --green: #7bc47f;
  --red: #ff6b6b;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(180, 120, 100, .18);
  --cartoon: 'LemiBobo', 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--cartoon);
  background: linear-gradient(160deg, #fff0f5 0%, #fff6ef 100%);
  color: var(--brown);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* 应用容器：手机竖屏优先，居中限宽，折叠屏近方也友好 */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--milk);
  position: relative;
  overflow-x: hidden;
}

/* 顶部栏 */
.mt-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
  color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
  box-shadow: var(--shadow);
}
.mt-topbar .title { font-size: 18px; font-weight: 700; flex: 1; }
.mt-topbar .back, .mt-topbar .act { background: rgba(255,255,255,.25); color: #fff; border: none; border-radius: 12px; padding: 6px 12px; font-size: 14px; }

/* 页面容器 */
.mt-page { padding: 14px 14px 90px; }

/* 卡片 */
.mt-card {
  background: var(--milk); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 14px; border: 1px solid #ffe3ec;
}
.mt-h1 { font-size: 22px; font-weight: 800; margin: 4px 0 10px; color: var(--pink-deep); }
.mt-h2 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.mt-sub { font-size: 13px; color: #b08; opacity: .8; margin: 2px 0 8px; }
.mt-divider { height: 1px; background: #ffe3ec; margin: 10px 0; }
.mt-empty { text-align: center; color: #c9a; padding: 40px 10px; font-size: 15px; }

/* 按钮 */
.mt-btn {
  display: inline-block; border: none; border-radius: 14px; padding: 11px 16px;
  font-size: 15px; font-weight: 700; background: #ffe3ec; color: var(--pink-deep);
  box-shadow: var(--shadow); transition: transform .1s;
}
.mt-btn:active { transform: scale(.96); }
.mt-btn-primary { background: linear-gradient(90deg, var(--pink), var(--pink-deep)); color: #fff; }
.mt-btn-ghost { background: #fff; color: var(--pink-deep); border: 2px solid var(--pink); }
.mt-btn-danger { background: #ffd9d9; color: var(--red); }
.mt-btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }
.mt-btn:disabled { opacity: .45; box-shadow: none; }

/* 标签 */
.mt-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #ffe3ec; color: var(--pink-deep); margin: 2px; }
.mt-tag-hot { background: #fff0c2; color: #b8860b; }
.mt-tag-fest { background: #ffd9ec; color: #d63384; }
.mt-tag-sold { background: #e0e0e0; color: #888; }
.mt-price { color: var(--red); font-weight: 800; font-size: 16px; }

/* 星级 */
.mt-stars { font-size: 18px; letter-spacing: 2px; }

/* 网格布局 */
.mt-grid { display: grid; gap: 12px; }
.mt-grid.c2 { grid-template-columns: 1fr 1fr; }
.mt-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.mt-row { display: flex; align-items: center; gap: 8px; }
.mt-col { display: flex; flex-direction: column; gap: 6px; }

/* 表单 */
.mt-field { margin-bottom: 12px; }
.mt-label { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: block; }
.mt-input, .mt-select, .mt-textarea {
  width: 100%; border: 2px solid #ffe3ec; border-radius: 12px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--brown);
}
.mt-input:focus, .mt-textarea:focus { outline: none; border-color: var(--pink); }
.mt-textarea { min-height: 72px; resize: vertical; }

/* 列表 */
.mt-list { list-style: none; padding: 0; margin: 0; }
.mt-item { background: var(--milk); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid #ffe3ec; }

/* 底部导航条 */
.mt-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; z-index: 30;
  background: #fff; border-top: 2px solid #ffe3ec; box-shadow: 0 -4px 14px rgba(180,120,100,.12);
}
.mt-tabbar button {
  flex: 1; border: none; background: none; padding: 8px 2px 10px; font-size: 12px; color: #c9a;
}
.mt-tabbar button.active { color: var(--pink-deep); font-weight: 700; }
.mt-tabbar .ico { font-size: 20px; display: block; }

/* 浮动音效开关 */
#mt-audio-toggle {
  position: fixed; right: 12px; bottom: 64px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep)); color: #fff; font-size: 20px;
  box-shadow: var(--shadow);
}

/* Toast */
#mt-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; max-width: 480px; pointer-events: none;
}
.mt-toast-item {
  background: rgba(60,30,40,.9); color: #fff; padding: 10px 18px; border-radius: 14px;
  font-size: 14px; opacity: 0; transform: translateY(-10px); transition: all .3s; max-width: 90%;
}
.mt-toast-item.show { opacity: 1; transform: translateY(0); }

/* 主页面热区 */
.home-wrap { position: relative; width: 100%; }
.home-bg { width: 100%; border-radius: 16px; display: block; }
.hotspot {
  position: absolute; border: none; background: transparent; border-radius: 50%;
  cursor: pointer; padding: 0;
}
.hotspot:active { filter: brightness(1.1); }
.calendar-layer {
  position: absolute; color: #5a3; font-weight: 800; text-align: center; line-height: 1.1;
  pointer-events: none; text-shadow: 0 1px 2px rgba(255,255,255,.7);
}

/* 转盘 */
.wheel-wrap { position: relative; width: 300px; height: 300px; margin: 20px auto; }
.wheel-disc { width: 100%; height: 100%; border-radius: 50%; transition: transform 5s cubic-bezier(.15,.85,.2,1); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.wheel-sec { position: absolute; width: 50%; height: 50%; transform-origin: 100% 100%; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 30px; z-index: 5; }
.wheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 4; }

/* 换装叠层 */
.skin-hat { position: absolute; font-size: 40px; pointer-events: none; }

/* 通用工具 */
.center { text-align: center; }
.mt-muted { color: #b08; opacity: .7; font-size: 13px; }
.spacer { height: 12px; }
