/* 官网咨询留言弹窗 — 紧凑优雅，一屏内无滚动 */
.inq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 19, 31, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.inq-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inq-dialog {
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  overflow: visible;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(7, 19, 31, 0.18),
    0 0 0 1px rgba(11, 31, 51, 0.06);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.inq-overlay.is-open .inq-dialog {
  transform: translateY(0) scale(1);
}

.inq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.inq-head-text {
  min-width: 0;
}

.inq-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900, #0b1f33);
  line-height: 1.3;
}

.inq-head p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--ink-500, #4a6b8a);
  line-height: 1.4;
}

.inq-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500, #4a6b8a);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.inq-close:hover {
  background: var(--ink-50, #f3f7fb);
  color: var(--ink-900, #0b1f33);
}

.inq-form {
  padding: 14px 20px 18px;
  display: grid;
  gap: 10px;
}

.inq-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 440px) {
  .inq-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.inq-field {
  min-width: 0;
}

.inq-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-600, #2d4f6f);
  letter-spacing: 0.01em;
}

.inq-field label .req {
  color: #dc2626;
  margin-left: 1px;
  font-weight: 700;
}

.inq-field input,
.inq-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink-900, #0b1f33);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.inq-field input::placeholder,
.inq-field textarea::placeholder {
  color: #94a3b8;
}

.inq-field input:hover,
.inq-field textarea:hover,
.inq-ms-trigger:hover {
  border-color: rgba(11, 31, 51, 0.2);
}

.inq-field input:focus,
.inq-field textarea:focus {
  outline: none;
  border-color: var(--teal-600, #0d9488);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.inq-field textarea {
  min-height: 52px;
  max-height: 72px;
  resize: none;
}

.inq-ms {
  position: relative;
}

.inq-ms-trigger {
  width: 100%;
  min-height: 36px;
  padding: 6px 32px 6px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  font: inherit;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.inq-ms-trigger:focus {
  outline: none;
  border-color: var(--teal-600, #0d9488);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.inq-ms-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-500);
  border-bottom: 1.5px solid var(--ink-500);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s;
}

.inq-ms.is-open .inq-ms-trigger {
  border-color: var(--teal-600, #0d9488);
  background: #fff;
}

.inq-ms.is-open .inq-ms-trigger::after {
  transform: translateY(-20%) rotate(225deg);
}

.inq-ms-placeholder {
  color: #94a3b8;
  font-size: 0.875rem;
}

.inq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.inq-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-700, #0f766e);
  font-size: 0.7rem;
  font-weight: 600;
  max-width: 100%;
}

.inq-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.inq-ms-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  top: auto;
  z-index: 5;
  max-height: 168px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 10px;
  box-shadow: 0 -8px 28px rgba(7, 19, 31, 0.12);
  padding: 4px;
}

.inq-ms.is-open .inq-ms-panel {
  display: block;
}

.inq-ms-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink-800, #132a42);
  line-height: 1.35;
}

.inq-ms-opt:hover {
  background: #f1f5f9;
}

.inq-ms-opt input {
  width: 14px;
  height: 14px;
  accent-color: var(--teal-600, #0d9488);
  flex-shrink: 0;
}

.inq-captcha {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  align-items: stretch;
}

.inq-captcha-img {
  width: 110px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  background: #f1f5f9
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='36' viewBox='0 0 110 36'%3E%3Ctext x='50%25' y='54%25' text-anchor='middle' fill='%2394a3b8' font-size='11' font-family='sans-serif'%3E点击刷新%3C/text%3E%3C/svg%3E")
    center / cover no-repeat;
  cursor: pointer;
  object-fit: contain;
}

.inq-captcha-img[src]:not([src=""]) {
  background: #f8fafc;
}

.inq-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.35;
}

.inq-error:empty {
  display: none;
}

.inq-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 31, 51, 0.06);
}

.inq-tip {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.inq-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.inq-actions .btn {
  min-width: 0;
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.inq-actions .btn-primary {
  background: var(--ink-900, #0b1f33);
  border-color: var(--ink-900, #0b1f33);
}

.inq-actions .btn-primary:hover {
  background: var(--ink-800, #132a42);
}

.inq-success-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(16px);
  z-index: 10001;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-900, #0b1f33);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(7, 19, 31, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.inq-success-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.inq-lock {
  overflow: hidden;
}

.contact-mail-text {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary, #2d4f6f);
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-all;
}

@media (max-width: 439px) {
  .inq-head {
    padding: 16px 16px 0;
  }

  .inq-form {
    padding: 12px 16px 16px;
    gap: 9px;
  }

  .inq-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .inq-actions {
    width: 100%;
  }

  .inq-actions .btn {
    flex: 1;
  }

  .inq-captcha {
    grid-template-columns: 1fr 96px;
  }

  .inq-captcha-img {
    width: 96px;
  }
}
