/* ============================================================
   yq-forms.css — 全站表单弹窗（预约演示 / 免费诊断 / 领白皮书）
   配色对齐 umi6 设计层：主色渐变 #3b82f6 → #8b5cf6，正文 #1e293b
   ============================================================ */
.yq-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.yq-mask.is-open { opacity: 1; }

.yq-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
  transform: translateY(14px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1e293b;
}
.yq-mask.is-open .yq-card { transform: none; }

.yq-head {
  position: relative;
  padding: 26px 28px 0;
}
.yq-kicker {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}
.yq-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
}
.yq-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #64748b;
}
.yq-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.yq-close:hover { background: #e2e8f0; color: #0f172a; }

.yq-body { padding: 20px 28px 26px; }

.yq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.yq-field { display: flex; flex-direction: column; gap: 6px; }
.yq-field--full { grid-column: 1 / -1; }
.yq-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}
.yq-field label .req { color: #ef4444; margin-left: 2px; }
.yq-field input,
.yq-field select,
.yq-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.yq-field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.yq-field textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.yq-field input:focus,
.yq-field select:focus,
.yq-field textarea:focus {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
.yq-field input.is-bad,
.yq-field select.is-bad { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }

.yq-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #64748b;
  cursor: pointer;
}
.yq-consent input { margin-top: 3px; accent-color: #2563eb; flex: none; }
.yq-consent a { color: #2563eb; text-decoration: none; }
.yq-consent a:hover { text-decoration: underline; }

.yq-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.yq-btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .32);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.yq-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(59, 130, 246, .4); }
.yq-btn:disabled { opacity: .6; cursor: default; }
.yq-btn--ghost {
  flex: none;
  color: #475569;
  background: #f1f5f9;
  box-shadow: none;
}
.yq-btn--ghost:hover { background: #e2e8f0; box-shadow: none; transform: none; }

.yq-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* 提交结果 */
.yq-done { text-align: center; padding: 8px 0 4px; }
.yq-done-ic {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .32);
}
.yq-done-ic.is-bad { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 20px rgba(220, 38, 38, .28); }
.yq-done h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.yq-done p { margin: 0 0 4px; font-size: 13.5px; color: #64748b; line-height: 1.7; }
.yq-done .yq-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .3);
}
.yq-done .yq-file:hover { transform: translateY(-1px); }

/* 轻提示 */
.yq-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 9200;
  transform: translate(-50%, 12px);
  padding: 11px 20px;
  font-size: 13.5px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: rgba(15, 23, 42, .92);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.yq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .yq-mask { padding: 0; align-items: flex-end; }
  .yq-card {
    max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(24px);
  }
  .yq-head { padding: 22px 20px 0; }
  .yq-body { padding: 16px 20px 24px; }
  .yq-grid { grid-template-columns: 1fr; }
  .yq-actions { flex-wrap: wrap; }
}
