/* ZQR™ 诊所端统一弹窗样式。供不加载全站 style.css 的独立页面使用。 */
.zmodal-layer .zmodal-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .45);
}

.zmodal-layer .zmodal-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 14px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  animation: zmodalIn .18s ease-out;
}

.zmodal-layer .zmodal-card:focus {
  outline: none;
}

.zmodal-layer .zmodal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 17px;
  font-weight: 600;
}

.zmodal-layer .zmodal-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 2px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.zmodal-layer .zmodal-x:hover {
  background: #eef0f3;
  color: #111827;
}

.zmodal-layer .zmodal-x:focus-visible,
.zmodal-layer .zmodal-btn:focus-visible,
.zmodal-layer .zmodal-input:focus-visible {
  outline: 3px solid rgba(43, 108, 176, .32);
  outline-offset: 2px;
}

.zmodal-layer .zmodal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.zmodal-layer .zmodal-body {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  word-break: break-word;
}

.zmodal-layer .zmodal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef0f3;
}

.zmodal-layer .zmodal-btn {
  min-width: 88px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.zmodal-layer .zmodal-btn.btn-primary {
  background: #1a3a5c;
  color: #fff;
}

.zmodal-layer .zmodal-btn.btn-secondary {
  border: 1px solid #d6e0ea;
  background: #eef4fb;
  color: #17344e;
}

.zmodal-layer .zmodal-input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

@media (max-width: 480px) {
  .zmodal-layer .zmodal-mask {
    padding: 10px;
  }

  .zmodal-layer .zmodal-card {
    max-height: 92vh;
    padding: 14px 16px 12px;
  }

  .zmodal-layer .zmodal-title {
    font-size: 16px;
  }

  .zmodal-layer .zmodal-actions .zmodal-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@keyframes zmodalIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
