/**
 * 弹窗样式
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 350px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: white;
}

.popup-container {
  display: flex;
  flex-direction: column;
}

/* 头部 */
.popup-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.header-content:hover {
  opacity: 0.9;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.header-title {
  flex: 1;
  text-align: left;
}

.popup-header h1 {
  font-size: 18px;
  margin-bottom: 4px;
}

.version {
  font-size: 12px;
  opacity: 0.9;
}

.version-badge {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 4px;
}

/* 主内容 */
.popup-main {
  padding: 20px;
}

/* 状态卡片 */
.status-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9ca3af;
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: #10b981;
}

.status-dot.offline {
  background: #ef4444;
  animation: none;
}

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

.status-indicator span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

/* 信息区域 */
.info-section {
  margin-bottom: 20px;
}

.info-section h2 {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 12px;
}

.info-section ol {
  margin-left: 20px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.8;
}

.info-section strong {
  color: #667eea;
}

/* 操作按钮 */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.button-primary {
  background: #667eea;
  color: white;
}

.button-primary:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.button-secondary {
  background: #f3f4f6;
  color: #374151;
}

.button-secondary:hover {
  background: #e5e7eb;
}

/* 页脚 */
.popup-footer {
  padding: 16px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.popup-footer p {
  font-size: 12px;
  color: #6b7280;
}

