#webgl_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* ========================================== */
/* 1. HUD 共享面板基本设计（毛玻璃、暗色半透明）*/
/* ========================================== */
.hud_panel {
    position: fixed;
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s;
    opacity: 1;
    visibility: visible;
}

/* 隐藏样式 */
#header_panel.hidden {
    transform: translateX(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#minimap_panel.hidden {
    transform: translateX(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ========================================== */
/* 2. 右上角：全局控制按钮与 SVG 动画         */
/* ========================================== */
#global_ui_toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    user-select: none;
    padding: 0;
}

#global_ui_toggle:hover {
    background: rgba(66, 153, 241, 0.25);
    border-color: #4299f1;
    box-shadow: 0 0 10px rgba(66, 153, 241, 0.3);
}

#global_ui_toggle.ui_minimized {
    background: rgba(66, 153, 241, 0.35);
    border-color: #4299f1;
}

.orbital-eye-svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

#global_ui_toggle:hover .orbital-eye-svg {
    color: #4299f1;
    transform: scale(1.05);
}

.orbital-eye-svg .central-body,
.orbital-eye-svg .eye-outer,
.orbital-eye-svg .inclined-orbit,
.orbital-eye-svg .satellite-body {
    transition: opacity 0.3s ease, stroke 0.3s ease;
}

.orbital-eye-svg .slash-line {
    stroke: #ff3b30;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    opacity: 0;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

#global_ui_toggle.ui_minimized .orbital-eye-svg {
    transform: rotate(90deg);
}

#global_ui_toggle.ui_minimized .orbital-eye-svg .eye-outer,
#global_ui_toggle.ui_minimized .orbital-eye-svg .inclined-orbit {
    opacity: 0.25;
}

#global_ui_toggle.ui_minimized .orbital-eye-svg .central-body,
#global_ui_toggle.ui_minimized .orbital-eye-svg .satellite-body {
    opacity: 0.15;
}

#global_ui_toggle.ui_minimized .orbital-eye-svg .slash-line {
    stroke-dashoffset: 0;
    opacity: 1;
}


/* ========================================== */
/* 3. 左上角数据面板 & 右下角小地图面板       */
/* ========================================== */
#header_panel {
    top: 30px;
    left: 30px;
    width: 310px;      
    padding: 12px;     
}

#minimap_panel {
    bottom: 30px;
    right: 30px;
    width: 290px;
    padding: 15px;
}

.system_title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
}

.system_subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-top: 3px;
}

.data_divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0 12px 0;
}

.astronomical_data {
    font-size: 14px;
}

.data_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.data_row:last-child {
    margin-bottom: 0;
}

.data_label {
    color: rgba(255, 255, 255, 0.5);
}

.data_value {
    color: #4299f1;
}

.panel_title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

#orbit_canvas {
    display: block;
    width: 100%;
    height: 140px;
    border-radius: 4px;
}


/* ========================================== */
/* 4. 顶部北京时间面板                        */
/* ========================================== */
#beijing_time_panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px; 
    height: 55px; 
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s;
    
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
}

#beijing_time_panel.hidden {
    transform: translate(-50%, -100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bjt_bg_blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 18, 0.55); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); 
    z-index: 1;
}

.bjt_svg_frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5)); 
}

.bjt_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.bjt_label {
    font-size: 10px; 
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(0, 210, 255, 0.7);
    text-transform: uppercase;
    margin-top: 4px; 
}

.bjt_time {
    font-size: 22px; 
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.8), 0 0 15px rgba(0, 210, 255, 0.4);
}


/* ========================================== */
/* 5. 极简科幻矩阵中控面板 (经典矩形，绝不倾斜偏位) */
/* ========================================== */
.cockpit_console_rect {
    position: fixed;
    bottom: 5px; /* 悬浮放置，更加精致轻量 */
    left: 50%;
    transform: translateX(-50%);
    width: 580px; 
    height: 52px; 
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    background: rgba(6, 12, 22, 0.78) !important;
    border: 1px solid rgba(0, 210, 255, 0.25) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(0, 210, 255, 0.05) !important;
    z-index: 150;
}

.cockpit_console_rect.hidden {
    transform: translate(-50%, calc(100% + 35px)) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* ========================================== */
/* 6. 电影级黄道控制舱自适应按钮 (Cinematic HUD) */
/* ========================================== */

.ctrl_group {
    display: flex;
    align-items: center;
    gap: 14px; /* 保持适当间距，展示硬质切角边缘 */
    margin-bottom: 10px;
}

.ctrl_group .rect_btn {
    position: relative;
    width: auto;                  /* 宽度自适应 */
    min-width: max-content;       /* 确保容器适应文字长度 */
    white-space: nowrap;          /* 强制单行显示，绝不折行 */
    overflow: hidden;             /* 剪切内部扫描动画 */
    
    background: rgba(4, 8, 15, 0.72); /* 极其深邃的太空格调 */
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: rgba(255, 255, 255, 0.78);
    
    /* 电影级不对称斜切硬边缘 (左下与右上切角) */
    clip-path: polygon(
        0 0, 
        calc(100% - 8px) 0, 
        100% 8px, 
        100% 100%, 
        8px 100%, 
        0 calc(100% - 8px)
    );
    
    font-size: 14px;              /* 采用精密仪器特有的微型字号 */
    font-weight: 700;
    letter-spacing: 3px;          /* 极宽字距，营造星际仪表的史诗感 */
    text-transform: uppercase;
    
    height: 34px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

/* 按钮左侧微型状态标识 */
.ctrl_group .rect_btn::before {
    content: '■';
    font-size: 5px;
    color: rgba(0, 210, 255, 0.6);
    margin-right: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 按钮底部的全息激光掠影线 */
.ctrl_group .rect_btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
    transition: all 0.5s ease;
}

/* 悬停 (Hover) 状态：线框高亮，间距微妙拉伸，激光线滑过 */
.ctrl_group .rect_btn:hover {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.75);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.18);
    letter-spacing: 4px; /* 悬停时字间距动态微调，模拟电传响应 */
}

.ctrl_group .rect_btn:hover::before {
    color: #00d2ff;
    transform: scale(1.2);
}

.ctrl_group .rect_btn:hover::after {
    left: 100%; /* 触发横向单向激光扫描动画 */
}

/* 激活选中 (Active) 状态 */
.ctrl_group .rect_btn.active {
    color: #ffffff !important;
    background: rgba(0, 210, 255, 0.22) !important;
    border-color: #00d2ff !important;
    box-shadow: 
        0 0 20px rgba(0, 210, 255, 0.3),
        inset 0 0 8px rgba(0, 210, 255, 0.25);
}

.ctrl_group .rect_btn.active::before {
    content: '▲';
    color: #ffffff;
    animation: hud_pulse 1.8s infinite ease-in-out;
}

/* 微弱的全息波动动画 */
@keyframes hud_pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========================================== */
/* 7. 中部高亮特别按钮设计                     */
/* ========================================== */
.highlight_btn {
    border: 1px solid rgba(0, 210, 255, 0.45);
    background: rgba(0, 210, 255, 0.05);
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 210, 255, 0.8);
    font-weight: 800;
    padding: 0 18px;
}

.highlight_btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: #00d2ff;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.35);
}


/* ==========================================
   ⬇️ 底部下拉（上拉）菜单核心动画与样式 ⬇️
   ========================================== */
   .rect_dropdown_container {
    position: relative;
    display: inline-block;
}

/* 菜单默认隐藏状态（带物理阻尼滑动动画） */
.rect_dropdown_menu {
    position: absolute;
    bottom: calc(100% + 8px); /* 悬浮在按钮上方 8px 处 */
    left: 0;
    width: 100%;
    margin: 0;
    padding: 4px 0;
    background: rgba(4, 8, 15, 0.85); /* 极客深空背景 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 4px;
    list-style: none;
    
    /* 动画初始状态：透明、不可点击、稍微向下偏移 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 带有微弱回弹的航天阻尼感 */
    z-index: 100;
}

/* 菜单激活状态 */
.rect_dropdown_menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 列表项 UI 设计 */
.rect_dropdown_menu li {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

/* 悬停发光 */
.rect_dropdown_menu li:hover {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.15);
}

/* 选中高亮状态 */
.rect_dropdown_menu li.active {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    border-left: 2px solid #00d2ff;
    border-right: 2px solid #00d2ff;
}

/* 按钮上的小箭头翻转动画 */
.arrow_indicator {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.rect_dropdown_container.active .arrow_indicator {
    transform: rotate(180deg);
}

/* ========================================== */
/* 9. 移动端响应式弹性平铺缩放                */
/* ========================================== */
@media (max-width: 768px) {
    #global_ui_toggle {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }

    #beijing_time_panel {
        width: 220px;
        height: 55px;
    }
    .bjt_label { font-size: 9px; }
    .bjt_time { font-size: 18px; }

    #header_panel {
        top: 70px;
        left: 15px;
        width: calc(100% - 120px); 
        padding: 10px;
        border-radius: 6px;
    }

    /* 手机端无缝等比缩小，避免宽度溢出 */
    .cockpit_console_rect {
        width: 580px !important;
        height: 52px !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.66) !important;
        transform-origin: bottom center;
    }

    #minimap_panel {
        bottom: 65px; 
        right: 15px;
        width: 220px; 
        padding: 12px;
        border-radius: 6px;
    }

    #minimap_panel .panel_title {
        font-size: 11px;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }

    #orbit_canvas {
        height: 110px; 
    }
}

/* ========================================== */
/* 10. 额外补充：小行星监控面板科幻自适应样式   */
/* ========================================== */
#info_neo_hazard {
    font-weight: 700;
    /* 利用 currentColor 让其继承 JS 赋予的红/蓝色彩，并产生全息发光阴影 */
    text-shadow: 0 0 6px currentColor;
    transition: color 0.3s ease;
}

#info_neo_closest {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超长自动显示为 ... */
    text-align: right;
}

@media (max-width: 768px) {
    #info_neo_closest {
        max-width: 120px; /* 移动端屏幕窄，缩减最大宽度限制 */
    }
}

.main_control_container{
    position: fixed;
    z-index: 200;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
}
.main_control_container .left_btn{
    position: absolute;
    left: 0;
    transform: translateX(-100%);
    display: flex;
    align-items: center;
    transform-origin: 0 100%;
}
.main_control_container .center{
    position: relative;
    width: 130px;
    height: 80px;
    /* background-color: #fff; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.main_control_container .center::before{
    position: absolute;
    content: "";
    top: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(ellipse closest-side at 50% 50%, rgba(0, 0, 0, 1) 10%,  transparent 100%); */
}
.main_control_container .right_btn{
    position: absolute;
    right: 0;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    transform-origin: 100% 100%;
}
.main_control_container .ctrl_btn{
    width: 7vw;
    height: 7vw;
    background-color: #4299f1;
}


/* From Uiverse.io by StealthWorm */ 
.loader {
  display: flex;
  width: 8rem;
  height: 8rem;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
  scale: 0.3;
}

.curve {
  width: 180%;
  height: 180%;
  position: absolute;
  animation: rotate 8s linear infinite;
  fill: transparent;
}

.curve text {
  letter-spacing: 20px;
  text-transform: uppercase;
  font: 1.5em "Fira Sans", sans-serif;
  fill: white;
  filter: drop-shadow(0 2px 8px black);
}

.blackhole {
  z-index: -1;
  display: flex;
  position: absolute;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
}

.blackhole-circle {
  z-index: 0;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, black 25%, white 35%, white 100%);
  box-shadow: 0px 0px 2rem #c2babb;
  align-items: center;
  justify-content: center;
}

.blackhole-circle::after {
  z-index: 0;
  position: absolute;
  content: "";
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid white;
  background: radial-gradient(circle at center, black 35%, white 60%, white 100%);
  box-shadow: 0px 0px 5rem #c2babb;
  align-items: center;
  justify-content: center;
  filter: blur(4px);
  animation: pulseAnimation linear infinite 2s alternate-reverse;
}

.blackhole-circle::before {
  z-index: 1;
  content: "";
  display: flex;
  width: 4rem;
  height: 4rem;
  border: 2px solid #ffffff;
  box-shadow: 3px 3px 10px #c2babb, inset 0 0 1rem #ffffff;
  border-radius: 50%;
  top: 5rem;
  filter: blur(0.5px);
}

.blackhole-disc {
  position: absolute;
  z-index: 0;
  display: flex;
  width: 5rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 80%, #353535 90%, white 100%);
  filter: blur(1rem) brightness(130%);
  border: 1rem solid white;
  box-shadow: 0px 0px 3rem #d7c4be;
  transform: rotate3d(1, 1, 1, 220deg);
  animation: pulseAnimation2 linear infinite 2s alternate-reverse;
  justify-content: center;
  align-items: center;
}

.blackhole-disc::before {
  content: "";
  position: absolute;
  z-index: 0;
  display: flex;
  width: 5rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 80%, #353535 90%, white 100%);
  filter: blur(3rem);
  border: 1rem solid white;
  box-shadow: 0px 0px 6rem #d7c4be;
  animation: pulseAnimation linear infinite 2s alternate-reverse;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseAnimation {
  0% {
    box-shadow: 0px 0px 3rem #c2babb;
    transform: scale(1);
  }

  100% {
    box-shadow: 0px 0px 5rem #c2babb;
    transform: scale(1.09);
  }
}

@keyframes pulseAnimation2 {
  0% {
    box-shadow: 0px 0px 3rem #c2babb;
    transform: rotate3d(1, 1, 1, 220deg) scale(1);
  }

  100% {
    box-shadow: 0px 0px 5rem #c2babb;
    transform: rotate3d(1, 1, 1, 220deg)  scale(.95);
  }
}



.toggle {
  margin: 4px;
  display: inline-block;
}

.toggle {
  box-shadow:
    inset 0 0 35px 5px rgba(0, 0, 0, 0.25),
    inset 0 2px 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  background: #ccd0d4;
  position: relative;
  height: 140px;
  width: 140px;
}
.toggle:before {
  box-shadow: 0 0 17.5px 8.75px #fff;
  border-radius: 118.3px;
  background: #fff;
  position: absolute;
  margin-left: -50.4px;
  margin-top: -50.4px;
  opacity: 0.2;
  content: "";
  height: 100.8px;
  width: 100.8px;
  left: 50%;
  top: 50%;
}
.toggle .button {
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  filter: blur(1px);
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 15px 25px -4px rgba(0, 0, 0, 0.5),
    inset 0 -3px 4px -1px rgba(0, 0, 0, 0.2),
    0 -10px 15px -1px rgba(255, 255, 255, 0.6),
    inset 0 3px 4px -1px rgba(255, 255, 255, 0.2),
    inset 0 0 5px 1px rgba(255, 255, 255, 0.8),
    inset 0 20px 30px 0 rgba(255, 255, 255, 0.2);
  border-radius: 96.32px;
  position: absolute;
  background: #ccd0d4;
  margin-left: -48.16px;
  margin-top: -48.16px;
  display: block;
  height: 96.32px;
  width: 96.32px;
  left: 50%;
  top: 50%;
}
.toggle .label {
  transition: color 300ms ease-out;
  text-shadow:
    1px 1px 3px #ccd0d4,
    0 0 0 rgba(0, 0, 0, 0.8),
    1px 1px 4px #fff;
  line-height: 139px;
  text-align: center;
  position: absolute;
  font-weight: 700;
  font-size: 42px;
  display: block;
  opacity: 0.9;
  height: 100%;
  width: 100%;
  color: rgba(0, 0, 0, 0.4);
}
.toggle input {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  z-index: 1;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}
.toggle input:active ~ .button {
  box-shadow:
    0 15px 25px -4px rgba(0, 0, 0, 0.4),
    inset 0 -8px 30px 1px rgba(255, 255, 255, 0.9),
    0 -10px 15px -1px rgba(255, 255, 255, 0.6),
    inset 0 8px 25px 0 rgba(0, 0, 0, 0.4),
    inset 0 0 10px 1px rgba(255, 255, 255, 0.6);
}
.toggle input:active ~ .label {
  font-size: 40px;
  color: rgba(0, 0, 0, 0.45);
}
.toggle input:checked ~ .button {
  box-shadow:
    0 15px 25px -4px rgba(0, 0, 0, 0.4),
    inset 0 -8px 25px -1px rgba(255, 255, 255, 0.9),
    0 -10px 15px -1px rgba(255, 255, 255, 0.6),
    inset 0 8px 20px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 5px 1px rgba(255, 255, 255, 0.6);
}
.toggle input:checked ~ .label {
  font-size: 40px;
  color: rgba(0, 0, 0, 0.4);
}

/* ========================================== */
/* 背景音乐静音控制器按钮                      */
/* ========================================== */
#music_toggle {
    position: fixed;
    top: 30px;
    right: 86px; /* 留出间距：30px (右边距) + 46px (UI切换按钮宽) + 10px (边距) */
    width: 46px;
    height: 46px;
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    user-select: none;
    padding: 0;
}

#music_toggle:hover {
    background: rgba(66, 153, 241, 0.25);
    border-color: #4299f1;
    box-shadow: 0 0 10px rgba(66, 153, 241, 0.3);
}

#music_toggle.music_muted {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.music-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

#music_toggle:hover .music-icon {
    color: #4299f1;
    transform: scale(1.05);
}

/* 移动端屏幕适配 */
@media (max-width: 768px) {
    #music_toggle {
        top: 15px;
        right: 63px; /* 15px (右边距) + 38px (UI切换按钮宽) + 10px (边距) */
        width: 38px;
        height: 38px;
    }
    .music-icon {
        width: 18px;
        height: 18px;
    }
}