html,
body,
.body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
}

.menu {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand i {
  font-size: 1.75rem;
  color: #B8860B;
  opacity: 0.9;
}

.toggle-btn {
  background: none;
  border: none;
  color: #B8860B;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.toggle-btn:hover {
  color: #DAA520;
  background-color: rgba(184, 134, 11, 0.1);
}

.menu.collapsed {
  padding: 0.5rem;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

.menu.collapsed .header {
  flex-direction: column;
}

.menu.collapsed .website-title,
.menu.collapsed .title-layout,
.menu.collapsed .content-layout {
  display: none;
}

.menu.collapsed .toggle-btn {
  transform: rotate(180deg);
}

.website-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2C3E50;
  letter-spacing: 0.5px;
}

.title-layout {
  display: flex;
  padding: 1rem 0rem;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.title {
  color: #34495E;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
}

.title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1rem;
  background: linear-gradient(to bottom, #B8860B, #DAA520);
  border-radius: 2px;
}

.content-layout {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #2C3E50;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(184, 134, 11, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.button:hover {
  background-color: rgba(184, 134, 11, 0.05);
  border-color: rgba(184, 134, 11, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

.play {
  color: #344054;
  font-family: Inter;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.input-card .btn {
  margin-right: 1.2rem;
  width: 9rem;
}

.input-card .btn:last-child {
  margin-right: 0;
}

.right {
  flex: 1 0 0;
  align-self: stretch;
}

/* 添加滚动样式 */
.menu {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 134, 11, 0.3) transparent;
}

.menu::-webkit-scrollbar {
  width: 6px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background-color: rgba(184, 134, 11, 0.3);
  border-radius: 3px;
}

/* 添加平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {

  /* 适用于宽度小于或等于 768px 的设备 */
  .menu {
    position: fixed;
    /* 保持悬浮效果 */
    top: 1rem;
    /* 距离顶部 1rem */
    left: 1rem;
    right: 1rem;
    /* 距离右侧 1rem */
    width: auto;
    /* 宽度自动适应左右边距 */
    height: auto;
    /* 高度自动适应内容 */
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
    padding: 1rem;
    /* 内边距 1rem */
    border-radius: 0.5rem;
    /* 添加圆角 */
    background-color: #fff;
    /* 背景色为白色 */
    z-index: 1000;
    /* 确保在最上层显示 */
  }

  .header {
    justify-content: space-between;
    /* 标题和收缩按钮两端对齐 */
  }

  .website-title {
    font-size: 1.2rem;
    /* 调整标题字体大小 */
  }

  .toggle-btn {
    font-size: 1rem;
    /* 调整收缩按钮字体大小 */
  }

  .title-layout {
    padding: 0.5rem 0;
    /* 调整标题布局的内边距 */
  }

  .content-layout {
    flex-wrap: wrap;
    /* 按钮换行 */
    gap: 0.5rem;
    /* 按钮之间的间距 */
  }

  .button {
    flex-shrink: 0;
    /* 防止按钮被压缩 */
    padding: 0.625rem 0.875rem;
    /* 调整按钮大小，使其更易点击 */
    min-width: 4.5rem;
    /* 确保按钮有合适的最小宽度 */
    font-size: 0.9375rem;
    /* 略微增加字体大小 */
  }

  .custom-content-marker {
    width: 600px;
  }

  .marker-name {
    font-size: 5rem;
    font-weight: 500;
  }
}

/* 3D按钮样式 */
.floating-3d-btn {
  position: fixed;
  bottom: 8rem;
  left: 2rem;
  z-index: 1001;
}

.btn-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 80px;
  height: 60px;
}

.btn-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-3d:active {
  transform: translateY(-1px);
}

.btn-3d i {
  font-size: 1.2rem;
}

.btn-3d span {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .floating-3d-btn {
    bottom: 7rem;
    left: 1rem;
  }
  
  .btn-3d {
    padding: 0.8rem 1.2rem;
    min-width: 70px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .btn-3d i {
    font-size: 1rem;
  }
  
  .btn-3d span {
    font-size: 0.8rem;
  }
}

/* 密度图按钮样式 */
.floating-density-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1001;
}

.btn-density {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 80px;
  height: 60px;
}

.btn-density:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}

.btn-density:active {
  transform: translateY(-1px);
}

.btn-density i {
  font-size: 1.2rem;
}

.btn-density span {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .floating-density-btn {
    bottom: 1rem;
    left: 1rem;
  }
  
  .btn-density {
    padding: 0.8rem 1.2rem;
    min-width: 70px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .btn-density i {
    font-size: 1rem;
  }
  
  .btn-density span {
    font-size: 0.8rem;
  }
}

/* 科幻风格俯仰角控制滑杆 */
.pitch-control {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  min-width: 40px;
  text-align: center;
}

.pitch-label {
  font-size: 0.7rem;
  font-weight: 300;
  color: #00ffff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #00ffff;
  font-family: 'Courier New', monospace;
}

.pitch-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.pitch-slider {
  width: 3px;
  height: 140px;
  border-radius: 2px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0, 255, 255, 0.3) 20%, 
    rgba(0, 255, 255, 0.6) 50%, 
    rgba(0, 255, 255, 0.3) 80%, 
    transparent 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  position: relative;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.pitch-slider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -1px;
  right: -1px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(0, 255, 255, 0.1) 50%, 
    transparent 70%);
  border-radius: 3px;
  z-index: -1;
}

.pitch-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    #00ffff 0%, 
    #0080ff 50%, 
    #004080 100%);
  cursor: pointer;
  box-shadow: 
    0 0 15px #00ffff,
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 5px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pitch-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 0 20px #00ffff,
    0 0 40px rgba(0, 255, 255, 0.7),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.pitch-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 
    0 0 25px #00ffff,
    0 0 50px rgba(0, 255, 255, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.pitch-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    #00ffff 0%, 
    #0080ff 50%, 
    #004080 100%);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 0 15px #00ffff,
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 5px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.pitch-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 0 20px #00ffff,
    0 0 40px rgba(0, 255, 255, 0.7),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.pitch-value {
  font-size: 0.7rem;
  font-weight: 300;
  color: #00ffff;
  margin-top: 0.5rem;
  text-shadow: 0 0 8px #00ffff;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  background: rgba(0, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .pitch-control {
    bottom: 1rem;
    right: 1rem;
    min-width: 35px;
  }
  
  .pitch-slider {
    height: 100px;
    width: 2px;
  }
  
  .pitch-label {
    font-size: 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .pitch-value {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  
  .pitch-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  
  .pitch-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
}

/* 3D视角球形控制器样式 */
.sphere-controller {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 80, 0.9));
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.sphere-controller:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 10px 40px rgba(0, 255, 255, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.15);
}

.controller-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
}

.controller-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, transparent);
}

.controller-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 10px #00ffff;
  letter-spacing: 1px;
}

.controller-title i {
  font-size: 18px;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
  }
}

@keyframes glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
  }
}

@keyframes matrixRain {
  0% { 
    background-position: 0% 0%;
    opacity: 0.1;
  }
  50% { 
    opacity: 0.3;
  }
  100% { 
    background-position: 100% 100%;
    opacity: 0.1;
  }
}

.sphere-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.sphere-track {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1), rgba(0, 40, 80, 0.8));
  border: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
  cursor: pointer;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.sphere-track:hover {
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
}

.sphere-handle {
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 
    0 0 15px rgba(0, 255, 255, 0.8),
    0 0 30px rgba(0, 255, 255, 0.4);
  border: 2px solid #fff;
  transition: all 0.2s ease;
}

.sphere-handle:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 1),
    0 0 40px rgba(0, 255, 255, 0.6);
}

.sphere-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

.control-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.pitch-label,
.rotation-label {
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.pitch-label span,
.rotation-label span {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 8px #00ffff;
}

/* 球形控制器响应式设计 */
@media (max-width: 768px) {
  .sphere-controller {
    bottom: 10px;
    right: 10px;
    padding: 15px;
  }

  .sphere-track {
    width: 100px;
    height: 100px;
  }

  .sphere-handle {
    width: 16px;
    height: 16px;
  }

  .controller-title {
    font-size: 14px;
  }

  .pitch-label,
  .rotation-label {
    font-size: 11px;
  }
}

/* 科幻控制面板样式 */
.scifi-control-panel {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 320px;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 80, 0.9));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  z-index: 1000;
  max-height: 80vh;
  overflow: hidden;
}

.scifi-control-panel:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 10px 40px rgba(0, 255, 255, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.15);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
  cursor: pointer;
}

.panel-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, transparent);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 10px #00ffff;
  letter-spacing: 1px;
}

.panel-title i {
  font-size: 18px;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff;
  animation: pulse 2s infinite;
}

.panel-toggle {
  color: #00ffff;
  font-size: 14px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.panel-toggle:hover {
  transform: scale(1.2);
}

.panel-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.panel-content.collapsed {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
}

.control-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.control-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.control-section:hover::before {
  left: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00ffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 0 8px #00ffff;
  letter-spacing: 0.5px;
}

.section-title i {
  font-size: 16px;
  color: #00ffff;
  text-shadow: 0 0 12px #00ffff;
}

/* 科幻按钮样式 */
.scifi-btn {
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 150, 255, 0.1));
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #00ffff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 0 5px #00ffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  justify-content: center;
}

.scifi-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.3s ease;
}

.scifi-btn:hover::before {
  left: 100%;
}

.scifi-btn:hover {
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.scifi-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
}

.scifi-btn.active {
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(0, 150, 255, 0.3));
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* 缩放控制样式 */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.zoom-display {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 8px #00ffff;
  min-width: 40px;
  text-align: center;
}

/* 旋转控制样式 */
.rotation-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e0e0;
  font-size: 12px;
}

.speed-control input[type="range"] {
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.8));
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.speed-control span {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
  min-width: 30px;
  text-align: center;
}

/* 预设控制样式 */
.preset-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preset-btn {
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  font-size: 11px;
}

.preset-btn i {
  font-size: 14px;
}

/* 特效控制样式 */
.effect-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.effect-btn {
  flex: 1;
  min-width: 70px;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  font-size: 11px;
}

.effect-btn i {
  font-size: 14px;
}

/* 游戏控制样式 */
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 10px 15px;
}

.game-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.3);
}

.game-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 跑马灯速度控制 */
.marquee-speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e0e0;
  font-size: 12px;
  padding: 8px 12px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
}

.marquee-speed-control label {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
  min-width: 80px;
}

.marquee-speed-control input[type="range"] {
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.8));
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.marquee-speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.marquee-speed-control span {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
  min-width: 30px;
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
}

.game-score {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
}

.game-status {
  color: #e0e0e0;
  font-style: italic;
}

/* 礼花特效样式 */
.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fireworkExplode 1.5s ease-out forwards;
}

@keyframes fireworkExplode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* 跑马灯高亮轮播效果 - 拼多多抽奖风格 */
.building-highlight {
  animation: marqueeHighlight 0.8s ease-in-out;
}

@keyframes marqueeHighlight {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    transform: scale(1);
  }
  30% {
    filter: brightness(2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    transform: scale(1.1);
  }
  60% {
    filter: brightness(1.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    transform: scale(1.05);
  }
  100% {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
  }
}

/* 跑马灯当前高亮效果 */
.building-marquee-current {
  animation: marqueeCurrent 0.6s ease-in-out infinite;
  z-index: 1000 !important;
}

@keyframes marqueeCurrent {
  0%, 100% {
    filter: brightness(2);
    box-shadow: 
      0 0 40px rgba(255, 215, 0, 1),
      0 0 80px rgba(255, 215, 0, 0.6),
      inset 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
    border: 3px solid #FFD700;
  }
  50% {
    filter: brightness(2.5);
    box-shadow: 
      0 0 60px rgba(255, 215, 0, 1),
      0 0 120px rgba(255, 215, 0, 0.8),
      inset 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    border: 4px solid #FFD700;
  }
}

/* 跑马灯选中效果 - 最终中奖 */
.building-marquee-selected {
  animation: marqueeSelected 2s ease-in-out infinite;
  z-index: 1001 !important;
}

@keyframes marqueeSelected {
  0%, 100% {
    filter: brightness(2.5);
    box-shadow: 
      0 0 50px rgba(255, 0, 0, 1),
      0 0 100px rgba(255, 0, 0, 0.8),
      0 0 150px rgba(255, 0, 0, 0.6),
      inset 0 0 25px rgba(255, 255, 255, 0.4);
    transform: scale(1.25);
    border: 5px solid #FF0000;
  }
  25% {
    filter: brightness(3);
    box-shadow: 
      0 0 70px rgba(255, 0, 0, 1),
      0 0 140px rgba(255, 0, 0, 0.9),
      0 0 200px rgba(255, 0, 0, 0.7),
      inset 0 0 35px rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
    border: 6px solid #FF0000;
  }
  50% {
    filter: brightness(2.8);
    box-shadow: 
      0 0 60px rgba(255, 0, 0, 1),
      0 0 120px rgba(255, 0, 0, 0.8),
      0 0 180px rgba(255, 0, 0, 0.6),
      inset 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    border: 5px solid #FF0000;
  }
  75% {
    filter: brightness(3.2);
    box-shadow: 
      0 0 80px rgba(255, 0, 0, 1),
      0 0 160px rgba(255, 0, 0, 0.9),
      0 0 220px rgba(255, 0, 0, 0.7),
      inset 0 0 40px rgba(255, 255, 255, 0.7);
    transform: scale(1.35);
    border: 7px solid #FF0000;
  }
}

/* 跑马灯历史高亮效果 */
.building-marquee-history {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  transform: scale(1.01);
  border: 1px solid rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

/* 跑马灯容器效果 */
.marquee-container {
  position: relative;
  overflow: hidden;
}

.marquee-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 215, 0, 0.1) 50%, 
    transparent 100%);
  animation: marqueeSweep 3s ease-in-out infinite;
  z-index: 999;
  pointer-events: none;
}

@keyframes marqueeSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* 跑马灯速度控制 */
.marquee-slow .building-marquee-current {
  animation-duration: 1s;
}

.marquee-medium .building-marquee-current {
  animation-duration: 0.6s;
}

.marquee-fast .building-marquee-current {
  animation-duration: 0.3s;
}

/* 跑马灯减速效果 */
.marquee-slowdown .building-marquee-current {
  animation: marqueeSlowdown 2s ease-out forwards;
}

@keyframes marqueeSlowdown {
  0% {
    animation-duration: 0.3s;
  }
  100% {
    animation-duration: 1.5s;
  }
}

/* 跑马灯停止效果 */
.marquee-stop .building-marquee-current {
  animation: marqueeStop 0.5s ease-out forwards;
}

@keyframes marqueeStop {
  0% {
    filter: brightness(2);
    box-shadow: 0 0 40px rgba(255, 215, 0, 1);
    transform: scale(1.15);
  }
  100% {
    filter: brightness(2.5);
    box-shadow: 
      0 0 50px rgba(255, 0, 0, 1),
      0 0 100px rgba(255, 0, 0, 0.8);
    transform: scale(1.25);
    border: 5px solid #FF0000;
  }
}

/* 游戏粒子效果 */
.game-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1500;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0);
  }
}

/* 建筑标记样式 */
.building-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.marker-icon {
  font-size: 24px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.marker-label {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.building-marker:hover .marker-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.8));
}

.building-marker:hover .marker-label {
  background: rgba(0, 255, 255, 0.9);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 已交房建筑样式 */
.building-marker[data-type="已交房"] .marker-icon {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.building-marker[data-type="已交房"] .marker-label {
  background: rgba(0, 255, 0, 0.8);
  color: #000;
}

/* 未交房建筑样式 */
.building-marker[data-type="未交房"] .marker-icon {
  color: #ff6600;
  text-shadow: 0 0 10px #ff6600;
}

.building-marker[data-type="未交房"] .marker-label {
  background: rgba(255, 102, 0, 0.8);
  color: #fff;
}

/* FZS图片显示样式 */
.floating-fzs-image {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

.fzs-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.fzs-container:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.fzs-container:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 25px rgba(255, 255, 255, 0.3);
}

.fzs-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.fzs-container:hover .fzs-image {
  transform: scale(1.1);
}

.fzs-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.fzs-container:hover .fzs-overlay {
  opacity: 1;
}

.fzs-text {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

/* FZS图片移动端适配 */
@media (max-width: 768px) {
  .floating-fzs-image {
    top: 1rem;
    right: 1rem;
  }
  
  .fzs-container {
    width: 80px;
    height: 80px;
    border-radius: 15px;
  }
  
  .fzs-text {
    font-size: 12px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .scifi-control-panel {
    bottom: 10px;
    left: 10px;
    width: 280px;
  }

  .panel-content {
    padding: 15px;
  }

  .control-section {
    padding: 12px;
    margin-bottom: 15px;
  }

  .scifi-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .preset-controls {
    grid-template-columns: 1fr;
  }

  .effect-controls {
    flex-direction: column;
  }

  .game-info {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}