/* 登录页面样式 */
.login-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  border: none;
}

.login-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 12px 12px 0 0;
}

.login-card .ant-card-body {
  padding: 32px 24px;
}

.login-demo {
  font-size: 12px;
  line-height: 1.4;
}

.login-demo p {
  margin: 4px 0;
}

@media (max-width: 480px) {
  .login-card {
    margin: 0 8px;
  }
  
  .login-card .ant-card-body {
    padding: 24px 16px;
  }
}/* 拖拽交互组件样式 */
.drag-interaction {
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drag-header {
  text-align: center;
  margin-bottom: 16px;
}

.drag-stats {
  margin-top: 12px;
}

/* 物品池样式 */
.items-pool {
  transition: all 0.3s ease;
}

.items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

/* 可拖拽物品样式 */
.drag-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  cursor: grab;
  user-select: none;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drag-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.drag-item:active,
.drag-item.dragging {
  cursor: grabbing;
  transform: scale(1.05);
  opacity: 0.8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 放置区域样式 */
.drop-zone {
  transition: all 0.3s ease;
  position: relative;
}

.drop-zone.drag-over-ready {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.drop-zone.drag-over-ready::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.dropped-items {
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .drag-item {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .items-container {
    gap: 6px;
  }
  
  .dropped-items {
    min-height: 50px;
    padding: 6px;
  }
}

/* 动画效果 */
@keyframes dropSuccess {
  0% {
    transform: scale(1);
    background: #f6ffed;
  }
  50% {
    transform: scale(1.05);
    background: #d9f7be;
  }
  100% {
    transform: scale(1);
    background: #f6ffed;
  }
}

.drop-zone.drop-success {
  animation: dropSuccess 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.drag-item.bounce {
  animation: bounce 0.6s;
}

/* 完成状态样式 */
.completion-celebration {
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  animation: celebration 1s ease;
}

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

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .drag-interaction {
    background: #1f1f1f;
    border-color: #434343;
  }
  
  .drag-item {
    background: linear-gradient(135deg, #434343 0%, #2d2d2d 100%);
    color: #fff;
  }
  
  .drop-zone {
    background: #2a2a2a;
    border-color: #434343;
  }
}/* 滑动交互组件样式 */
.swipe-interaction {
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swipe-header {
  text-align: center;
  margin-bottom: 16px;
}

.swipe-stats {
  margin-top: 12px;
}

/* 滑动内容区域 */
.swipe-content {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 24px;
  min-height: 300px;
  cursor: grab;
  user-select: none;
}

.swipe-content:active {
  cursor: grabbing;
}

/* 时间轴容器 */
.timeline-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.year-display {
  flex: 0 0 auto;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.content-display {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* 时间轴导航 */
.timeline-nav {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.timeline-dot {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-dot:hover {
  transform: scale(1.1);
}

.timeline-dot.active {
  transform: scale(1.2);
}

.timeline-dot.viewed::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #52c41a;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.timeline-label {
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  transition: all 0.3s ease;
}

.timeline-dot.active .timeline-label {
  background: rgba(24, 144, 255, 0.1);
  transform: scale(1.1);
}

/* 画廊容器 */
.gallery-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.gallery-image {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-info {
  text-align: left;
}

/* 控制按钮 */
.swipe-controls {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(240, 242, 245, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* 动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-main {
  animation: slideIn 0.5s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(24, 144, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0);
  }
}

.timeline-dot.active {
  animation: pulse 2s infinite;
}

/* 触摸友好的交互 */
@media (max-width: 768px) {
  .swipe-content {
    padding: 16px;
    min-height: 250px;
  }
  
  .timeline-main {
    flex-direction: column;
    gap: 16px;
  }
  
  .year-display {
    padding: 16px;
  }
  
  .content-display {
    padding: 16px;
  }
  
  .timeline-nav {
    padding: 12px;
  }
  
  .swipe-controls {
    padding: 12px;
  }
}

/* 无障碍支持 */
.swipe-content:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

.timeline-dot:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .swipe-content {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  }
  
  .year-display,
  .content-display,
  .timeline-nav,
  .gallery-main {
    background: rgba(45, 55, 72, 0.9);
    color: #e2e8f0;
  }
  
  .timeline-label {
    background: rgba(45, 55, 72, 0.8);
    color: #e2e8f0;
  }
  
  .swipe-controls {
    background: rgba(45, 55, 72, 0.8);
  }
}/* 语音交互组件样式 */
.voice-interaction {
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voice-header {
  text-align: center;
  margin-bottom: 16px;
}

.voice-stats {
  margin-top: 12px;
}

/* 语音控制区域 */
.voice-controls {
  padding: 24px;
  background: linear-gradient(135deg, #f6f9fc 0%, #e9ecef 100%);
  border-radius: 12px;
  margin: 16px 0;
}

/* 录音按钮 */
.record-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.record-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 77, 79, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.record-button.recording::before {
  width: 120%;
  height: 120%;
  animation: recordingPulse 1.5s infinite;
}

@keyframes recordingPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.record-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3);
}

.record-button.recording {
  background: #ff4d4f !important;
  border-color: #ff4d4f !important;
  animation: recordingBounce 1s infinite alternate;
}

@keyframes recordingBounce {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* 识别结果显示 */
.transcript-display {
  padding: 12px;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid #1890ff;
  margin-top: 12px;
}

/* 搜索内容区域 */
.search-content,
.qa-content,
.reading-content {
  margin-bottom: 16px;
}

/* 问答卡片样式 */
.qa-content .ant-card {
  border: 2px solid #1890ff;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
}

/* 朗读内容样式 */
.reading-content .ant-card {
  border: 2px solid #52c41a;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
}

/* 语音波形动画 */
.voice-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  margin: 16px 0;
}

.voice-wave span {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #1890ff;
  margin: 0 2px;
  border-radius: 2px;
  animation: voiceWave 1.2s infinite ease-in-out;
}

.voice-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes voiceWave {
  0%, 40%, 100% {
    transform: scaleY(0.4);
    background: #1890ff;
  }
  20% {
    transform: scaleY(1);
    background: #52c41a;
  }
}

/* 结果列表样式 */
.ant-list-item {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 12px !important;
  margin: 4px 0;
}

.ant-list-item:hover {
  background: #f5f5f5;
  transform: translateX(4px);
}

/* 音频可视化 */
.audio-visualizer {
  display: flex;
  justify-content: center;
  align-items: end;
  height: 60px;
  margin: 16px 0;
  padding: 0 20px;
}

.audio-bar {
  width: 3px;
  background: linear-gradient(to top, #1890ff, #52c41a);
  margin: 0 1px;
  border-radius: 2px;
  transition: height 0.1s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .voice-controls {
    padding: 16px;
  }
  
  .record-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
  }
  
  .transcript-display {
    padding: 8px;
    font-size: 14px;
  }
}

/* 无障碍支持 */
.record-button:focus {
  outline: 3px solid #1890ff;
  outline-offset: 3px;
}

.voice-interaction [role="button"]:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 成功状态样式 */
.success-feedback {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 错误状态样式 */
.error-feedback {
  background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%);
  border: 1px solid #ffa39e;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  animation: errorShake 0.5s ease;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .voice-interaction {
    background: #1f1f1f;
    border-color: #434343;
  }
  
  .voice-controls {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  }
  
  .transcript-display {
    background: rgba(24, 144, 255, 0.2);
    color: #e6f7ff;
  }
  
  .ant-list-item:hover {
    background: #2a2a2a;
  }
}/* 手势交互组件样式 */
.gesture-interaction {
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gesture-header {
  text-align: center;
  margin-bottom: 16px;
}

.gesture-stats {
  margin-top: 12px;
}

/* 画布容器 */
.gesture-canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, #f6f9fc 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px dashed #d9d9d9;
  transition: border-color 0.3s ease;
}

.gesture-canvas-container:hover {
  border-color: #1890ff;
}

/* 画布样式 */
.gesture-canvas {
  border: 2px solid #1890ff;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gesture-canvas:hover {
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.2);
  transform: scale(1.02);
}

.gesture-canvas:active {
  cursor: grabbing;
}

/* 画布覆盖层 */
.canvas-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.drawing-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24, 144, 255, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  animation: drawingPulse 1s infinite;
}

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

.gesture-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* 控制按钮区域 */
.gesture-controls {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(240, 242, 245, 0.6);
  border-radius: 8px;
}

/* 手势历史记录 */
.gesture-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(240, 242, 245, 0.5);
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

/* 手势指示器 */
.gesture-indicator {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 2px dashed #1890ff;
  border-radius: 50%;
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gesture-indicator:hover {
  background: rgba(24, 144, 255, 0.1);
  transform: scale(1.1);
}

.gesture-indicator.active {
  border-style: solid;
  background: rgba(24, 144, 255, 0.2);
  box-shadow: 0 0 20px rgba(24, 144, 255, 0.4);
}

.gesture-indicator.completed {
  border-color: #52c41a;
  background: rgba(82, 196, 26, 0.1);
}

.gesture-indicator.completed::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #52c41a;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* 触摸轨迹可视化 */
.touch-trail {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.3);
  animation: touchTrail 0.5s ease-out forwards;
}

@keyframes touchTrail {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* 手势完成动画 */
.gesture-success {
  animation: gestureSuccess 0.8s ease;
}

@keyframes gestureSuccess {
  0% {
    transform: scale(1);
    background: white;
  }
  50% {
    transform: scale(1.05);
    background: rgba(82, 196, 26, 0.1);
  }
  100% {
    transform: scale(1);
    background: white;
  }
}

/* 手势错误动画 */
.gesture-error {
  animation: gestureError 0.8s ease;
}

@keyframes gestureError {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .gesture-canvas {
    width: 300px !important;
    height: 200px !important;
  }
  
  .gesture-canvas-container {
    padding: 8px;
  }
  
  .gesture-controls {
    padding: 12px;
  }
  
  .gesture-indicator {
    width: 50px;
    height: 50px;
    margin: 6px;
  }
}

@media (max-width: 480px) {
  .gesture-canvas {
    width: 280px !important;
    height: 180px !important;
  }
}

/* 无障碍支持 */
.gesture-canvas:focus {
  outline: 3px solid #1890ff;
  outline-offset: 2px;
}

.gesture-indicator:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* 触摸优化 */
@media (pointer: coarse) {
  .gesture-canvas {
    cursor: default;
  }
  
  .gesture-indicator {
    width: 80px;
    height: 80px;
  }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .gesture-interaction {
    background: #1f1f1f;
    border-color: #434343;
  }
  
  .gesture-canvas-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: #434343;
  }
  
  .gesture-canvas {
    background: #2a2a2a;
    border-color: #1890ff;
  }
  
  .gesture-history {
    background: rgba(42, 42, 42, 0.8);
    color: #e6f7ff;
  }
  
  .gesture-controls {
    background: rgba(42, 42, 42, 0.6);
  }
  
  .gesture-hint {
    background: rgba(255, 255, 255, 0.1);
  }
}/* VR交互组件样式 */
.vr-interaction {
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vr-header {
  text-align: center;
  margin-bottom: 16px;
}

.vr-stats {
  margin-top: 12px;
}

/* VR场景容器 */
.vr-scene-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  cursor: grab;
}

.vr-scene-container:active {
  cursor: grabbing;
}

.vr-scene-container.vr-mode {
  cursor: move;
}

/* 场景标题 */
.scene-title {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

/* VR热点 */
.vr-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vr-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.hotspot-marker {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(24, 144, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.vr-hotspot:hover .hotspot-marker {
  background: rgba(24, 144, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hotspot-marker .anticon {
  position: relative;
  z-index: 2;
}

/* 热点脉冲动画 */
.hotspot-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.6);
  animation: hotspotPulse 2s infinite;
  z-index: 1;
}

@keyframes hotspotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* 已完成的热点 */
.vr-hotspot.completed .hotspot-marker {
  background: rgba(82, 196, 26, 0.9);
}

.vr-hotspot.completed .hotspot-pulse {
  background: rgba(82, 196, 26, 0.6);
  animation: none;
}

/* 热点标签 */
.hotspot-label {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vr-hotspot:hover .hotspot-label {
  opacity: 1;
}

/* VR模式提示 */
.vr-hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

/* 加载状态 */
.vr-scene-container.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.vr-loading {
  text-align: center;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

/* VR控制面板 */
.vr-controls {
  padding: 16px;
  background: rgba(240, 242, 245, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* 交互历史记录 */
.interaction-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(240, 242, 245, 0.5);
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

/* 3D变换效果 */
.vr-scene-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .vr-scene-container {
    height: 300px;
  }
  
  .vr-controls {
    padding: 12px;
  }
  
  .hotspot-marker {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .hotspot-label {
    font-size: 10px;
    padding: 2px 6px;
  }
}

@media (max-width: 480px) {
  .vr-scene-container {
    height: 250px;
  }
  
  .scene-title h3 {
    font-size: 18px !important;
  }
  
  .vr-controls .ant-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .vr-controls .ant-col {
    width: 100%;
    text-align: center;
  }
}

/* 无障碍支持 */
.vr-hotspot:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

.vr-scene-container:focus {
  outline: 3px solid #1890ff;
  outline-offset: 3px;
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .vr-interaction {
    background: #1f1f1f;
    border-color: #434343;
  }
  
  .vr-controls {
    background: rgba(42, 42, 42, 0.8);
  }
  
  .interaction-history {
    background: rgba(42, 42, 42, 0.5);
    color: #e6f7ff;
  }
  
  .vr-scene-container.loading {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  }
  
  .vr-loading {
    color: #e6f7ff;
  }
  
  .loading-spinner {
    border-color: #434343;
    border-top-color: #1890ff;
  }
}/* App组件特定样式 */
.app-layout {
  min-height: 100vh;
}

.app-header {
  background: #001529;
  padding: 0;
}

.app-logo {
  float: left;
  width: 120px;
  height: 31px;
  margin: 16px 24px 16px 0;
  background: rgba(255, 255, 255, 0.3);
}

.app-content {
  margin: 0;
  padding: 24px;
  min-height: 280px;
  background: #fff;
}

@media (max-width: 768px) {
  .app-content {
    padding: 16px;
  }
}/* 全局样式重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
}

/* 布局相关 */
.full-height {
  height: 100vh;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* 响应式设计 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
}

/* 自定义组件样式 */
.login-form {
  max-width: 400px;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-card {
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 进度条样式 */
.progress-container {
  margin: 16px 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}