/* 飘窗样式 */
.jarvis-window {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 280px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 184, 217, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 184, 217, 0.5);
  z-index: 10000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
}

.jarvis-window.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.jarvis-window .jarvis-content {
  padding: 16px;
}

.uptime-section {
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(0, 184, 217, 0.05);
  border-radius: 4px;
  text-align: center;
}

.uptime-section span:first-child {
  color: #B0BEC5;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
}

#uptime {
  color: #00B8D9;
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 184, 217, 0.8);
}

.qrcode-section {
  display: flex;
  justify-content: space-around;
}

.qrcode-item {
  text-align: center;
  flex: 1;
  margin: 0 4px;
}

.qrcode-img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 0 8px rgba(0, 184, 217, 0.3);
  transition: all 0.2s ease;
}

.qrcode-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 184, 217, 0.6);
}

.qrcode-item span {
  display: block;
  color: #B0BEC5;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .jarvis-window {
    width: 240px;
    top: 10px;
    right: 10px;
  }

  .qrcode-img {
    width: 70px;
    height: 70px;
  }
}

/* 浮动召唤按钮样式 - 创意机械入口设计 */
.jarvis-summon-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 3px solid #00B8D9;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    0 0 25px rgba(0, 184, 217, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: mechanicalHeartbeat 3s infinite;
  overflow: hidden;
}

/* 机械框架装饰 */
.jarvis-summon-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(0, 184, 217, 0.1) 50%,
    transparent 70%);
  border: 2px solid #00B8D9;
  border-radius: 12px;
  z-index: -1;
  animation: frameScan 2s infinite;
}

/* 按钮内部机械结构 */
.jarvis-summon-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 184, 217, 0.1),
    rgba(0, 184, 217, 0.1) 2px,
    transparent 2px,
    transparent 6px
  );
  border-radius: 8px;
  opacity: 0.3;
}

.jarvis-btn-icon {
  font-size: 14px;
  color: #00B8D9;
  text-shadow: 0 0 15px rgba(0, 184, 217, 0.9);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  text-align: center;
  background: linear-gradient(145deg, #00B8D9, #008399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px;
}

/* 按钮悬浮效果 - 机械开合 */
.jarvis-summon-btn:hover {
  background: linear-gradient(145deg, #232323, #0f0f0f);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    0 0 40px rgba(0, 184, 217, 0.7);
  transform: translateY(-4px) scale(1.05);
}

/* 按钮点击效果 - 机械按压 */
.jarvis-summon-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.8),
    inset 0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 184, 217, 0.5);
}

/* 悬浮提示框 */
.jarvis-btn-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 15px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 2px solid #00B8D9;
  border-radius: 8px;
  color: #00B8D9;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 184, 217, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jarvis-btn-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #00B8D9;
}

.jarvis-summon-btn:hover .jarvis-btn-tooltip {
  opacity: 1;
  visibility: visible;
  margin-right: 25px;
}

/* 机械心跳动画 */
@keyframes mechanicalHeartbeat {
  0%, 100% {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.6),
      inset 0 2px 0 rgba(255, 255, 255, 0.1),
      0 0 25px rgba(0, 184, 217, 0.4);
  }
  25% {
    box-shadow:
      0 10px 20px rgba(0, 0, 0, 0.7),
      inset 0 2px 0 rgba(255, 255, 255, 0.1),
      0 0 35px rgba(0, 184, 217, 0.6);
  }
  50% {
    box-shadow:
      0 6px 12px rgba(0, 0, 0, 0.5),
      inset 0 2px 0 rgba(255, 255, 255, 0.1),
      0 0 15px rgba(0, 184, 217, 0.3);
  }
  75% {
    box-shadow:
      0 10px 20px rgba(0, 0, 0, 0.7),
      inset 0 2px 0 rgba(255, 255, 255, 0.1),
      0 0 35px rgba(0, 184, 217, 0.6);
  }
}

/* 框架扫描动画 */
@keyframes frameScan {
  0% {
    transform: rotate(0deg) translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) translate(10px, 10px);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
    opacity: 0.5;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .jarvis-summon-btn {
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
  }

  .jarvis-btn-icon {
    font-size: 12px;
  }
}
