/* ============================================================
   Megatex Blanket — 联系页样式
   设计依据：13_毯子独立站/联系我们.psd（1920×1314）
   结构：Hero(1920×450+20%遮罩) / 左CONTACT DETAILS(557px) + 右表单面板(526px 白底深描边)
   色板：页面纯白 / 描边#2c2a25(--ink) / 按钮深色白字（PSD 矩形15/16/24）
   ============================================================ */

/* ---------- 1. Hero Banner ---------- */
.bk-hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(280px, 24vw, 358px);
  overflow: hidden;
  background: #2c2a25; /* 图未加载时兜底深色，避免白字闪没 */
}
.bk-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* PSD 矩形2：#2c2a25 均匀 20% 遮罩（与新闻页同款） */
.bk-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(44, 42, 37, .2);
}
.bk-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 56px 24px;
  max-width: 860px;
}
.bk-hero-title {
  color: #fff;
  font-size: clamp(20px, 3vw, 38px);
  letter-spacing: .5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .30);
}
.bk-hero-sub {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  margin-top: 16px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .25);
}

/* ---------- 2. 主体：左信息 + 右表单 ---------- */
.bk-body { background: #fff; padding: 64px 0 84px; }
.bk-container {
  max-width: 1171px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 557fr) minmax(0, 526fr);
  gap: 88px;
  align-items: start;
}

/* 左栏 CONTACT DETAILS */
.bk-info-title {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--ink);
}
.bk-info-desc {
  margin-top: 14px;
  font-size: 14px; line-height: 1.75;
  color: #767676;
  max-width: 555px;
}

/* 三个联系项（PSD：图标34×33 + 标签 + 值，项距33px） */
.bk-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 40px;
}
.bk-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f3f0;
  border-radius: 10px;
}
.bk-ico img { width: 30px; height: auto; }
.bk-txt h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9a948a;
}
.bk-txt p {
  margin-top: 6px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink);
}
.bk-txt a { color: var(--ink); }
.bk-txt a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 3. 右栏表单面板（PSD 矩形15：白底 1px 深描边） ---------- */
.bk-form-panel {
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 34px 32px 32px;
}
.bk-form-title {
  font-size: 22px;
  color: var(--ink);
}

.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 18px;
}
.bk-field { display: flex; flex-direction: column; min-width: 0; }
.bk-field--full { grid-column: 1 / -1; }
.bk-field label {
  font-size: 12px;
  font-weight: 600;
  color: #55504a;
  margin-bottom: 6px;
}
.bk-field input,
.bk-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: box-shadow .2s, border-color .2s;
}
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: #b5b0a8; }
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(44, 42, 37, .12);
}
.bk-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* 底部行：SUBMIT 按钮（左）+ Captcha（右）—— PSD 矩形16 + 矩形24拷贝4 */
.bk-row--last {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  margin-top: 20px;
}
.bk-submit {
  align-self: end;
  height: 46px;
  padding: 0 34px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.bk-submit:hover { background: var(--ink-2, #44403a); transform: translateY(-1px); }
.bk-submit:active { transform: none; }

/* Captcha：输入框 + 验证码图内嵌（PSD：框内左侧文字右侧图） */
.bk-captcha-wrap {
  display: flex; align-items: center; gap: 10px;
}
.bk-captcha-wrap input { flex: 1; min-width: 0; }
.bk-captcha-wrap img {
  flex-shrink: 0;
  height: 46px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #faf9f7;
}

/* 蜜罐：屏幕外隐藏，机器人填了即拒 */
.bk-honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

/* ---------- 提交结果提示（send.php 返回后由 JS 注入） ---------- */
.bk-tip {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.bk-tip--ok { background: #eaf7ee; color: #2e7d32; border: 1px solid #c8e6c9; }
.bk-tip--err { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .bk-container { grid-template-columns: 1fr; gap: 44px; }
  .bk-info { max-width: 620px; }
}
@media (max-width: 720px) {
  .bk-body { padding: 44px 0 64px; }
  .bk-hero { min-height: 240px; }
  .bk-hero-inner { padding: 36px 20px; }
  .bk-row { grid-template-columns: 1fr; gap: 12px; }
  .bk-row--last { grid-template-columns: 1fr; }
  .bk-submit { width: 100%; }
  .bk-form-panel { padding: 26px 20px 24px; }
  .bk-item { margin-top: 30px; }
}
@media (max-width: 480px) {
  .bk-hero-title { font-size: 24px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .bk-submit, .reveal { transition: none; }
  .bk-submit:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
