/* ==========================================================================
   留言板样式（default 主题同款视觉，v20261027）
   - 页头 / 导航 / 横幅 / 页脚统一走 common/sitehead + common/sitefoot（home.css / inner.css）
   - 输入框复用全站 --brand-* / --ink-* / --line / --radius 变量
   - 按钮直接复用全站 .btn / .btn-primary（home.css 已定义）
   - 已彻底去除对 Bootstrap（form-control / card / container / row / col-*）的依赖
   ========================================================================== */

/* ---------- 表单标题 ---------- */
.gb-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}

/* ---------- 表单字段 ---------- */
.gb-form .gb-field { margin-bottom: 18px; }
.gb-form .gb-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.gb-form .gb-field > label em {
  color: #e23b3b;
  font-style: normal;
  margin-left: 2px;
}
.gb-form .gb-input,
.gb-form input[type="text"],
.gb-form input[type="tel"],
.gb-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gb-form .gb-input:focus,
.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(230, 164, 0, .15);
}
.gb-form textarea { resize: vertical; min-height: 132px; }

/* 两列并排：公司名称 / 姓名，移动端堆叠 */
.gb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

/* 验证码：输入框 + 图片同行 */
.gb-captcha { display: flex; align-items: center; gap: 12px; }
.gb-captcha .gb-input { max-width: 220px; }
.gb-captcha img {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

/* 提交区 */
.gb-submit { margin-top: 4px; }
.gb-submit .btn { min-width: 132px; }
.gb-privacy {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: 12px;
}

/* ---------- 提示条 ---------- */
.gb-alert {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  border-radius: var(--radius);
}
.gb-alert.show { display: block; }
.gb-alert-ok { background: #eaf7ee; border: 1px solid #b7e2c4; color: #1e7a3c; }
.gb-alert-err { background: #fdeceb; border: 1px solid #f5c2bf; color: #b3261e; }

/* ---------- 辅助文字 ---------- */
.gb-tip { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.gb-side-tiny { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- 侧栏要点列表（配合 .side-card 使用） ---------- */
.gb-points { margin: 0; padding: 0; list-style: none; }
.gb-points li {
  position: relative;
  padding: 5px 0 5px 17px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.gb-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
}

/* ---------- 提交成功弹窗 ---------- */
.gb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gb-modal[hidden] { display: none; }
.gb-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.gb-modal.show .gb-modal-mask { opacity: 1; }
.gb-modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 34px 30px 28px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  transform: translateY(-12px) scale(.97);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.gb-modal.show .gb-modal-box { transform: translateY(0) scale(1); opacity: 1; }
.gb-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-600);
  background: var(--brand-100);
}
.gb-modal-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.gb-modal-text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.gb-modal-btn { min-width: 130px; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .gb-grid { grid-template-columns: 1fr; }
}
