/* 英文站「登记信息即可下载」弹窗（v1.3.0）— 站点浅色线条风 */

.bmuc-en-dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.bmuc-en-dl-overlay.is-open {
  display: flex;
}

body.bmuc-en-dl-lock {
  overflow: hidden;
}

.bmuc-en-dl-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 28px 30px 24px;
  box-sizing: border-box;
  font-family: inherit;
  color: #0f172a;
}

.bmuc-en-dl-modal * {
  box-sizing: border-box;
}

.bmuc-en-dl-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
}

.bmuc-en-dl-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.bmuc-en-dl-modal h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.bmuc-en-dl-doc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
  word-break: break-word;
}

.bmuc-en-dl-field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.bmuc-en-dl-label {
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
}

.bmuc-en-dl-label i {
  font-style: normal;
  color: #dc2626;
  margin-left: 2px;
}

.bmuc-en-dl-field input[type="text"],
.bmuc-en-dl-field input[type="email"],
.bmuc-en-dl-field input[type="tel"],
.bmuc-en-dl-field select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 38px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bmuc-en-dl-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'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.bmuc-en-dl-field input::placeholder {
  color: #a8b3c4;
}

.bmuc-en-dl-field input:focus,
.bmuc-en-dl-field select:focus {
  border-color: var(--oaii-primary, #005fcd);
  box-shadow: 0 0 0 3px rgba(0, 95, 205, 0.12);
}

.bmuc-en-dl-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
}

.bmuc-en-dl-err {
  display: none;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

.bmuc-en-dl-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.bmuc-en-dl-submit,
.bmuc-en-dl-cancel {
  min-width: 120px;
  height: 38px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bmuc-en-dl-submit {
  border: 1px solid var(--oaii-primary, #005fcd);
  background: var(--oaii-primary, #005fcd);
  color: #fff;
}

.bmuc-en-dl-submit:hover:not(:disabled) {
  background: #004fae;
  border-color: #004fae;
}

.bmuc-en-dl-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.bmuc-en-dl-cancel {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.bmuc-en-dl-cancel:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

@media (max-width: 560px) {
  .bmuc-en-dl-modal {
    padding: 24px 18px 20px;
  }

  .bmuc-en-dl-field {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .bmuc-en-dl-label {
    font-size: 13px;
  }

  .bmuc-en-dl-actions {
    flex-direction: column-reverse;
  }

  .bmuc-en-dl-submit,
  .bmuc-en-dl-cancel {
    width: 100%;
  }
}
