/* ============================================================
 * 文件：css/shop.css
 * 作用：商店（王后珍藏）全套样式
 * ============================================================ */
  /* === 商店系统：王后的神秘商店 === */
  #shop {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  #shop h1 {
    margin-top: -18%;
  }
  #shop .subtitle {
    margin-bottom: 4px;
  }
  #devMenu {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .shop-scene {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 300px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }
  .shop-van {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .van-trunk {
    position: relative;
    width: 100%;
    height: 252px;
    background: linear-gradient(180deg, #5a3a1a, #3a2818);
    border: 4px solid #2a1f18;
    border-radius: 16px 16px 8px 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 5px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 2;
    transform: translateY(10px);
  }
  .trunk-velvet {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(180deg, #3a1a2a, #1a0f1a);
    border-radius: 8px;
    opacity: 0.6;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.5);
  }
  .van-light-bar {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: #ff4444;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255,68,68,0.5);
    z-index: 3;
  }
  .van-plate {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background: #d4c5a0;
    border-radius: 3px;
    border: 1px solid #8b7355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #333;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 4;
  }
  .van-wheel {
    position: absolute;
    bottom: -22px;
    width: 50px;
    height: 50px;
    background: #252525;
    border-radius: 50%;
    border: 5px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    z-index: 1;
  }
  /* 车轮音符特效 */
  @keyframes noteFloat {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    15% { opacity: 0.9; }
    100% { transform: translate(var(--nx), var(--ny)) scale(1.2); opacity: 0; }
  }
  .music-note {
    position: absolute;
    font-size: 14px;
    color: rgba(255,215,0,0.7);
    pointer-events: none;
    z-index: 2;
    animation: noteFloat 2.5s ease-out forwards;
    text-shadow: 0 0 6px rgba(255,215,0,0.5);
  }
  .van-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #444;
    border-radius: 50%;
    border: 2px solid #222;
  }
  .van-wheel-left { left: 25px; }
  .van-wheel-right { right: 25px; }
  .shop-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    z-index: 5;
    padding: 6px;
  }
  .enhance-card {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #5a3a1a, #3a2818);
    border: 2px solid #8b6914;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 5px 12px rgba(0,0,0,0.6);
    padding-top: 6px;
    user-select: none;
    min-height: 75px;
  }
  .enhance-card:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 12px 25px rgba(255,215,0,0.2);
    z-index: 10;
    border-color: #ffd700;
  }
  .enhance-card:active { transform: translateY(-6px) scale(1.04); }
  .enhance-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
  }
  .enhance-card.locked:hover {
    transform: none;
    box-shadow: 0 5px 12px rgba(0,0,0,0.6);
    border-color: #555;
  }
    .bought-check {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #4caf50;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1;
  }
  .enhance-card .card-icon {
    font-size: 22px;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  }
  .enhance-card .card-name {
    font-size: 12px;
    color: #ffd700;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    line-height: 1.2;
    padding: 0 2px;
  }
  .enhance-card .card-desc {
    font-size: 11px;
    color: #c9b896;
    text-align: center;
    margin-top: 3px;
    line-height: 1.3;
    padding: 0 3px;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'FangSong', '仿宋', 'STFangsong', serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  .enhance-card .gem-cost {
    position: absolute;
    top: 4px;
    left: 4px;
    color: #00e5ff;
    font-size: 10px;
    font-weight: bold;
    padding: 0;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5), 0 1px 2px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
    line-height: 1.3;
  }
  .enhance-card .lock-icon {
    font-size: 26px;
    opacity: 0.6;
    margin-top: 8px;
  }
  @keyframes gemBurst {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0) rotate(180deg); opacity: 0; }
  }
  .gem-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 100;
    animation: gemBurst 0.7s ease-out forwards;
  }
  .gem-particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gem-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 6px var(--gem-color);
  }

  /* === 商店翻页 === */
  .shop-page {
    display: none;
    width: 100%;
    height: 100%;
  }
  .shop-page.active {
    display: flex;
    flex-direction: column;
  }
  .shop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    z-index: 5;
  }
  .shop-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(255,215,0,0.4);
    border-radius: 50%;
    color: #ffd700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
  }
  .shop-nav-btn:hover {
    background: rgba(0,0,0,0.6);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
  }
  .shop-nav-btn:active {
    transform: scale(0.92);
  }
  .shop-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255,215,0,0.15);
  }
  .shop-page-dots {
    display: flex;
    gap: 6px;
  }
  .shop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,215,0,0.25);
    border: 1px solid rgba(255,215,0,0.3);
    transition: all 0.2s;
  }
  .shop-dot.active {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
  }

  /* === 锁定大卡 === */
  .shop-cards-locked {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    padding: 6px;
    height: 100%;
    width: 100%;
  }
  .enhance-card.locked-big {
    height: 100%;
    min-height: 0;
    width: 100%;
    background: linear-gradient(145deg, #3a2818, #2a1f18);
    border: 2px solid #5a3a1a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    box-shadow: 0 5px 12px rgba(0,0,0,0.6);
    user-select: none;
    overflow: hidden;
  }
  .enhance-card.locked-big .lock-icon {
    font-size: 24px;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    opacity: 0.8;
  }
  .enhance-card.locked-big .lock-name {
    font-size: 12px;
    color: #8b6914;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    margin-bottom: 2px;
  }
  .enhance-card.locked-big .lock-desc {
    font-size: 10px;
    color: #5a3a1a;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }


  .difficulty-btn {
    width: 60%;
    max-width: 300px;
    padding: 14px 20px;
    margin: 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  .difficulty-btn:active { transform: scale(0.97); }
  .difficulty-btn .diff-icon { font-size: 24px; margin-right: 10px; }
  .difficulty-btn .diff-desc { font-size: 12px; font-weight: normal; opacity: 0.85; }

  .btn-easy { background: linear-gradient(135deg, #2e7d32, #1b5e20); border-color: #4caf50; }
  .btn-easy:hover { box-shadow: 0 0 20px rgba(76,175,80,0.5); }
  .btn-normal { background: linear-gradient(135deg, #1565c0, #0d47a1); border-color: #2196f3; }
  .btn-normal:hover { box-shadow: 0 0 20px rgba(33,150,243,0.5); }
  .btn-hard { background: linear-gradient(135deg, #c62828, #8e0000); border-color: #f44336; }
  .btn-hard:hover { box-shadow: 0 0 20px rgba(244,67,54,0.5); }

  .deck-shelf {
    display: grid;
    grid-template-columns: repeat(4, 52px);
    gap: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 2px solid #5a3a1a;
    margin-top: 10px;
    justify-content: center;
  }
  .deck-empty-slot {
    width: 52px;
    height: 68px;
    border: 2px solid #3a2818;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
  }
  .deck-slots {
    display: flex;
    gap: 12px;
    margin-top: 10px;
  }
  .deck-slot {
    width: 52px;
    height: 68px;
    border: 2px dashed #8b6914;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .deck-slot.occupied {
    border-style: solid;
    border-color: #ffd700;
    background: rgba(74,55,40,0.6);
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
  }
  .deck-slot.locked {
    border-style: solid;
    border-color: #3a2818;
    background: rgba(0,0,0,0.35);
    opacity: 0.7;
    cursor: not-allowed;
  }
  .deck-slot .card {
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .deck-label {
    color: #c9b896;
    font-size: 12px;
    margin-top: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .result-title { font-size: 42px; margin-bottom: 10px; }
  .win { color: #00ff88; text-shadow: 0 0 20px #00ff88; }
  .lose { color: #ff4444; text-shadow: 0 0 20px #ff4444; }
  .btn {
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
    transition: transform 0.1s;
    margin-top: 10px;
  }
  .btn:active { transform: scale(0.95); }

