/* ============================================================
 * 文件：css/dev-ai.css
 * 作用：开发者模式样式、AI卡牌栏
 * ============================================================ */
  /* === 开发者模式 === */
  #devModeBtn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.28);
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    color: rgba(255,255,255,0.43);
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.1s;
    z-index: 50;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  #devModeBtn:hover { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.45); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
  #devModeBtn:active { transform: scale(0.92); }

  /* AI 控制卡牌栏 */
  #aiCardBar {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 3px 6px;
  }
  .ai-card {
    width: 36px;
    height: 48px;
    background: linear-gradient(145deg, #4a1a1a, #2a0f0f);
    border: 2px solid #b71c1c;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .ai-card:active { transform: scale(0.95); }
  .ai-card.selected { border-color: #ff6b6b; box-shadow: 0 0 15px rgba(255,107,107,0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
  .ai-card-icon { font-size: 14px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
  .ai-card-name { font-size: 5px; color: #e8b5b5; margin-top: 1px; font-weight: bold; text-shadow: 0 1px 2px #000; }
  .ai-card-cost {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 12px; height: 12px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c62828);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 7px;
    font-weight: bold;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  }
  .card-nav {
    width: 20px;
    height: 48px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
  }
  .card-nav:hover { background: rgba(0,0,0,0.6); color: #fff; }
  .card-nav:active { transform: scale(0.92); }
  .card {
    width: 39px;
    height: 51px;
    background: linear-gradient(145deg, #4a3728, #2a1f18);
    border: 2px solid #8b6914;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  .card:active { transform: scale(0.95); }
  .card.selected { border-color: #ffd700; box-shadow: 0 0 20px #ffd700, inset 0 1px 0 rgba(255,255,255,0.2); }
  .card.disabled { opacity: 0.4; filter: grayscale(0.9); }
  .card-cooldown {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 1px 3px #000;
  }
  .card-icon { font-size: 16px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
  .card-name { font-size: 6px; color: #e8d5b5; margin-top: 1px; font-weight: bold; text-shadow: 0 1px 2px #000; }
  .card-cost {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 14px; height: 14px;
    background: radial-gradient(circle at 30% 30%, #ffea00, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a2818;
    font-size: 8px;
    font-weight: bold;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

  #overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: auto;
    overflow: hidden;
    background: transparent;
  }
  #menuCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    display: block;
    background: #0d0d1a;
  }
  #menuMain, #menuLevel, #menuDifficulty, #deckConfig {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background: transparent;
  }
  #overlay h1 {
    color: #ffd700;
    font-size: 38px;
    margin-top: 55px;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(255,215,0,0.6), 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 4px;
  }
  #overlay .subtitle { color: #c9b896; font-size: 11px; margin-bottom: 40px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); letter-spacing: 2px; }
  #overlay .main-subtitle {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 22px;
    margin-top: 8px;
    text-shadow: 0 0 10px rgba(255,255,255,0.6), 0 0 25px rgba(255,255,255,0.3), 0 1px 3px rgba(0,0,0,0.8);
    letter-spacing: 3px;
  }
  #overlay h2 {
    color: #ffd700;
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
  }

  .menu-btn {
    width: 60%;
    max-width: 280px;
    padding: 14px 20px;
    margin: 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #e8d5b5;
    border: 2px solid #8b6914;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(145deg, #4a3728, #2a1f18);
    transition: transform 0.1s, box-shadow 0.2s, border-color 0.2s;
    text-align: center;
    user-select: none;
  }
  .menu-btn:hover { box-shadow: 0 0 15px rgba(255,215,0,0.3); border-color: #ffd700; }
  .menu-btn:active { transform: scale(0.97); }
  .btn-start { border-color: #ffd700; color: #ffd700; }
  .btn-deck { border-color: #4caf50; color: #a5d6a7; }
  .btn-back { font-size: 14px; opacity: 0.8; max-width: 200px; padding: 10px 16px; margin-top: 20px; }
