/* ==========================================================================
   联系我们页（/contact/）：地图 · 工厂信息 · 渠道 · 银联 · 留言表单
   ========================================================================== */

/* ---------- 地图 ---------- */
.cf-ct-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
  margin-top: clamp(18px, 2vw, 28px);
}
.cf-ct-map__canvas {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cf-line, #E4E7EC);
  background: #E8EEF3;
  box-shadow: 0 22px 44px -34px rgba(10, 22, 31, .5);
  min-height: 420px;
}
.cf-ct-map__leaflet {
  width: 100%;
  height: clamp(420px, 46vw, 560px);
}
.cf-ct-map__legend {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #fff;
  background: rgba(10, 22, 31, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.cf-ct-map__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cf-accent, #E85D26);
  box-shadow: 0 0 0 4px rgba(232, 93, 38, .25);
}

/* 闪烁标点 */
.cf-ct-pin { position: relative; }
.cf-ct-pin__pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(232, 93, 38, .35);
  animation: cfPinPulse 2.4s ease-out infinite;
}
.cf-ct-pin:nth-child(1) .cf-ct-pin__pulse { animation-delay: 0s; }
.cf-ct-pin__dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--cf-accent, #E85D26);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(10, 22, 31, .35);
  animation: cfPinBlink 2.4s ease-in-out infinite;
}
@keyframes cfPinPulse {
  0%   { transform: scale(.55); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes cfPinBlink {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* 据点卡 */
.cf-ct-sites {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-ct-site {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cf-ct-site:hover,
.cf-ct-site.is-active {
  border-color: rgba(232, 93, 38, .38);
  box-shadow: 0 16px 30px -22px rgba(10, 22, 31, .45);
  transform: translateX(3px);
}
.cf-ct-site__no {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cf-accent, #E85D26);
  background: rgba(232, 93, 38, .09);
  border-radius: 10px;
}
.cf-ct-site__role {
  margin: 0;
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cf-slate-500, #667085);
}
.cf-ct-site h3 {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--cf-ink-900, #0A1621);
}
.cf-ct-site__addr {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cf-slate-600, #475467);
}
.cf-ct-site__note {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--cf-slate-500, #667085);
}

/* ---------- 工厂信息 ---------- */
.cf-ct-office__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 3.6vw, 64px);
  align-items: center;
}
.cf-ct-office__lead {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--cf-slate-700, #344054);
  max-width: 52ch;
}
.cf-ct-office__list {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.cf-ct-office__list div {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 12px;
}
.cf-ct-office__list dt {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cf-accent, #E85D26);
}
.cf-ct-office__list dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cf-ink-900, #0A1621);
}
.cf-ct-office__list dd a { color: inherit; text-decoration: none; }
.cf-ct-office__list dd a:hover { color: var(--cf-accent, #E85D26); }
.cf-ct-office__copy .cf-btn { margin-top: 24px; }

.cf-ct-office__media { border-radius: 18px; overflow: hidden; }
.cf-ct-office__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  display: block;
}

/* 渠道清单 */
.cf-ct-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 4vw, 56px);
  background: var(--cf-line, #E4E7EC);
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 16px;
  overflow: hidden;
}
.cf-ct-channel {
  padding: 20px 22px 22px;
  background: #fff;
}
.cf-ct-channel__label {
  margin: 0;
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cf-slate-500, #667085);
}
.cf-ct-channel__value {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cf-ink-900, #0A1621);
  text-decoration: none;
  word-break: break-word;
}
.cf-ct-channel__value:hover { color: var(--cf-accent, #E85D26); }
.cf-ct-channel__note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cf-slate-600, #475467);
}

/* ---------- 银联收款 ---------- */
.cf-ct-pay__box {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(24px, 2.8vw, 38px);
  background: #fff;
  border: 1px solid var(--cf-line, #E4E7EC);
  border-left: 4px solid var(--cf-accent, #E85D26);
  border-radius: 16px;
  box-shadow: 0 20px 40px -34px rgba(10, 22, 31, .45);
}
.cf-ct-pay__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #B7312C;
  background: #FDEEEC;
  border-radius: 6px;
}
.cf-ct-pay__title {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 650;
  color: var(--cf-ink-900, #0A1621);
}
.cf-ct-pay__hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--cf-slate-600, #475467);
}
.cf-ct-pay__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.cf-ct-pay__grid dt {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cf-slate-500, #667085);
}
.cf-ct-pay__grid dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--cf-ink-900, #0A1621);
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--cf-line, #E4E7EC);
}
.cf-ct-pay__grid dd.is-pending { color: #A6ADB6; font-size: 12.5px; }
.cf-ct-pay__foot {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--cf-slate-500, #667085);
}

/* ---------- 留言表单 ---------- */
.cf-ct-msg .cf-head { margin-bottom: clamp(16px, 2vw, 26px); }
.cf-ct-form {
  padding: clamp(22px, 2.8vw, 36px);
  background: var(--cf-paper, #F7F8FA);
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 18px;
}
.cf-ct-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.cf-ct-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cf-slate-500, #667085);
}
.cf-ct-form input,
.cf-ct-form select,
.cf-ct-form textarea {
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cf-ink-900, #0A1621);
  background: #fff;
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 10px;
  padding: 12px 13px;
  height: 46px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cf-ct-form textarea { height: auto; resize: vertical; line-height: 1.62; }
.cf-ct-form input:focus,
.cf-ct-form select:focus,
.cf-ct-form textarea:focus {
  border-color: rgba(232, 93, 38, .55);
  box-shadow: 0 0 0 3px rgba(232, 93, 38, .12);
}
.cf-ct-form__full,
.cf-ct-form__captcha { grid-column: 1 / -1; }
.cf-ct-form__captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-ct-form__captcha-row input {
  width: 132px;
  text-align: center;
  letter-spacing: .18em;
  font-weight: 600;
}
.cf-ct-form__captcha-row img {
  height: 46px;
  width: 132px;
  border-radius: 9px;
  border: 1px solid var(--cf-line, #E4E7EC);
  cursor: pointer;
  background: #F7F8FA;
}
.cf-ct-form__refresh {
  width: 40px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--cf-slate-600, #475467);
  background: #fff;
  border: 1px solid var(--cf-line, #E4E7EC);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.cf-ct-form__refresh:hover { color: var(--cf-accent, #E85D26); border-color: rgba(232, 93, 38, .4); }
.cf-ct-form__tip {
  margin: 0;
  font-size: 11.5px;
  color: var(--cf-slate-500, #667085);
  text-transform: none;
  letter-spacing: 0;
}
.cf-ct-form__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cf-ct-form__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cf-slate-600, #475467);
  text-transform: none;
}
.cf-ct-form__status.is-ok { color: #1C7C54; }
.cf-ct-form__status.is-err { color: #B7312C; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .cf-ct-map__grid { grid-template-columns: 1fr; }
  .cf-ct-map__leaflet { height: 420px; }
  .cf-ct-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-ct-pay__box { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cf-ct-office__grid { grid-template-columns: 1fr; }
  .cf-ct-office__list { grid-template-columns: 1fr; }
  .cf-ct-pay__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cf-ct-form__grid { grid-template-columns: 1fr; }
  .cf-ct-channels { grid-template-columns: 1fr; }
}
