/**
 * Guest Mode Styles
 * 访客模式UI样式
 *
 * 包含以下组件样式：
 * 1. 访客欢迎提示 (.guest-welcome-hint)
 * 2. 访客登录引导模态框 (.guest-login-prompt)
 * 3. 免费试用徽章 (.subscription-badge.free-trial)
 * 4. 未来计划模态框 (.future-plan-modal)
 * 5. 首页访客提示气泡 (.guest-tooltip)
 */

/* ==================== 访客欢迎提示 ==================== */

.guest-welcome-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin: 16px 0;
  animation: slideIn 0.5s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.guest-welcome-hint .hint-icon {
  font-size: 24px;
  margin-right: 12px;
}

.guest-welcome-hint .hint-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.guest-welcome-hint.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ==================== 访客登录引导模态框 ==================== */

.guest-login-prompt {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.guest-login-prompt .prompt-content {
  max-width: 400px;
  width: 90%;
  padding: 40px 32px;
  text-align: center;
  background: rgba(26, 26, 46, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease;
}

.guest-login-prompt .prompt-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.guest-login-prompt h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

.guest-login-prompt p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.6;
}

.guest-login-prompt .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  margin-bottom: 16px;
}

.guest-login-prompt .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.guest-login-prompt .btn-primary:active {
  transform: scale(0.98);
}

.guest-login-prompt .btn-primary svg {
  width: 20px;
  height: 20px;
}

.guest-login-prompt .btn-text {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.guest-login-prompt .btn-text:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== 免费试用徽章 ==================== */

.subscription-badge.free-trial {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.subscription-badge.free-trial .badge-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.subscription-badge.free-trial .badge-text {
  flex: 1;
}

.subscription-badge.free-trial .badge-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.subscription-badge.free-trial .badge-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.free-trial-notice {
  padding: 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  margin: 16px 0;
}

.free-trial-notice p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
}

.free-trial-notice .notice-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.free-trial-notice strong {
  font-weight: 600;
  color: white;
}

/* ==================== 未来计划模态框 ==================== */

.future-plan-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.future-plan-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.future-plan-modal .modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease;
}

.future-plan-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.future-plan-modal .modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.future-plan-modal .modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.future-plan-modal .modal-close:hover {
  color: white;
}

.future-plan-modal .modal-body {
  padding: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.feature-item .feature-icon {
  font-size: 32px;
  margin-right: 16px;
  flex-shrink: 0;
}

.feature-item .feature-text {
  flex: 1;
}

.feature-item .feature-text h4 {
  font-size: 16px;
  margin: 0 0 4px 0;
  color: white;
  font-weight: 600;
}

.feature-item .feature-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.cta-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ==================== 通用按钮样式 ==================== */

.btn-outline {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid rgba(102, 126, 234, 0.5);
  background: transparent;
  color: #667eea;
}

.btn-outline:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* ==================== 动画定义 ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes tooltipBounce {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* ==================== 首页访客提示气泡 ==================== */

.guest-tooltip {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 320px;
  animation: tooltipBounce 0.5s ease-out;
}

.guest-tooltip .tooltip-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.guest-tooltip .tooltip-icon {
  font-size: 24px;
  animation: bounce 2s infinite;
}

.guest-tooltip .tooltip-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 480px) {
  .guest-login-prompt .prompt-content {
    padding: 32px 24px;
  }

  .guest-login-prompt h2 {
    font-size: 24px;
  }

  .guest-login-prompt p {
    font-size: 14px;
  }

  .future-plan-modal .modal-content {
    width: 95%;
  }

  .future-plan-modal .modal-header {
    padding: 20px 20px 12px;
  }

  .future-plan-modal .modal-body {
    padding: 20px;
  }

  .feature-item {
    padding: 12px;
  }

  .feature-item .feature-icon {
    font-size: 28px;
    margin-right: 12px;
  }
}
