/* ========================================
   CTA 区块样式
   ======================================== */
.cta-block {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #d0e3f5;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.cta-block h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.cta-block p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover {
  background: #0958d9;
  transform: translateY(-1px);
}
.cta-btn:active {
  transform: translateY(0);
}

/* ========================================
   弹窗遮罩
   ======================================== */
.sfn-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: sfn-fade-in 0.2s ease;
}
@keyframes sfn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   弹窗主体
   ======================================== */
.sfn-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  width: 420px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: sfn-slide-up 0.3s ease;
}
@keyframes sfn-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.sfn-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  padding-right: 30px;
}
.sfn-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.sfn-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* ========================================
   表单样式
   ======================================== */
.sfn-form-group {
  margin-bottom: 16px;
}
.sfn-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.sfn-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.sfn-input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
  background: #fff;
}
textarea.sfn-input {
  resize: vertical;
  min-height: 60px;
}
select.sfn-input {
  appearance: auto;
}
.sfn-submit-btn {
  width: 100%;
  padding: 12px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.sfn-submit-btn:hover {
  background: #0958d9;
}
.sfn-submit-btn:disabled {
  background: #bfbfbf;
  cursor: not-allowed;
}
.sfn-privacy {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 12px;
}

/* ========================================
   成功/错误状态
   ======================================== */
.sfn-success-icon {
  width: 64px; height: 64px;
  background: #52c41a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}
.sfn-success-msg {
  font-size: 16px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
.sfn-download-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #52c41a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}
.sfn-download-btn:hover {
  background: #389e0d;
  color: #fff;
}
.sfn-close-success-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}
.sfn-error-msg {
  color: #ff4d4f;
  font-size: 14px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
