/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* 页面容器 */
.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* 背景渐变 */
.login-bg {
  /*background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);*/
  background-image: url("background.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.platform-bg {
  /*background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);*/
  background-image: url("background3.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.domestic-bg {
  /*background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);*/
  background-image: url("background3.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.international-bg {
  /*background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);*/
  background-image: url("background3.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
}

.card-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.card-content {
  padding: 0 2rem 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0 0.5rem;
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* 图标容器 */
.icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.bg-blue {
  background-color: #2563eb;
}

.bg-red {
  background-color: #dc2626;
}

.bg-red-solid {
  background-color: #dc2626;
  opacity: 1;
}

.bg-blue-solid {
  background-color: #2563eb;
  opacity: 1;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

/* 表单样式 */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

.form-input.currency-input {
  padding-left: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.currency-symbol {
  position: absolute;
  left: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: #6b7280;
}

/* 验证码样式 */
.captcha-container {
  display: flex;
  gap: 0.5rem;
}

.captcha-display {
  width: 5rem;
  height: 2.5rem;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.captcha-display:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
  transform: scale(1.02);
}

.captcha-display:active {
  transform: scale(0.98);
}

.captcha-display::after {
  content: "🔄";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.captcha-display:hover::after {
  opacity: 0.6;
}

.readonly-input {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
}

/* 按钮样式 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.btn-red {
  background-color: #dc2626;
  color: white;
}

.btn-red:hover:not(:disabled) {
  background-color: #b91c1c;
}

.btn-blue {
  background-color: #2563eb;
  color: white;
}

.btn-blue:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.btn-outline {
  background-color: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  color: #374151;
  background-color: #f9fafb;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* 平台选择页面 */
.platform-container {
  width: 100%;
  max-width: 64rem;
}

.platform-header {
  text-align: center;
  margin-bottom: 2rem;
}

.platform-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0 0.5rem;
}

.platform-description {
  color: #6b7280;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.platform-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.platform-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.platform-card .card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.platform-card .card-content {
  padding: 0 1.5rem 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.feature-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #10b981;
  border-radius: 50%;
}

/* 支付页面 */
.payment-container {
  width: 100%;
  max-width: 28rem;
}

/* 安全信息 */
.security-info {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.security-features {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* 错误消息 */
.error-message {
  background-color: #fef2f2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #fecaca;
  font-size: 0.875rem;
}

/* 页脚文本 */
.footer-text {
  margin-top: 1.5rem;
  text-align: center;
}

.footer-text p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* 返回按钮容器 */
.back-button-container {
  margin-top: 1.5rem;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 640px) {
  .page-container {
    padding: 0.5rem;
  }

  .card {
    max-width: none;
  }

  .card-header,
  .card-content {
    padding: 1.5rem;
  }

  .platform-header {
    margin-bottom: 1.5rem;
  }

  .platform-title {
    font-size: 1.5rem;
  }
}

/* 输入框placeholder偏移 */
.form-input::placeholder {
  padding-left: 0;
}

.input-container .form-input {
  padding-left: 2.5rem;
}

.input-container .form-input::placeholder {
  padding-left: 0;
}

.currency-input::placeholder {
  padding-left: 1rem !important;
}

.readonly-input:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 注册和登录链接样式 */
.register-link,
.login-link {
  margin-top: 1rem;
  text-align: center;
}

.register-link p,
.login-link p {
  font-size: 0.875rem;
  color: #6b7280;
}

.link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* 绿色主题 */
.bg-green {
  background-color: #059669;
}

.btn-green {
  background-color: #059669;
  color: white;
}

.btn-green:hover:not(:disabled) {
  background-color: #047857;
}

/* 密码强度指示器 */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-indicator {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-strong {
  width: 100%;
  background-color: #10b981;
}

.strength-text {
  font-size: 0.75rem;
  margin: 0;
}

.strength-text.weak {
  color: #ef4444;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong {
  color: #10b981;
}

/* 复选框样式 */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1rem;
  height: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background-color: #059669;
  border-color: #059669;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.checkmark:hover {
  border-color: #059669;
}

/* 协议页面样式 */
.agreement-bg {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.agreement-container {
  width: 100%;
  max-width: 50rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: 2rem 0;
}

.agreement-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.agreement-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.update-time {
  color: #6b7280;
  font-size: 0.875rem;
}

.agreement-content {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.agreement-section {
  margin-bottom: 2rem;
}

.agreement-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.agreement-section p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.agreement-section ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
  color: #374151;
}

.agreement-section li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.agreement-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .agreement-container {
    margin: 1rem;
    max-width: none;
  }

  .agreement-content {
    padding: 1.5rem;
    max-height: 50vh;
  }

  .agreement-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
}
