:root {
  --bg: #fff5f8;
  --bg-2: #ffeaf2;
  --ink: #3b2633;
  --muted: #8f6b7d;
  --card: #ffffff;
  --line: #fad4e4;
  --accent: #ec4899;
  --accent-deep: #db2777;
  --accent-soft: #fce7f3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  cursor: url("img/cursor/Normal.cur"), auto;
}
body {
  background: linear-gradient(180deg, #fff5f8 0%, #ffedf4 48%, #fff7fa 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a, button, .card, .game-card, .modal-close, .m-arrow, .cart-close, .ci-del, .noodle-ing, .redeem-row button {
  cursor: url("img/cursor/Link.cur"), pointer !important;
}
input[type="text"], textarea {
  cursor: url("img/cursor/Text.cur"), text !important;
}
button:disabled, .disabled {
  cursor: url("img/cursor/Unavailable.cur"), not-allowed !important;
}
.hidden { display: none !important; }

/* ===== 樱花飘落画布 ===== */
#sakuraCanvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 6;
}

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 25;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 5vw;
  background: rgba(255, 245, 248, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-logo { width: 26px; height: 26px; border-radius: 7px; display: block; }
.brand strong { color: var(--accent-deep); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-pill {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  transition: .18s; white-space: nowrap;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.pts-pill { background: linear-gradient(135deg, #fff0f6, #fce7f3); border-color: #f9a8d4; color: #be185d; }
.petal-pill.on { background: #fce7f3; border-color: #f472b6; color: #be185d; }
.search {
  width: 220px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--ink); outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 72, 153, .12); }

/* ===== Hero 双栏：左文案 + 右长图与小游戏厅 ===== */
.hero {
  position: relative; z-index: 10;
  padding: 44px 5vw 42px;
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.35fr);
  gap: 36px; align-items: center;
}
.hero-kicker { letter-spacing: .32em; font-size: 12px; color: var(--accent-deep); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.24; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 540px; margin: 18px 0 26px; color: var(--muted); font-size: 15px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff;
  font-size: 15px; font-weight: 600; transition: .2s;
  box-shadow: 0 8px 20px rgba(236, 72, 153, .28);
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, #db2777, #ec4899); }
.btn-soft {
  background: #fff; color: #be185d; border: 1px solid #f9a8d4;
  box-shadow: 0 4px 12px rgba(236, 72, 153, .08);
}
.btn-soft:hover { background: #fce7f3; color: #9d174d; }

.hero-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-banner-card {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 2px solid #fbcfe8; background: #ffe4ef;
  box-shadow: 0 14px 36px rgba(236, 72, 153, .14);
  aspect-ratio: 16 / 8.2;
}
.hero-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner-badge {
  position: absolute; left: 14px; top: 12px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px);
  color: #be185d; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; border: 1px solid #fbcfe8;
}

/* 可扩展小游戏架（以后加更多游戏自动横滑/扩展） */
.arcade-bar {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px);
  border: 1.5px solid #fbcfe8; border-radius: 20px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, .09);
}
.arcade-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 0 2px;
}
.arcade-title { font-size: 13px; font-weight: 700; color: #be185d; }
.arcade-sub { font-size: 12px; color: var(--muted); }
.game-dock {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin; scrollbar-color: #f9a8d4 transparent;
}
.game-card {
  flex: 1 0 155px; min-width: 155px; max-width: 210px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid #fce7f3; background: linear-gradient(135deg, #fff, #fff5f9);
  text-align: left; transition: .18s;
}
.game-card:hover {
  transform: translateY(-2px); border-color: #f472b6;
  box-shadow: 0 8px 18px rgba(236, 72, 153, .16);
  background: linear-gradient(135deg, #fff, #fce7f3);
}
.game-card.soon {
  border-style: dashed; border-color: #f9a8d4; background: #fff9fb; opacity: .82;
}
.game-card.soon:hover { transform: none; box-shadow: none; }
.gc-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #fce7f3;
}
.gc-info { min-width: 0; flex: 1; }
.gc-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-tag { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 30px 5vw; }
}

/* ===== 主体 Mod 图书馆 ===== */
.section { position: relative; z-index: 10; padding: 4.5vh 5vw 8vh; border-top: 1px solid var(--line); }
.kicker { letter-spacing: .3em; font-size: 12px; color: var(--accent-deep); }
.section h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 20px; }

.tabs {
  position: sticky; top: 59px; z-index: 15;
  display: flex; gap: 10px; overflow-x: auto;
  padding: 10px 4px; margin: 0 -4px 24px;
  background: rgba(255, 245, 248, .92); backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto;
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 14px;
  white-space: nowrap; transition: .15s;
}
.tabs button:hover { color: var(--accent-deep); border-color: var(--accent); background: #fff0f6; }
.tabs button.active {
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; border-color: #ec4899;
  box-shadow: 0 4px 12px rgba(236, 72, 153, .25);
}

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(236, 72, 153, .05);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(236, 72, 153, .16); border-color: #f9a8d4; }
.card-img {
  aspect-ratio: 16/10; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { font-size: 34px; font-weight: 700; color: var(--accent); opacity: .45; }
.card-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.cover-emoji { font-size: 42px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.22)); }
.cover-name { font-size: 13px; color: rgba(255,255,255,.94); letter-spacing: .25em; }
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.han {
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  background: #fce7f3; color: #be185d; white-space: nowrap;
}
.han.no { background: #f5eff2; color: var(--muted); }
.cat-tag {
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  background: #f3e8ff; color: #7e22ce; white-space: nowrap;
}
.card-body { padding: 14px 16px 14px; flex: 1; }
.card-cat { font-size: 12px; color: var(--accent); letter-spacing: .15em; }
.card-title { font-size: 16px; font-weight: 700; margin: 4px 0 2px; }
.card-meta { font-size: 12px; color: var(--muted); }
.card-desc {
  font-size: 13px; color: var(--muted); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { padding: 0 16px 14px; display: flex; align-items: center; gap: 8px; }
.card-actions .want { flex: 1; }
.want {
  width: 100%; padding: 7px 0; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 13px; transition: .15s;
}
.want:hover { border-color: var(--accent); color: var(--accent-deep); background: #fff0f6; }
.want.on { background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; border-color: #ec4899; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== 详情弹窗：左 3:4 铺满 + 右等高滚动 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(59, 38, 51, .52); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--card); border-radius: 22px; max-width: 980px; width: 100%;
  height: min(680px, 86vh); overflow: hidden; position: relative;
  display: flex; border: 1.5px solid #fbcfe8;
  box-shadow: 0 24px 60px rgba(190, 24, 93, .22);
}
.modal-close {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 28px; color: var(--muted); z-index: 5; line-height: 1;
}
.modal-close:hover { color: var(--accent-deep); }
.m-left {
  flex: 0 0 auto; height: 100%; aspect-ratio: 3 / 4; max-width: 52%;
  background: #fde8f1; overflow: hidden;
}
.m-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.m-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-noimg { color: var(--muted); font-size: 14px; letter-spacing: .15em; }
.m-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); color: var(--ink); font-size: 20px;
}
.m-arrow:hover { background: #fff; }
.m-prev { left: 12px; }
.m-next { right: 12px; }
.m-count {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(59, 38, 51, .68); color: #fff; border-radius: 999px;
  font-size: 12px; padding: 3px 14px;
}
.m-right {
  flex: 1; min-width: 0; height: 100%;
  padding: 28px 30px 22px;
  display: flex; flex-direction: column; overflow: hidden;
}
.m-cat { font-size: 12px; color: var(--accent-deep); letter-spacing: .15em; margin-bottom: 4px; flex: 0 0 auto; }
.modal h3 { font-size: 24px; line-height: 1.3; flex: 0 0 auto; }
.m-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; flex: 0 0 auto; }
.m-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; flex: 0 0 auto; }
.m-grid b { font-size: 14px; font-weight: 600; }
.m-deps { display: flex; flex-direction: column; gap: 3px; }
.m-dep-item { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.m-gameplay {
  border: 1px solid var(--line); border-radius: 14px; background: #fff7fa;
  padding: 14px 16px; margin-bottom: 14px;
  flex: 1 1 auto; min-height: 120px; overflow-y: auto;
}
.m-gameplay p { font-size: 14px; margin-top: 6px; white-space: pre-line; line-height: 1.72; }
.m-note { font-size: 13px; color: var(--muted); }

footer { position: relative; z-index: 10; text-align: center; padding: 34px 6vw; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .search { width: 150px; }
  .modal { flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; }
  .m-left { width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .m-right { height: auto; overflow: visible; padding: 20px; }
  .m-gameplay { max-height: 40vh; }
}

/* ===== 爱心购物车 ===== */
.heart-cart {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ec4899, #fb7185);
  box-shadow: 0 8px 24px rgba(236, 72, 153, .42);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.heart-cart:hover { transform: scale(1.08); }
.heart-cart.bump { animation: hcBump .35s; }
@keyframes hcBump { 0%{transform:scale(1)} 40%{transform:scale(1.3)} 100%{transform:scale(1)} }
.hc-icon { width: 34px; height: 34px; display: block; }
.hc-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: #db2777;
  font-size: 13px; font-weight: 700; line-height: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.hc-tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: #3b2633; color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.heart-cart:hover .hc-tip { opacity: 1; }
.heart-fly {
  position: fixed; z-index: 999; font-size: 28px; pointer-events: none;
  transition: transform .6s cubic-bezier(.5,-0.2,.7,1), opacity .6s;
}

/* ===== 购物车清单浮层 ===== */
.cart-mask {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(59, 38, 51, .45);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 26px 110px 0;
}
.cart-panel {
  width: 360px; max-height: 70vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1.5px solid #fbcfe8;
  box-shadow: 0 20px 60px rgba(190, 24, 93, .24);
}
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: linear-gradient(135deg, #ec4899, #fb7185); color: #fff;
}
.cart-head b { font-size: 15px; }
.cart-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; }
.cart-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; }
.cart-item img, .ci-thumb {
  width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none;
}
.ci-thumb { display: flex; align-items: center; justify-content: center; background: #fce7f3; font-size: 22px; }
.ci-info { flex: 1; min-width: 0; }
.ci-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-author { font-size: 12px; color: var(--muted); }
.ci-del {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
}
.ci-del:hover { color: #db2777; border-color: #ec4899; }
.cart-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.cart-foot {
  padding: 12px 18px; border-top: 1px solid #fce7f3;
  font-size: 13px; color: var(--ink); text-align: center;
}
.cart-pack {
  border: 0; margin-left: 6px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; font-size: 13px; font-weight: 700;
}
.cart-pack:hover { background: linear-gradient(135deg, #db2777, #ec4899); }

/* 订单弹层 */
.order-panel { max-width: 440px; }
.order-body { padding: 18px 20px 6px; }
.order-no { font-size: 15px; margin: 0 0 8px; }
.order-no b { color: #db2777; letter-spacing: 0.5px; }
.order-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.order-text {
  background: #fff5f8; border: 1px dashed #f9a8d4; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all; margin: 0;
  max-height: 260px; overflow: auto;
}
.cart-copy {
  width: 100%; border: 0; border-radius: 10px; padding: 10px 0;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; font-size: 14px; font-weight: 600;
}
.cart-copy:hover { background: linear-gradient(135deg, #db2777, #ec4899); }

/* 价格 & 简繁 & 弹窗按钮 */
.price {
  font-size: 13px; font-weight: 700; color: #db2777;
  background: #fff0f6; border: 1px solid #fbcfe8;
  border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}
.m-price { color: #db2777; }
.m-hanx { display: block; margin-top: 2px; font-size: 12px; color: #16a34a; font-weight: 600; }
.m-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex: 0 0 auto; }
.m-price-big { font-size: 16px; font-weight: 700; color: #db2777; white-space: nowrap; }
.m-want { flex: 1; padding: 10px 0; font-size: 14px; border-radius: 10px; }

/* ===== 小游戏厅 & 积分兑换弹窗（2D 粉色甜心风） ===== */
.gm-mask {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(59, 38, 51, .56); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gm-box {
  width: 100%; max-width: 760px; max-height: 92vh; overflow: hidden;
  background: #fff9fb; border: 3px solid #f9a8d4; border-radius: 24px;
  box-shadow: 0 24px 64px rgba(190, 24, 93, .28);
  display: flex; flex-direction: column;
}
.gm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f472b6, #ec4899); color: #fff;
}
.gm-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.gm-tools { display: flex; align-items: center; gap: 8px; }
.gm-hbtn {
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.18);
  color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  white-space: nowrap; flex: none;
}
.gm-hbtn:hover { background: rgba(255,255,255,.32); }
.gm-body { padding: 14px 16px 16px; overflow-y: auto; flex: 1; }

.gm-hud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; padding: 8px 12px; border-radius: 14px;
  background: #fff0f6; border: 1.5px solid #fbcfe8; font-size: 13px; font-weight: 600;
}
.gm-stat { display: inline-flex; align-items: center; gap: 5px; color: #9d174d; }
.gm-stage-wrap {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 2.5px solid #f9a8d4; background: #ffe4ef;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.gm-canvas { width: 100%; height: auto; display: block; touch-action: none; }
.gm-overlay {
  position: absolute; inset: 0; background: rgba(255, 245, 249, .86);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; gap: 10px;
}
.gm-overlay h4 { font-size: 22px; color: #be185d; }
.gm-overlay p { font-size: 13px; color: #6b4658; max-width: 460px; line-height: 1.65; }
.gm-btn {
  border: 0; border-radius: 999px; padding: 10px 26px; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 6px 16px rgba(236, 72, 153, .32); transition: .15s;
}
.gm-btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, #db2777, #ec4899); }
.gm-btn-sec {
  border: 1.5px solid #f9a8d4; background: #fff; color: #be185d;
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700;
}
.gm-btn-sec:hover { background: #fce7f3; }

/* 娃娃机控制栏 */
.claw-ctrl {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 10px; flex-wrap: wrap;
}
.claw-btn {
  min-width: 96px; padding: 10px 18px; border-radius: 14px;
  border: 2px solid #f472b6; background: #fff; color: #be185d;
  font-size: 14px; font-weight: 700; user-select: none;
  box-shadow: 0 4px 0 #f9a8d4;
}
.claw-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #f9a8d4; }
.claw-btn.grab {
  min-width: 140px; background: linear-gradient(135deg, #ec4899, #fb7185);
  color: #fff; border-color: #db2777; box-shadow: 0 4px 0 #be185d;
}
.claw-btn:disabled { opacity: .5; transform: none; }

/* 煮泡面操作面板 */
.noodle-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 16px;
  background: #fff0f6; border: 1.5px solid #fbcfe8;
}
.noodle-ings { display: flex; flex-wrap: wrap; gap: 7px; }
.noodle-ing {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 12px;
  border: 1.5px solid #f9a8d4; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; transition: .12s;
}
.noodle-ing:hover { background: #fce7f3; border-color: #ec4899; transform: translateY(-1px); }
.noodle-ing.used { opacity: .48; background: #f8e8ef; }
.noodle-ing.hot { background: linear-gradient(135deg, #fb7185, #ec4899); color: #fff; border-color: #db2777; }
.noodle-ing.serve { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; border-color: #059669; }

/* 积分兑换中心 */
.pts-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.pts-box {
  background: #fff; border: 1.5px solid #fbcfe8; border-radius: 14px;
  padding: 12px; text-align: center;
}
.pts-num { font-size: 24px; font-weight: 800; color: #db2777; line-height: 1.2; }
.pts-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pts-bar-wrap { background: #fce7f3; border-radius: 999px; height: 12px; overflow: hidden; margin-bottom: 14px; }
.pts-bar-fill { height: 100%; background: linear-gradient(90deg, #f472b6, #ec4899); transition: width .3s; }
.plush-shelf {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
  padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #fbcfe8;
}
.plush-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #fce7f3; color: #be185d; font-weight: 600;
}
.plush-chip.lock { background: #f3edf0; color: #b098a6; }
.redeem-search {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid #f9a8d4; margin-bottom: 10px; font-size: 13px; outline: none;
}
.redeem-list {
  max-height: 240px; overflow-y: auto; border: 1px solid #fbcfe8;
  border-radius: 14px; background: #fff;
}
.redeem-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid #fff0f6; font-size: 13px;
}
.redeem-row:last-child { border-bottom: 0; }
.redeem-row b { color: var(--ink); }
.redeem-row span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.redeem-go {
  border: 0; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; white-space: nowrap;
}
.redeem-go:disabled { background: #e5d5dd; color: #9c8290; }
.pts-rules {
  font-size: 12px; color: var(--muted); line-height: 1.7;
  background: #fff0f6; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}

/* 兑换凭证与历史记录 */
.redeem-voucher {
  background: #fff; border: 2px dashed #f472b6; border-radius: 16px;
  padding: 16px; margin-bottom: 14px; text-align: left;
}
.redeem-voucher h4 { color: #be185d; font-size: 16px; margin-bottom: 6px; }
.redeem-voucher pre {
  background: #fff5f8; border: 1px solid #fbcfe8; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all; margin: 8px 0 10px; color: var(--ink);
}
.redeem-history {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #fbcfe8;
}
.redeem-history-title {
  font-size: 12px; font-weight: 700; color: #be185d; margin-bottom: 8px;
}
.redeem-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid #fce7f3; border-radius: 10px;
  padding: 7px 11px; margin-bottom: 6px; font-size: 12px;
}
.redeem-hist-item b { color: var(--ink); }
.redeem-hist-item span { color: var(--muted); }
.gm-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 999; background: rgba(59, 38, 51, .9); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); pointer-events: none;
}

/* ===== 内部登录按钮与弹窗（与樱花奶油风统一） ===== */
.adult-login {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; transition: .18s; flex: none;
}
.adult-login:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.adult-login.adult-on { background: #fce7f3; border-color: #f472b6; color: #be185d; }
.wish-nav-btn {
  border: 1.5px solid #f9a8d4; background: linear-gradient(135deg, #fff0f6, #fce7f3);
  color: #be185d; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; transition: .18s; flex: none;
}
.wish-nav-btn:hover { background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; border-color: #ec4899; box-shadow: 0 4px 12px rgba(236, 72, 153, .22); }

/* ===== 留言 / 许愿板弹窗 ===== */
.wb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.wb-tabs { display: flex; gap: 8px; }
.wb-tab {
  border: 1.5px solid #fbcfe8; background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; transition: .15s;
}
.wb-tab:hover { border-color: var(--accent); color: #be185d; }
.wb-tab.on { background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; border-color: #ec4899; }
.wb-pts-tag {
  font-size: 12.5px; font-weight: 700; color: #be185d;
  background: #fff0f6; border: 1px solid #f9a8d4; border-radius: 999px; padding: 5px 12px;
}
.wb-form {
  background: #fff; border: 1.5px solid #fbcfe8; border-radius: 16px;
  padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px;
}
.wb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wb-input {
  flex: 1; min-width: 140px; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid #fbcfe8; background: #fffafc; font-size: 13px; color: var(--ink); outline: none;
}
.wb-input:focus, .wb-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 72, 153, .12); }
.wb-textarea {
  width: 100%; min-height: 70px; resize: vertical; padding: 9px 12px; border-radius: 12px;
  border: 1.5px solid #fbcfe8; background: #fffafc; font-size: 13.5px; font-family: inherit;
  color: var(--ink); outline: none; line-height: 1.6;
}
.wb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wb-cost-tip { font-size: 12px; color: var(--muted); }
.wb-submit {
  border: 0; border-radius: 999px; padding: 8px 20px; font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 4px 12px rgba(236, 72, 153, .24); transition: .15s;
}
.wb-submit:hover { background: linear-gradient(135deg, #db2777, #ec4899); }
.wb-submit:disabled { background: #e5d5dd; color: #9c8290; box-shadow: none; }
.wb-voucher {
  background: #fff0f6; border: 1.5px dashed #f472b6; border-radius: 14px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; line-height: 1.65;
}
.wb-list { display: flex; flex-direction: column; gap: 10px; max-height: 310px; overflow-y: auto; padding-right: 2px; }
.wb-item {
  background: #fff; border: 1px solid #fbcfe8; border-radius: 14px; padding: 11px 14px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, .05);
}
.wb-item.wish { background: linear-gradient(135deg, #fff, #fff5f9); border: 1.5px solid #f9a8d4; }
.wb-item.done { border-color: #86efac; background: linear-gradient(135deg, #fff, #f0fdf4); }
.wb-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.wb-author { font-weight: 700; color: var(--ink); font-size: 13px; }
.wb-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #fce7f3; color: #be185d; margin-left: 6px;
}
.wb-badge.ok { background: #dcfce7; color: #15803d; }
.wb-text { font-size: 13.5px; color: var(--ink); white-space: pre-line; line-height: 1.65; word-break: break-word; }
.wb-item-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.wb-mini-btn {
  border: 1px solid #fbcfe8; background: #fff; color: var(--muted);
  border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600;
}
.wb-mini-btn:hover { border-color: #ec4899; color: #be185d; background: #fff0f6; }
.wb-mini-btn.liked { background: #fce7f3; border-color: #f472b6; color: #db2777; }
.wb-empty { text-align: center; padding: 28px 12px; color: var(--muted); font-size: 13px; }
.login-mask {
  position: fixed; inset: 0; z-index: 970;
  background: rgba(59, 38, 51, .52); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.login-panel {
  width: 100%; max-width: 360px; background: #fff9fb;
  border: 2px solid #f9a8d4; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 56px rgba(190, 24, 93, .25);
  display: flex; flex-direction: column;
}
.login-hint { font-size: 12.5px; color: var(--muted); padding: 14px 18px 8px; }
.login-input {
  margin: 6px 18px; padding: 9px 14px; border-radius: 12px;
  border: 1.5px solid #fbcfe8; background: #fff; font-size: 13.5px; color: var(--ink); outline: none;
}
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 72, 153, .12); }
.login-remember {
  display: flex; align-items: center; gap: 6px; margin: 8px 18px 4px;
  font-size: 12.5px; color: var(--muted);
}
.login-err { margin: 4px 18px 0; font-size: 12.5px; color: #e11d48; font-weight: 600; }
.login-go {
  margin: 12px 18px 18px; padding: 10px 0; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(236, 72, 153, .25);
}
.login-go:hover { background: linear-gradient(135deg, #db2777, #ec4899); }

@media (max-width: 640px) {
  .nav { padding: 10px 4vw; flex-wrap: wrap; gap: 8px; }
  .nav-right { gap: 6px; }
  .nav-pill, .adult-login, .wish-nav-btn { padding: 5px 10px; font-size: 12px; }
  .gm-mask { padding: 8px; }
  .gm-box { border-radius: 18px; max-height: 94vh; }
  .gm-head { padding: 10px 12px; }
  .gm-title { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gm-hbtn { padding: 4px 10px; font-size: 11.5px; }
  .gm-body { padding: 10px 12px 14px; }
  .gm-overlay { padding: 10px 12px; gap: 6px; justify-content: center; overflow-y: auto; }
  .gm-overlay img { max-height: 52px !important; }
  .gm-overlay h4 { font-size: 15.5px; line-height: 1.25; }
  .gm-overlay p { font-size: 11.5px; line-height: 1.45; }
  .gm-btn { padding: 7px 18px; font-size: 13px; }
  .gm-btn-sec { padding: 7px 14px; font-size: 12px; }
  .pts-summary { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pts-box { padding: 8px 6px; }
  .pts-num { font-size: 19px; }
  .claw-btn { min-width: 78px; padding: 9px 12px; font-size: 13px; }
  .claw-btn.grab { min-width: 112px; }
  .noodle-ing { padding: 6px 9px; font-size: 12px; }
}
