body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0f1a;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
    overflow: hidden;
  }
  #soundIcon {
    font-size: 20px; 
    cursor: pointer;
    user-select: none;
  }
  
  /* 通用按钮 */
  .btn {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
    backdrop-filter: blur(6px);
  }
  .btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
  .btn:active { transform: translateY(0); }
  .btn.primary { border-color: #2eaadc; background: linear-gradient(180deg,#2eaadc66,#2eaadc22); }
  .btn.ghost { background: transparent; }
  .btn.small { padding: 6px 10px; border-radius: 8px; font-size: 12px;}
  
  /* 叠层/覆盖层 */
  .overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 20;background: radial-gradient(1200px 600px at 70% 70%, rgba(11,18,32,0.9), rgba(6,10,18,0.96) 60%, rgba(6,10,18,1));}
  .overlay.show { display: flex; animation: fadeIn .35s ease;}
  .overlay.show::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/bg2.png");
    background-size: cover;
    background-position: center;
    filter: blur(3px);      
    transform: scale(1.1);  
    z-index: -1;            
  }
  .overlay-inner { width: min(760px, 92vw); padding: 38px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: 0 20px 60px rgba(0,0,0,0.45); position: relative;backdrop-filter:blur(11px); }
  .overlay-inner.small { width: min(560px, 92vw); }
  
  /* 启动界面装饰 */
  .title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .decoration-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #2eaadc, transparent);
    margin: 0 15px;
  }
  .decoration-star {
    color: #2eaadc;
    font-size: 24px;
    animation: starTwinkle 2s ease-in-out infinite;
  }
  .start-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .floating-icon {
    position: absolute;
    font-size: 22px;
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
  }
  .floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
  .floating-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
  .floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
  
  .game-title { margin: 6px 0 8px; font-size: 40px; letter-spacing: 2px; text-shadow: 0 6px 30px rgba(46,170,220,0.35); }
  .subtitle { margin: 0 0 18px; color: #c9d7ffcc; }
  .control-row { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
  .guide-list { text-align: left; line-height: 1.7; color: #eaf1ffcc; }
  
  #game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  #scene {
    position: relative;
    flex: 2;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(1000px 400px at 50% 0%, #0c1628, #081120);
    transition: all 0.3s ease;
  }
  /* 动态星空背景 */
  #scene::before, #scene::after { content: ""; position: absolute; inset: -40%; background-repeat: repeat; opacity: .5; pointer-events: none; }
  #scene::before { background-image: radial-gradient(2px 2px at 20px 30px, #9fdcff 55%, transparent 45%), radial-gradient(4px 4px at 60px 80px, #9fdcff 55%, transparent 45%), radial-gradient(2px 2px at 120px 140px, #9fdcff 55%, transparent 45%); background-size: 120px 120px; animation: driftFast 30s linear infinite; }
  #scene::after { background-image: radial-gradient(3px 3px at 40px 50px, #7cb7ff 55%, transparent 45%), radial-gradient(1px 1px at 100px 20px, #7cb7ff 55%, transparent 45%); background-size: 180px 180px; animation: driftFast 35s linear infinite reverse; }
  
  /* 成功模式 */
  #scene.success-mode {
    background: none !important;
  }
  #scene.success-mode::before,
  #scene.success-mode::after {
    display: none;
  }
  
  /* 场景切换动画 */
  #scene.scene-transition {
    opacity: 0.3;
    transform: scale(0.98);
  }
  
  /* 每个场景额外色调 */
  .scene-bg-1 { background-image: radial-gradient(900px 380px at 50% 0%, #0c1f3a, #07101f 70%); }
  .scene-bg-2 { background-image: radial-gradient(900px 380px at 50% 0%, #24133a, #0f0a1d 70%); }
  .scene-bg-3 { background-image: radial-gradient(900px 380px at 50% 0%, #0e2b22, #07131b 70%); }
  .scene-bg-4 { background-image: radial-gradient(900px 380px at 50% 0%, #30210e, #1b1207 70%); }
  
  #scene-title {
    background: rgba(0,0,0,0.6);
    display: inline-block;
    padding: 8px 16px;
    margin-top:55px;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.35);
    position: relative;
    z-index: 10;
  }
  
  .drop-zone {
    margin: 45px auto 0 auto ;
    width: 60%;
    height: 250px;
    border: 2px dashed #79c2ff66;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, background .2s ease, transform .25s ease;
    position: relative;
    z-index: 10;
  }
  .drop-zone.dragover { border-color: #2eaadc; background: rgba(46,170,220,0.12); }
  .drop-zone.success { border-color: #27d49e; box-shadow: 0 0 0 4px #27d49e22 inset; }
  .drop-zone.error { border-color: #ff6b6b; }
  .drop-zone .clone { margin: 8px; transition: transform .2s ease, opacity .2s ease; }
  .drop-zone .clone.removing { opacity: .2; transform: scale(0.85); }
  
  #jets {
    flex: 1;
    background: #222;
    padding: 15px;
    border-top: 5px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg,rgb(56, 68, 94),rgb(17, 27, 46));
  }
  
  .jet-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .jet {
    width: 100px;
    cursor: grab;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
    user-select: none;
    pointer:cursor;
    touch-action: none; /* 防止移动端默认触摸行为 */
  }
  .jet:hover { transform: translateY(-2px); filter: brightness(1.05); }
  .jet:active { cursor: grabbing; }
  .jet.hint { box-shadow: 5px 5px 5px 5px rgba(130, 218, 236, 0.53), 5px 8px 26px rgba(49, 152, 230, 0.27); animation: pulseGlow 2.4s ease-in-out infinite; }
  
  
  #message {
    position: fixed;
    top: 40%;
    left: 50%;
    /* transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.8);
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 22px;
    display: none;
    z-index: 30;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45); */
    transform: translate(-50%,-50%);
    display: none;
    outline: none;
    font-family: inherit;
    font-size: 22px;
    box-sizing: border-box;
    border: none;
    border-radius: 0.3em;
    padding: 20px 40px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(110, 80, 20, 0.4),
      inset 0 -2px 5px 1px rgb(14, 65, 107),
      inset 0 -1px 1px 3px rgb(32, 64, 90);
    background-image: linear-gradient(
      160deg,
rgb(4, 44, 56),
rgb(9, 19, 48),
rgb(35, 114, 171),
rgb(7, 19, 67),
rgb(5, 25, 48)
    );
    border: 1px solidrgb(47, 95, 226);
    color: rgb(255, 255, 255);
    text-shadow: 0 2px 2px rgb(41, 86, 157);
    z-index: 30;
  }

  /* 顶部 HUD - 游戏化设计 */
  #hud { 
    position: fixed; 
    top: 10px; 
    left: 0; 
    right: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 16px; 
    z-index: 15; 
    pointer-events: none; 
  }
  
  #hud .hud-left, #hud .hud-right { 
    pointer-events: all; 
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(20,30,50,0.9));
    border: 2px solid rgba(46,170,220,0.3);
    border-radius: 16px; 
    padding: 8px 16px; 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
  }
  
  #hud .hud-left::before,
  #hud .hud-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46,170,220,0.2), transparent);
    animation: hudShine 3s ease-in-out infinite;
  }
  
  #hud .hud-left span,
  #hud .hud-right span {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
  }
  
  #hud .dot { 
    opacity: .6; 
    color: #2eaadc;
    font-weight: bold;
  }

  /* 动画 */
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(-360px); } }
  @keyframes driftFast { from { transform: translateY(0) translateX(0); } to { transform: translateY(-600px) translateX(200px); } }
  @keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 2px #2eaadc55, 0 8px 26px #2eaadc33; } 50% { box-shadow: 0 0 0 6px #2eaadc22, 0 12px 34px #2eaadc55; } }
  @keyframes hudShine { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }
  @keyframes starTwinkle { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
  @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
  .shake { animation: shakeAnim .4s linear; }
  @keyframes shakeAnim { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
  .pop-in { animation: popIn .18s ease; }
  @keyframes popIn { from { transform: scale(.9); opacity: .6; } to { transform: scale(1); opacity: 1; } }

  /* 响应式 */
  @media (max-width: 768px) {
    body { font-size: 16px; }
    .game-title { font-size: 30px; }
    #hud { top: 6px; padding: 0 8px; }
    #hud .hud-left, #hud .hud-right { padding: 8px 10px; border-radius: 12px; gap: 10px; }
    #scene { padding: 14px; }
    #scene-title { font-size: 18px; }
    .scene-desc { font-size: 14px; opacity: .95; }
    .drop-zone { width: 94%; height: 260px; margin: 3em auto; }
    #jets { padding: 14px; }
    .jet-list { gap: 18px; }
    .jet { width: 110px; }
  }

  @media (max-width: 440px) {
    .overlay.show::before {
      background-image: url("images/bg4.png");
    }
    #hud { top: 5px; }
    #scene-title { font-size: 16px; }
    .jet { width: 76px; }
    .drop-zone { height: 230px; margin-top:2em; }
    #message{font-size:15px;padding:12px 15px}
  }

  /* 场景描述 */
  .scene-desc { margin: 6px auto 0; max-width: 92%; color: #d7e7ffcc; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); padding: 6px 10px; border-radius: 8px; display: inline-block; }