/* 消息提示 */
.message {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  margin: 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.4s ease;
  line-height: 1.5;
  border: 1px solid;
}

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

.message-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.message-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.message-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: var(--info);
}

.message-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--blur-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

/* 客服模态框 */
.service-modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease;
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: #ef4444;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.service-modal-close:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.service-qr-container {
  text-align: center;
}

.service-qr-code {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-qr-code img {
  width: 180px;
  height: 180px;
  border-radius: 4px;
}

.service-title {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.modal-content {
  background: var(--gradient-surface);
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  backdrop-filter: var(--blur-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  animation: scaleIn 0.3s ease;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
  border-radius: 24px 24px 0 0;
}

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

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.modal-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.modal-item:hover {
  border-color: var(--border-primary);
  background: var(--bg-tertiary);
}

.modal-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-item-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}