/* =========================================================================
   通用询盘弹窗样式（国际站风格）
   品牌蓝 #143a66 / 青色点缀 #27a7bd；圆角 + 柔和阴影 + 微交互
   钩子类名与 id 保持不变，供 inquiry.js 调用
   ========================================================================= */
:root{
  --brand:#143a66;
  --brand-2:#1d6398;
  --accent:#27a7bd;
  --ink:#1b2733;
  --text:#46525e;
  --muted:#8a96a3;
  --line:#e8eef3;
  --bg:#f4f7fa;
}

#yd-inquiry-box {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(10, 28, 50, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
#yd-inquiry-box.is-on { display: flex; }
body.yd-modal-open { overflow: hidden; }

.yd-inquiry-panel {
  position: relative; width: 460px; max-width: 94%; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 22px; padding: 28px 28px 26px;
  box-shadow: 0 24px 60px rgba(14, 44, 79, .28);
  animation: ydInqIn .28s cubic-bezier(.22,.9,.34,1.2);
}
@keyframes ydInqIn{
  from{ opacity:0; transform: translateY(18px) scale(.96); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.yd-inq-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border: none; background: var(--bg); border-radius: 50%;
  font-size: 20px; line-height: 1; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.yd-inq-close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }

.yd-inq-head { margin-bottom: 20px; padding-right: 30px; }
.yd-inq-head h3 {
  font-size: 21px; color: var(--brand); margin: 0 0 8px; font-weight: 700; letter-spacing: .01em;
}
.yd-inq-head h3::after{
  content:""; display:block; width:42px; height:3px; margin-top:10px;
  background: var(--accent); border-radius:3px;
}
.yd-inq-head p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* 表单两列布局 */
#yd-inquiry-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px;
}
.yd-field { margin-bottom: 0; }
.yd-field:nth-of-type(5),
.yd-field:nth-of-type(6),
.yd-inq-foot { grid-column: 1 / -1; }

.yd-field label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.yd-field label i { color: #e03a3a; font-style: normal; margin-left: 2px; }

.yd-field input,
.yd-field select,
.yd-field textarea {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; color: var(--ink); background: #fafcfe; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.yd-field input::placeholder,
.yd-field textarea::placeholder { color: var(--muted); }
.yd-field input:focus,
.yd-field select:focus,
.yd-field textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 58, 102, .12);
}
.yd-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.yd-inq-foot { margin-top: 6px; text-align: center; }
.yd-inq-foot button {
  width: 100%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border: none; border-radius: 500px;
  padding: 13px 30px; font-size: 15px; font-weight: 600; letter-spacing: .03em; cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 58, 102, .28);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.yd-inq-foot button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(20, 58, 102, .34); filter: brightness(1.05); }
.yd-inq-foot button:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.yd-inq-foot small { display: block; margin-top: 11px; font-size: 11px; color: var(--muted); line-height: 1.6; }

.yd-inq-success, .yd-inq-error {
  display: none; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; line-height: 1.6;
}
.yd-inq-success.is-on { display: block; background: #eaf6ec; color: #2e7d32; }
.yd-inq-error.is-on { display: block; background: #fdecea; color: #c62828; }

.yd-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 窄屏回退单列 */
@media (max-width: 480px){
  .yd-inquiry-panel{ padding: 24px 20px 22px; }
  #yd-inquiry-form{ grid-template-columns: 1fr; }
}
