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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #e8edf3;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 32px;
  max-width: 380px;
  width: 100%;
}

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

.icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

h1 {
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  color: #6b7280;
  font-size: 14px;
}

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

label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

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

.captcha-img {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  background: #f9fafb;
}

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

.refresh-hint {
  color: #9ca3af;
  font-size: 12px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

button {
  width: 100%;
  padding: 11px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

button:hover {
  background: #2563eb;
}

button:active {
  background: #1d4ed8;
}

.error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fecaca;
}

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

.footer {
  margin-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* 浏览器弹窗 */
.browser-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.browser-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.browser-modal::before {
  display: none;
}

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

.browser-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.browser-modal h2 {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.browser-modal-subtitle {
  color: #6b7280;
  font-size: 13px;
}

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

.browser-recommendation {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.browser-recommendation h3 {
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

.browser-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
}

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

.browser-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
}

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

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

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

.browser-modal-button {
  width: 100%;
  padding: 11px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.browser-modal-button:hover {
  background: #2563eb;
}

/* 底部浏览器提示 */
.browser-tip {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

.browser-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 2px;
}

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

.browser-good {
  color: #059669;
  font-weight: 500;
}

@media (max-width: 480px) {
  .container {
    padding: 24px;
  }

  .browser-modal {
    padding: 20px;
  }

  .browser-list {
    grid-template-columns: 1fr;
  }
}
