/* 渝知泉 · 官网留资模块样式（增量，不覆盖原有样式）
   配色沿用站点主题：主色 #0369a1 / 亮色 #0ea5e9 / 青 #22d3ee */
:root {
  --yzq-primary: #0369a1;
  --yzq-light: #0ea5e9;
  --yzq-cyan: #22d3ee;
  --yzq-ink: #0f2540;
  --yzq-text: #45607d;
  --yzq-muted: #7d93a9;
  --yzq-border: #e3eef6;
  --yzq-radius: 16px;
}

/* ---------- 右下角悬浮预约按钮 ---------- */
.yzq-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yzq-fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yzq-light), var(--yzq-primary));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 105, 161, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.yzq-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(3, 105, 161, .4);
}
.yzq-fab-btn .yzq-fab-ico { font-size: 17px; }
.yzq-fab-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--yzq-primary);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--yzq-border);
  box-shadow: 0 4px 12px rgba(15, 37, 64, .08);
}
.yzq-fab-tel:hover { color: var(--yzq-light); }

/* ---------- 弹窗 ---------- */
.yzq-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 32, 54, .55);
  backdrop-filter: blur(3px);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yzq-mask.is-open { display: flex; }
.yzq-card {
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--yzq-radius);
  box-shadow: 0 24px 60px rgba(8, 32, 54, .28);
  animation: yzq-in .22s ease;
}
@keyframes yzq-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.yzq-head {
  position: relative;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--yzq-border);
}
.yzq-head h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--yzq-ink);
  font-weight: 700;
}
.yzq-head p {
  margin: 0;
  font-size: 13px;
  color: var(--yzq-muted);
  line-height: 1.6;
}
.yzq-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f2f9fd;
  color: var(--yzq-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.yzq-close:hover { background: var(--yzq-border); color: var(--yzq-ink); }

.yzq-body { padding: 18px 24px 6px; }
.yzq-row { margin-bottom: 14px; }
.yzq-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--yzq-ink);
  font-weight: 500;
}
.yzq-row label .req { color: #e11d48; margin-left: 2px; }
.yzq-row input,
.yzq-row select,
.yzq-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--yzq-border);
  border-radius: 10px;
  background: #fbfdff;
  font-size: 14px;
  color: var(--yzq-ink);
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.yzq-row input:focus,
.yzq-row select:focus,
.yzq-row textarea:focus {
  outline: none;
  border-color: var(--yzq-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
  background: #fff;
}
.yzq-row textarea { resize: vertical; min-height: 68px; }
.yzq-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.yzq-foot { padding: 8px 24px 22px; }
.yzq-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yzq-light), var(--yzq-primary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.yzq-submit:hover { opacity: .92; }
.yzq-submit[disabled] { opacity: .6; cursor: not-allowed; }
.yzq-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--yzq-muted);
  line-height: 1.6;
  text-align: center;
}
.yzq-err {
  display: none;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
  line-height: 1.5;
}

/* 提交成功 */
.yzq-done { padding: 36px 26px; text-align: center; }
.yzq-done-ico {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff; font-size: 30px; line-height: 60px;
}
.yzq-done h3 { margin: 0 0 8px; font-size: 19px; color: var(--yzq-ink); }
.yzq-done p { margin: 0 0 20px; font-size: 14px; color: var(--yzq-text); line-height: 1.7; }

/* Toast */
.yzq-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 37, 64, .94);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.yzq-toast.is-show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 640px) {
  .yzq-fab { right: 14px; bottom: 16px; }
  .yzq-fab-btn { padding: 11px 18px; font-size: 14px; }
  .yzq-2col { grid-template-columns: 1fr; gap: 0; }
  .yzq-body { padding: 16px 18px 4px; }
  .yzq-foot { padding: 8px 18px 20px; }
}
