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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 40px;
  max-width: 400px;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

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

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

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

h1 {
  color: #2d3748;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.captcha-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.captcha-img {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
}

.captcha-img:hover {
  border-color: #cbd5e0;
}

.refresh-hint {
  color: #a0aec0;
  font-size: 12px;
  flex: 1;
}

input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f7fafc;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]::placeholder {
  color: #a0aec0;
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

button:active {
  transform: translateY(0);
}

.error {
  background: #fed7d7;
  color: #c53030;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer {
  margin-top: 25px;
  text-align: center;
  color: #a0aec0;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.security-note {
  background: #edf2f7;
  color: #4a5568;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: #718096;
}

/* 浏览器兼容性弹窗样式 */
.browser-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeInOverlay 0.3s ease;
  padding: 20px;
}

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

.browser-modal {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: slideInModal 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.browser-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.browser-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.browser-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
  }
}

.browser-modal-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.browser-modal h2 {
  color: #1a202c;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.browser-modal-subtitle {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
}

.browser-modal-content {
  margin-bottom: 25px;
}

.browser-recommendation {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.browser-recommendation h3 {
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-recommendation h3 svg {
  width: 18px;
  height: 18px;
  fill: #22c55e;
}

.browser-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.browser-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
}

.browser-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.browser-warning {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 15px;
}

.browser-warning h3 {
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-warning h3 svg {
  width: 18px;
  height: 18px;
  fill: #ef4444;
}

.warning-text {
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.6;
}

.warning-text strong {
  color: #dc2626;
  font-weight: 700;
}

.browser-modal-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.browser-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.browser-modal-button:active {
  transform: translateY(0);
}

/* 退出动画 */
@keyframes fadeOutModal {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 底部浏览器推荐提示样式 */
.browser-tip {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 15px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  animation: slideUp 0.5s ease;
}

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

.browser-tip-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.browser-tip-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.browser-tip-content {
  flex: 1;
  min-width: 0;
}

.browser-tip-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}

.browser-tip-text {
  font-size: 12px;
  color: #78350f;
  line-height: 1.5;
}

.browser-good {
  color: #059669;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

.browser-bad {
  color: #dc2626;
  font-weight: 600;
  font-size: 11px;
}

/* 响应式优化 */
@media (max-width: 480px) {
  .browser-modal {
    padding: 25px 20px;
  }
  
  .browser-list {
    grid-template-columns: 1fr;
  }
  
  .browser-modal h2 {
    font-size: 20px;
  }
  
  .browser-tip {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .browser-tip-icon {
    width: 32px;
    height: 32px;
  }
  
  .browser-tip-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .browser-tip-title {
    font-size: 13px;
  }
  
  .browser-tip-text {
    font-size: 11px;
  }
}