/* ============================================================
   互联网时光小卖部 · QQ 空间 2008 复刻样式
   五彩斑斓的甜腻感，像打翻了的闪粉调色盘
   ============================================================ */

/* ---------- 字体 ---------- */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Press+Start+2P&family=Ma+Shan+Zheng&display=swap');

/* ---------- 主题变量 ---------- */
:root {
  --pink-hot: #ff69b4;
  --pink-soft: #ff99cc;
  --purple: #cc66ff;
  --purple-deep: #6a1b9a;
  --blue-electric: #00ccff;
  --blue-deep: #1a0a3e;
  --green-neon: #66ff66;
  --orange-bright: #ff9933;
  --gold: #ffd700;
  --white: #fff8fb;
  --shadow-glow: 0 0 12px rgba(255,105,180,.7), 0 0 24px rgba(204,102,255,.5);

  --font-cute: 'ZCOOL KuaiLe', '华文圆体', 'STKaiti', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-hand: 'Ma Shan Zheng', 'STKaiti', cursive;
}

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cute);
  color: var(--white);
  /* 多层渐变背景：深紫到深蓝，叠柔光 */
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,105,180,.35), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(0,204,255,.30), transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(204,102,255,.30), transparent 55%),
    linear-gradient(160deg, #2a0a4a 0%, #1a0a3e 40%, #0d0526 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext y='18' font-size='16'%3E%E2%9C%A8%3C/text%3E%3C/svg%3E") 2 2, auto;
  min-height: 100vh;
}

/* ---------- 中间层：半透明花纹平铺 ---------- */
.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='6' y='22' font-size='14'%3E%E2%9D%A4%3C/text%3E%3Ctext x='36' y='48' font-size='12'%3E%E2%9C%A6%3C/text%3E%3C/svg%3E");
  background-size: 38px 38px, 60px 60px;
  opacity: .35;
}

/* 装饰层：两侧固定挂件 */
.side-ornament {
  position: fixed; top: 0; bottom: 0; width: 26px; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, var(--pink-hot) 0 10px, var(--gold) 10px 20px, var(--blue-electric) 20px 30px, var(--purple) 30px 40px);
  box-shadow: 0 0 16px rgba(255,105,180,.6);
  opacity: .85;
}
.side-ornament.left { left: 0; }
.side-ornament.right { right: 0; }
.side-ornament::before, .side-ornament::after {
  content: '🎀'; position: absolute; left: 50%; transform: translateX(-50%); font-size: 22px;
  filter: drop-shadow(0 0 6px var(--gold));
}
.side-ornament::before { top: 14%; }
.side-ornament::after { bottom: 14%; content: '💎'; }

/* ---------- Canvas 层 ---------- */
#bg-particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#mouse-trail { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

/* 内容整体提层 */
.app { position: relative; z-index: 10; }

/* ============================================================
   顶部跑马灯 LED 灯带
   ============================================================ */
.top-marquee {
  position: relative; z-index: 12;
  background: linear-gradient(90deg, #000, #1a0a3e 20%, #6a1b9a 50%, #1a0a3e 80%, #000);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(255,215,0,.5), inset 0 0 12px rgba(0,204,255,.4);
  overflow: hidden; height: 34px; display: flex; align-items: center;
}
.marquee-track {
  display: inline-flex; white-space: nowrap; gap: 60px;
  font-family: var(--font-pixel); font-size: 11px; color: var(--gold);
  text-shadow: 0 0 6px var(--gold), 0 0 12px var(--orange-bright);
  animation: marquee 38s linear infinite; padding-left: 100%;
}
.marquee-track span { letter-spacing: 1px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============================================================
   页面头部
   ============================================================ */
.site-header {
  position: relative; z-index: 11;
  text-align: center; padding: 42px 16px 26px;
}
.header-diamonds {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; font-size: 18px;
}
.header-diamonds span {
  animation: diamondBlink 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--gold));
}
.header-diamonds span:nth-child(2) { animation-delay: .3s; }
.header-diamonds span:nth-child(3) { animation-delay: .6s; }
@keyframes diamondBlink { 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:.35; transform:scale(.7) } }

.site-title {
  font-family: var(--font-cute); font-size: clamp(34px, 7vw, 64px); font-weight: 400;
  background: linear-gradient(90deg, var(--gold), var(--pink-hot), var(--purple), var(--blue-electric), var(--green-neon), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 0 30px rgba(255,105,180,.6);
  animation: rainbowFlow 6s linear infinite;
  letter-spacing: 2px; line-height: 1.2;
}
@keyframes rainbowFlow { to { background-position: 300% 0; } }

.site-subtitle {
  margin-top: 12px; font-size: clamp(15px, 2.4vw, 20px); color: var(--white);
  text-shadow: 0 0 8px var(--pink-hot), 0 0 16px var(--purple);
  letter-spacing: 1px;
}

/* 购物车图标 */
.cart-icon {
  position: fixed; top: 54px; right: 40px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pink-soft) 40%, var(--pink-hot) 80%);
  box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--pink-hot), inset 0 -4px 8px rgba(0,0,0,.2), inset 0 4px 8px rgba(255,255,255,.7);
  transition: transform .25s ease;
  animation: cartFloat 3s ease-in-out infinite;
}
.cart-icon:hover { transform: scale(1.12) rotate(-6deg); }
@keyframes cartFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

/* ============================================================
   货架区
   ============================================================ */
.shelves { position: relative; z-index: 10; padding: 10px 30px 60px; }

.shelf-section { margin: 36px 0; opacity: 0; transform: translateY(60px); }
.shelf-section.revealed { animation: shelfRise .9s cubic-bezier(.22,1.2,.36,1) forwards; }
@keyframes shelfRise { to { opacity: 1; transform: translateY(0); } }

/* 货架间氛围文案 */
.shelf-banner {
  text-align: center; margin: 0 auto 18px; max-width: 760px;
  font-family: var(--font-hand); font-size: clamp(18px, 3vw, 26px);
  color: var(--white); letter-spacing: 2px;
  text-shadow: 0 0 10px var(--pink-soft), 0 0 20px var(--purple);
  opacity: .92;
}
.shelf-banner::before, .shelf-banner::after {
  content: '✦ ───── ✦'; display: block; font-size: 12px; color: var(--gold);
  text-shadow: 0 0 8px var(--gold); letter-spacing: 4px; margin: 6px 0;
}

/* 货架标题（品类名）*/
.shelf-cat-title {
  text-align: center; font-family: var(--font-cute);
  font-size: clamp(20px, 3.4vw, 30px); margin-bottom: 14px;
  color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 0 8px var(--orange-bright), 0 0 16px var(--pink-hot), 2px 2px 0 var(--purple-deep);
}

/* 货架本体 —— 带透视的粉木纹层板 */
.shelf {
  position: relative;
  /* 透视容器 */
  perspective: 900px;
  padding: 0 18px 0;
}
.shelf-inner {
  position: relative; transform-style: preserve-3d; transform: rotateX(7deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(106,27,154,.55) 0%, rgba(255,153,204,.18) 60%, rgba(0,0,0,.15) 100%);
  border-radius: 6px;
  box-shadow: 0 22px 0 -8px rgba(0,0,0,.45), 0 0 0 2px rgba(255,215,0,.4), inset 0 0 40px rgba(255,105,180,.25);
}
/* 货架背板（远处的墙）*/
.shelf-back {
  position: absolute; top: 0; left: 0; right: 0; height: 64%;
  background: linear-gradient(180deg, rgba(26,10,62,.6), rgba(106,27,154,.3));
  border-bottom: 2px dashed rgba(255,215,0,.35);
  border-radius: 6px 6px 0 0;
}
/* 货架层板（地面）*/
.shelf-board {
  position: relative; z-index: 2; min-height: 150px;
  background:
    repeating-linear-gradient(90deg, rgba(255,105,180,.12) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #3a1066 0%, #5a1a8c 30%, #2a0a4a 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 8px 16px rgba(0,0,0,.5), inset 0 -2px 0 rgba(255,215,0,.3);
}
/* 层板前沿蕾丝花边 */
.shelf-board::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    radial-gradient(circle at 10px -2px, var(--white) 6px, transparent 7px) 0 0 / 20px 10px repeat-x,
    linear-gradient(180deg, var(--pink-soft), var(--pink-hot));
  border-radius: 0 0 12px 12px;
  filter: drop-shadow(0 2px 4px rgba(255,105,180,.6));
}

/* 商品网格 */
.products {
  position: relative; z-index: 3;
  display: grid; gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  padding: 16px 14px 26px;
}

/* ============================================================
   商品卡片（包装盒）
   ============================================================ */
.product {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px 10px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,153,204,.08));
  border: 2px solid rgba(255,215,0,.45);
  box-shadow: 0 6px 0 rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .22s cubic-bezier(.2,1.4,.4,1), box-shadow .22s, border-color .22s;
  text-align: center;
  min-height: 168px;
}
.product:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 22px var(--pink-hot), 0 18px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6);
  z-index: 5;
}
/* 悬浮闪光环 */
.product::after {
  content: ''; position: absolute; inset: -6px; border-radius: 18px; z-index: -1;
  background: conic-gradient(from 0deg, transparent, var(--gold), transparent 30%, var(--pink-hot), transparent 60%, var(--blue-electric), transparent 90%);
  opacity: 0; filter: blur(8px); transition: opacity .25s;
}
.product:hover::after { opacity: .8; animation: spinGlow 2s linear infinite; }
@keyframes spinGlow { to { transform: rotate(360deg); } }

/* 商品包装外观：罐头/瓶子/盒子/卡片/标本 等，用顶部色条区分 */
.product-pack { width: 100%; height: 8px; border-radius: 4px; margin-bottom: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.pack-can    { background: linear-gradient(90deg, var(--orange-bright), var(--gold), var(--orange-bright)); }
.pack-bottle { background: linear-gradient(90deg, var(--green-neon), var(--blue-electric)); }
.pack-box    { background: linear-gradient(90deg, var(--pink-hot), var(--purple), var(--pink-soft)); }
.pack-scroll { background: linear-gradient(90deg, var(--gold), #c9a227); }
.pack-toy    { background: linear-gradient(90deg, var(--blue-electric), var(--purple)); }
.pack-card   { background: linear-gradient(90deg, var(--pink-soft), var(--white), var(--pink-soft)); }
.pack-disc   { background: conic-gradient(var(--gold), var(--purple), var(--blue-electric), var(--gold)); }
.pack-tape   { background: linear-gradient(90deg, #444, #888, #444); }
.pack-specimen { background: linear-gradient(90deg, rgba(255,255,255,.6), var(--blue-electric)); }

/* 商品图标 emoji */
.product-emoji {
  font-size: 40px; line-height: 1; margin: 4px 0 8px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.7)) drop-shadow(0 2px 4px rgba(0,0,0,.4));
  transition: transform .25s;
}
.product:hover .product-emoji { transform: scale(1.15) rotate(-4deg); }

/* 商品名称（发光字）*/
.product-name {
  font-family: var(--font-cute); font-size: 15px; line-height: 1.3;
  color: var(--white); min-height: 36px;
  text-shadow: 0 0 6px var(--pink-hot), 0 0 10px var(--purple), 1px 1px 0 var(--purple-deep);
  word-break: break-all;
}

/* 价格标签 */
.product-price {
  margin-top: 8px; font-family: var(--font-pixel); font-size: 11px;
  color: var(--gold); letter-spacing: 1px;
  text-shadow: 0 0 6px var(--gold), 0 0 10px var(--orange-bright);
  padding: 3px 8px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px dashed rgba(255,215,0,.5);
  transition: all .22s;
}
.product:hover .product-price {
  color: #000; background: var(--gold); border-style: solid;
  box-shadow: 0 0 12px var(--gold);
}

/* 角标 HOT/NEW/绝版 */
.product-tag {
  position: absolute; top: -8px; left: -6px; z-index: 4;
  font-family: var(--font-pixel); font-size: 9px; padding: 3px 6px; border-radius: 4px;
  color: #000; font-weight: bold; letter-spacing: 1px;
  box-shadow: 0 0 8px currentColor;
  animation: tagBlink 1.2s ease-in-out infinite;
}
.product-tag.tag-HOT, .product-tag.tag-HOT { background: var(--orange-bright); color: #fff; }
.product-tag.tag-NEW { background: var(--green-neon); color: #000; }
.product-tag.tag-荐 { background: var(--blue-electric); color: #000; }
.product-tag.tag-绝版, .product-tag.tag-限时抢购, .product-tag.tag-经典 {
  background: var(--gold); color: #000;
}
.product-tag.tag-已停运 { background: #888; color: #fff; }
@keyframes tagBlink { 0%,100%{ opacity:1; transform: rotate(-8deg) scale(1) } 50%{ opacity:.6; transform: rotate(-8deg) scale(.9) } }

/* 售罄遮罩 */
.product.sold-out { filter: grayscale(.7) brightness(.85); }
.product.sold-out .product-emoji { filter: grayscale(.8) drop-shadow(0 0 4px rgba(0,0,0,.4)); }
.sold-out-stamp {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 6;
  pointer-events: none;
}
.sold-out-stamp span {
  font-family: var(--font-pixel); font-size: 13px; color: #ff3030;
  border: 3px solid #ff3030; padding: 4px 10px; transform: rotate(-18deg);
  background: rgba(0,0,0,.25); border-radius: 4px;
  text-shadow: 0 0 6px #ff3030; letter-spacing: 2px;
}

/* 彩蛋音频标记 */
.product.has-audio::before {
  content: '🔊'; position: absolute; top: -8px; right: -4px; z-index: 4;
  font-size: 16px; filter: drop-shadow(0 0 4px var(--gold));
  animation: tagBlink 1s ease-in-out infinite;
}

/* ============================================================
   氛围文案分隔条
   ============================================================ */
.shelf-divider {
  text-align: center; margin: 30px auto; max-width: 900px;
  font-family: var(--font-hand); font-size: clamp(20px, 3.4vw, 30px);
  color: var(--white); letter-spacing: 3px;
  text-shadow: 0 0 12px var(--pink-soft), 0 0 22px var(--purple);
  position: relative;
}
.shelf-divider::before, .shelf-divider::after {
  content: '✧';
  color: var(--gold); font-size: 22px;
  text-shadow: 0 0 8px var(--gold);
  margin: 0 14px; display: inline-block;
  animation: diamondBlink 2s ease-in-out infinite;
}

/* ============================================================
   页面底部
   ============================================================ */
.site-footer {
  position: relative; z-index: 11;
  margin-top: 30px; padding: 30px 20px 44px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  border-top: 2px dashed rgba(255,215,0,.4);
}
.footer-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
  margin-bottom: 22px;
}
.stat-item {
  background: linear-gradient(160deg, rgba(255,105,180,.25), rgba(106,27,154,.25));
  border: 1px dashed var(--gold); border-radius: 10px;
  padding: 10px 16px; min-width: 140px;
  box-shadow: 0 0 12px rgba(255,105,180,.3), inset 0 1px 0 rgba(255,255,255,.2);
}
.stat-label { font-size: 13px; color: var(--pink-soft); margin-bottom: 4px; letter-spacing: 1px; }
.stat-value {
  font-family: var(--font-pixel); font-size: 16px; color: var(--green-neon);
  text-shadow: 0 0 8px var(--green-neon), 0 0 14px var(--blue-electric);
  letter-spacing: 1px;
}
/* 像素计数器 */
.pixel-counter {
  font-family: var(--font-pixel); font-size: 22px; color: var(--gold);
  letter-spacing: 4px; text-shadow: 0 0 10px var(--gold);
  background: #000; padding: 6px 14px; border: 2px solid var(--gold);
  border-radius: 6px; display: inline-block; margin: 6px 0 16px;
  box-shadow: 0 0 16px rgba(255,215,0,.4), inset 0 0 8px rgba(255,105,180,.3);
}
.footer-msgboard {
  display: inline-block; margin: 6px 0 16px; cursor: pointer;
  font-family: var(--font-cute); font-size: 17px; color: var(--white);
  padding: 10px 26px; border-radius: 24px;
  background: linear-gradient(160deg, var(--pink-hot), var(--purple));
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px var(--pink-soft), 0 0 16px var(--pink-hot), inset 0 2px 4px rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25);
  text-shadow: 1px 1px 0 var(--purple-deep);
  transition: transform .2s;
}
.footer-msgboard:hover { transform: translateY(-3px) scale(1.04); }
.footer-copyright {
  font-size: 13px; color: var(--pink-soft); letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,105,180,.5);
}
.footer-copyright b { color: var(--gold); }

/* ============================================================
   迷你音乐播放器
   ============================================================ */
.music-player {
  position: fixed; bottom: 18px; left: 18px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 30px;
  background: linear-gradient(160deg, #2a0a4a, #1a0a3e);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(255,105,180,.5), 0 0 18px rgba(255,215,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
  cursor: pointer; user-select: none;
}
.mp-play-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px; color: #000;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 70%);
  box-shadow: 0 0 8px var(--gold), inset 0 -2px 4px rgba(0,0,0,.25);
  transition: transform .2s;
}
.music-player:hover .mp-play-btn { transform: scale(1.1); }
.mp-info { display: flex; flex-direction: column; gap: 4px; max-width: 150px; }
.mp-title {
  font-size: 12px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 6px var(--pink-hot);
}
.mp-artist { font-size: 10px; color: var(--pink-soft); }
/* 均衡器跳动条 */
.mp-eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.mp-eq span {
  width: 3px; background: linear-gradient(180deg, var(--green-neon), var(--blue-electric));
  border-radius: 2px; height: 6px;
}
.music-player.playing .mp-eq span { animation: eqBar .6s ease-in-out infinite alternate; }
.music-player.playing .mp-eq span:nth-child(1){ animation-delay:0s }
.music-player.playing .mp-eq span:nth-child(2){ animation-delay:.15s }
.music-player.playing .mp-eq span:nth-child(3){ animation-delay:.3s }
.music-player.playing .mp-eq span:nth-child(4){ animation-delay:.45s }
.music-player.playing .mp-eq span:nth-child(5){ animation-delay:.2s }
@keyframes eqBar { from { height: 4px } to { height: 18px } }
.music-player:not(.playing) .mp-eq span { height: 4px; opacity: .5; }

/* ============================================================
   商品详情弹窗（QQ 空间风格对话框）
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: radial-gradient(circle, rgba(26,10,62,.7), rgba(0,0,0,.85));
  backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; animation: overlayIn .25s ease; }
@keyframes overlayIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  position: relative; width: min(440px, 94vw);
  background: linear-gradient(165deg, #2a0a4a, #1a0a3e 60%, #0d0526);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--pink-hot), 0 0 40px rgba(255,105,180,.6), 0 24px 60px rgba(0,0,0,.6);
  animation: modalPop .5s cubic-bezier(.2,1.5,.4,1);
}
@keyframes modalPop {
  0% { transform: scale(.4) translateY(40px) rotate(-6deg); opacity: 0 }
  70% { transform: scale(1.04) translateY(0) rotate(0); opacity: 1 }
  100% { transform: scale(1) }
}

/* 弹窗标题栏 */
.modal-titlebar {
  position: relative; padding: 12px 14px;
  background: linear-gradient(180deg, var(--pink-hot), var(--purple));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 rgba(0,0,0,.3);
}
.modal-titlebar::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px);
}
.modal-title {
  position: relative; font-family: var(--font-cute); font-size: 22px;
  color: var(--white); text-align: center; letter-spacing: 2px;
  text-shadow: 0 0 8px var(--gold), 0 0 14px var(--blue-electric), 1px 1px 0 var(--purple-deep);
}
.modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 14px; color: #000; font-weight: bold;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 70%);
  box-shadow: 0 0 6px var(--gold), inset 0 -2px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}
.modal-close:hover { transform: rotate(90deg) scale(1.1); }

.modal-body { padding: 18px 20px 22px; text-align: center; }

/* 主图区 */
.modal-emoji {
  font-size: 72px; line-height: 1; margin-bottom: 6px;
  filter: drop-shadow(0 0 16px var(--gold)) drop-shadow(0 4px 8px rgba(0,0,0,.5));
  animation: modalEmojiBob 2.5s ease-in-out infinite;
}
@keyframes modalEmojiBob { 0%,100%{ transform: translateY(0) rotate(-3deg) } 50%{ transform: translateY(-8px) rotate(3deg) } }

.modal-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 12px; }
.modal-tag {
  font-family: var(--font-pixel); font-size: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(255,215,0,.2); border: 1px dashed var(--gold); color: var(--gold);
  letter-spacing: 1px;
}

.modal-desc {
  font-family: var(--font-cute); font-size: 15px; line-height: 1.8;
  color: var(--white); text-align: left; letter-spacing: .5px;
  background: rgba(0,0,0,.25); border-left: 3px solid var(--pink-hot);
  padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 14px 0;
  text-shadow: 0 0 4px rgba(255,105,180,.3);
}

.modal-price {
  font-family: var(--font-pixel); font-size: 18px; color: var(--gold);
  letter-spacing: 2px; margin: 14px 0 10px;
  text-shadow: 0 0 8px var(--gold), 0 0 14px var(--orange-bright);
}

/* 水晶质感按钮 */
.modal-btn {
  font-family: var(--font-cute); font-size: 18px; cursor: pointer;
  padding: 10px 30px; border-radius: 26px; border: none;
  color: #000; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 45%, var(--orange-bright) 100%);
  box-shadow: 0 0 0 2px var(--pink-hot), 0 0 14px var(--gold), inset 0 2px 3px rgba(255,255,255,.9), inset 0 -3px 5px rgba(0,0,0,.25), 0 6px 0 #b8860b;
  text-shadow: 1px 1px 0 rgba(255,255,255,.6);
  transition: transform .15s, box-shadow .15s;
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--pink-hot), 0 0 20px var(--gold), inset 0 2px 3px rgba(255,255,255,.9), inset 0 -3px 5px rgba(0,0,0,.25), 0 8px 0 #b8860b; }
.modal-btn:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--pink-hot), 0 0 10px var(--gold), inset 0 2px 3px rgba(255,255,255,.5), 0 3px 0 #b8860b; }
.modal-btn.collected {
  background: linear-gradient(180deg, #fff, var(--pink-soft), var(--pink-hot));
  color: #fff; text-shadow: 0 0 6px var(--purple);
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px var(--pink-hot), inset 0 2px 3px rgba(255,255,255,.7), 0 6px 0 #b03070;
}

.modal-collectors {
  margin-top: 10px; font-size: 12px; color: var(--pink-soft); letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(255,105,180,.4);
}

/* 弹窗内音频提示 */
.modal-audio-hint {
  margin-top: 8px; font-size: 12px; color: var(--green-neon);
  text-shadow: 0 0 6px var(--green-neon);
}

/* ============================================================
   加载动画 / 飘过回忆碎片
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: radial-gradient(circle, #1a0a3e, #000);
}
.loader-text {
  font-family: var(--font-cute); font-size: 28px;
  background: linear-gradient(90deg, var(--gold), var(--pink-hot), var(--blue-electric));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: loaderPulse 1s ease-in-out infinite;
}
.loader-text::after { content: '...'; }
@keyframes loaderPulse { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }
.loader.hide { animation: loaderFade .8s ease forwards; }
@keyframes loaderFade { to { opacity: 0; visibility: hidden; } }

/* 回忆碎片飘过 */
.memory-fragment {
  position: fixed; z-index: 25; pointer-events: none;
  font-family: var(--font-pixel); font-size: 14px; color: var(--gold);
  text-shadow: 0 0 8px var(--gold), 0 0 16px var(--pink-hot);
  white-space: nowrap; opacity: 0;
}
.memory-fragment.fly { animation: fragFly 6s linear forwards; }
@keyframes fragFly {
  0% { opacity: 0; transform: translateX(0) }
  15% { opacity: .85 }
  85% { opacity: .85 }
  100% { opacity: 0; transform: translateX(120vw) }
}

/* 飘出的爱心粒子（收藏反馈）*/
.love-particle {
  position: fixed; z-index: 90; pointer-events: none; font-size: 18px;
  animation: loveRise 1.4s ease-out forwards;
}
@keyframes loveRise {
  0% { opacity: 1; transform: translateY(0) scale(.6) }
  100% { opacity: 0; transform: translateY(-120px) scale(1.4) }
}

/* 通用动画：闪烁 */
.blink { animation: diamondBlink 1.5s ease-in-out infinite; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .shelves { padding: 10px 12px 50px; }
  .side-ornament { width: 14px; }
  .side-ornament::before, .side-ornament::after { font-size: 14px; }
  .products { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 10px; padding: 12px 8px 22px; }
  .product-emoji { font-size: 32px; }
  .product-name { font-size: 13px; min-height: 32px; }
  .cart-icon { top: auto; bottom: 78px; right: 14px; width: 48px; height: 48px; }
  .music-player { left: 8px; right: 8px; bottom: 8px; justify-content: center; }
  .mp-info { max-width: 110px; }
  .header-diamonds { top: 8px; }
  .site-header { padding: 32px 12px 18px; }
}
