/* ============================================================
   官网「联系我们」留言弹窗（独立样式，不影响 portal.css）
   阚荣浩 2026-11-15
   触发：任何带 data-bs-contact 属性的链接/按钮
   ============================================================ */

.bs-contact-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bs-contact-mask.bs-open { display: flex; }

.bs-contact-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  overflow: hidden;
  animation: bs-contact-in .22s ease;
}
@keyframes bs-contact-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.bs-contact-head {
  padding: 20px 24px 16px;
  position: relative;
}
.bs-contact-head h3 { margin: 0; font-size: 18px; color: #111827; font-weight: 600; }
.bs-contact-head p { margin: 6px 0 0; font-size: 13px; color: #6b7280; }
.bs-contact-close {
  position: absolute; top: 16px; right: 18px;
  width: 28px; height: 28px; line-height: 26px; text-align: center;
  border: none; background: #f3f4f6; border-radius: 50%;
  color: #6b7280; cursor: pointer; font-size: 16px;
}
.bs-contact-close:hover { background: #e5e7eb; color: #111827; }

.bs-contact-body { padding: 4px 24px 8px; }

.bs-contact-field { margin-bottom: 16px; }
.bs-contact-field > label {
  display: block; font-size: 13px; color: #374151; margin-bottom: 7px; font-weight: 500;
}
.bs-contact-field .bs-req { color: #ef4444; margin-left: 2px; }

/* 两列布局：姓名 + 联系方式 并排，让加宽后的面板比例更协调 */
.bs-contact-row { display: flex; gap: 14px; }
.bs-contact-row .bs-contact-field { flex: 1; min-width: 0; }

.bs-contact-sal { display: flex; gap: 10px; }
.bs-contact-sal label {
  flex: 1; text-align: center; padding: 9px 0; border: 1px solid #e5e7eb;
  border-radius: 8px; cursor: pointer; color: #4b5563; font-size: 14px;
  transition: all .15s;
}
.bs-contact-sal input { display: none; }
.bs-contact-sal label.bs-on {
  border-color: #16baaa; background: #ecfdf8; color: #0d9488; font-weight: 600;
}

.bs-contact-field input[type="text"],
.bs-contact-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: #111827; outline: none;
  transition: border-color .15s; background: #fff; font-family: inherit;
}
.bs-contact-field input[type="text"]:focus,
.bs-contact-field textarea:focus { border-color: #16baaa; }
.bs-contact-field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }

.bs-contact-cap { display: flex; gap: 10px; align-items: stretch; }
.bs-contact-cap input { flex: 1; }
.bs-contact-cap img {
  width: 108px; height: 40px; border-radius: 6px; border: 1px solid #e5e7eb;
  cursor: pointer; background: #f9fafb; object-fit: cover;
}

.bs-contact-foot { padding: 4px 24px 22px; }
.bs-contact-submit {
  width: 100%; padding: 12px 0; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #16baaa, #0d9488); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.bs-contact-submit:hover { opacity: .92; }
.bs-contact-submit[disabled] { opacity: .55; cursor: not-allowed; }

.bs-contact-msg { margin-top: 10px; font-size: 13px; text-align: center; min-height: 18px; }
.bs-contact-msg.bs-err { color: #ef4444; }
.bs-contact-msg.bs-ok { color: #0d9488; }

@media (max-width: 480px) {
  .bs-contact-panel { border-radius: 10px; }
  .bs-contact-head { padding: 16px 18px 12px; }
  .bs-contact-body, .bs-contact-foot { padding-left: 18px; padding-right: 18px; }
  .bs-contact-row { flex-direction: column; gap: 0; }
}

/* 阚荣浩 2026-11-19：小老板更愿意直接打电话，留言框里给一条直达电话的入口 */
.bs-contact-head .bs-contact-call {
  margin-top: 8px;
  font-size: 12.5px;
  color: #9ca3af;
}
.bs-contact-head .bs-contact-call a {
  color: #0d9488;
  border-bottom: 1px dashed rgba(13, 148, 136, .45);
}
.bs-contact-head .bs-contact-call a:hover { border-bottom-style: solid; }
