/* Contact page — layout from the supplied two-column reference, Hongpon tokens */

body.hp-page > .all.hp-contact {
  background: #fff;
  color: #1a1a1a;
  font-family: "Maven Pro", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 0 0 96px;
  box-sizing: border-box;
}

/* APC-style office map — centered world map with Kunming pin */
.hp-contact-map-section {
  background: #eef6fb;
  padding: 100px 0 160px;
  position: relative;
  z-index: 0;
}

.hp-contact-map-shell {
  width: min(600px, calc(100% - 48px));
  margin: 0 auto;
}

.hp-contact-map-graphic {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.hp-contact-map-canvas {
  width: 100%;
  aspect-ratio: 1600 / 1240;
  background-color: transparent;
  background-image: url("../images/hp-world-map.png?v=20260824a");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: scale(0.96);
  animation: hp-contact-map-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes hp-contact-map-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hp-contact-locator {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 26px;
  z-index: 2;
}

/* Kunming — Yunnan, SW China */
.hp-contact-locator.v-kunming {
  margin-left: 8.6%;
  margin-top: 1.8%;
  transform: translate(-50%, -100%);
}

.hp-contact-locator-btn {
  position: relative;
  display: block;
  width: 22px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hp-contact-locator-pin {
  display: block;
  width: 22px;
  height: 26px;
  filter: drop-shadow(0 4px 8px rgb(201 162 39 / 0.35));
  transition: transform 0.25s ease;
  animation:
    hp-contact-pin-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both,
    hp-contact-pin-pulse 2.6s ease-in-out 2s infinite;
}

@keyframes hp-contact-pin-drop {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.55);
  }
  65% {
    transform: translateY(3px) scale(1.06);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hp-contact-pin-pulse {
  0%,
  100% {
    filter: drop-shadow(0 4px 8px rgb(201 162 39 / 0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 6px 14px rgb(201 162 39 / 0.55));
    transform: scale(1.08);
  }
}

.hp-contact-locator-pin img {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-contact-locator-btn:hover .hp-contact-locator-pin,
.hp-contact-locator.is-active .hp-contact-locator-pin {
  transform: translateY(-2px) scale(1.06);
}

.hp-contact-locator-hover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--hp-brand-deep, #046217);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgb(4 98 23 / 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-contact-locator-btn:hover .hp-contact-locator-hover,
.hp-contact-locator.is-active .hp-contact-locator-hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.hp-contact-locator-tip {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 4px rgb(4 98 23 / 0.06);
}

/* Pull form block up so it overlaps the lower map */
.hp-contact-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 48px));
  margin: -140px auto 0;
  padding: 36px 40px 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgb(4 98 23 / 0.06);
}

.hp-contact-hero {
  text-align: center;
  max-width: 640px;
  margin: 12px auto 48px;
}

.hp-contact-kicker {
  margin: 0 0 12px;
  color: var(--hp-accent, #c9a227);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hp-contact-title {
  margin: 0 0 14px;
  color: #1a1a1a;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hp-contact-lead {
  margin: 0;
  color: #5b6560;
  font-size: 16px;
  line-height: 1.6;
}

.hp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px 72px;
  align-items: start;
}

.hp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-contact-label {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-contact-field input,
.hp-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgb(26 26 26 / 0.14);
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-contact-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.hp-contact-field input::placeholder,
.hp-contact-field textarea::placeholder {
  color: #8a938e;
}

.hp-contact-field input:focus,
.hp-contact-field textarea:focus {
  border-color: var(--hp-brand, #06821f);
  box-shadow: 0 0 0 3px rgb(6 130 31 / 0.12);
}

.hp-contact-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3d4642;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.hp-contact-agree input {
  margin-top: 3px;
  flex: none;
  accent-color: var(--hp-brand, #06821f);
}

.hp-contact-submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--hp-brand, #06821f);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hp-contact-submit:hover {
  background: var(--hp-brand-deep, #046217);
}

.hp-contact-via {
  margin-top: 36px;
}

.hp-contact-via-title {
  margin: 0 0 16px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
}

.hp-contact-via-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-contact-via-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3d4642;
  font-size: 15px;
}

.hp-contact-via-list a {
  color: inherit;
  text-decoration: none;
}

.hp-contact-via-list a:hover {
  color: var(--hp-brand, #06821f);
  text-decoration: underline;
}

.hp-contact-via-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(26 26 26 / 0.14);
  border-radius: 50%;
  color: var(--hp-brand, #06821f);
}

.hp-contact-aside-title {
  margin: 0 0 22px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.hp-contact-points {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #3d4642;
  font-size: 15px;
  line-height: 1.5;
}

.hp-contact-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--hp-accent-soft, #f7f1de);
  color: var(--hp-accent, #c9a227);
}

.hp-contact-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hp-contact-office-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hp-contact-office-head strong {
  font-size: 16px;
  font-weight: 700;
}

.hp-contact-pin {
  display: inline-flex;
  color: var(--hp-brand, #06821f);
}

.hp-contact-office p {
  margin: 0;
  color: #5b6560;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  body.hp-page > .all.hp-contact {
    padding: 0 0 72px;
  }

  .hp-contact-map-section {
    padding: 92px 0 120px;
  }

  .hp-contact-map-shell {
    width: min(480px, calc(100% - 32px));
  }

  .hp-contact-inner {
    width: min(1080px, calc(100% - 24px));
    margin-top: -100px;
    padding: 28px 20px 0;
    border-radius: 16px 16px 0 0;
  }

  .hp-contact-hero {
    margin: 4px auto 36px;
  }

  .hp-contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* 表单区 CSS 入场（不用 WOW，避免首屏内容被 visibility:hidden） */
.hp-contact-hero,
.hp-contact-col--form,
.hp-contact-col--aside {
  opacity: 0;
  animation: hp-contact-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hp-contact-hero {
  transform: translateY(18px);
  animation-delay: 0.2s;
}

.hp-contact-col--form {
  transform: translateX(-22px);
  animation-delay: 0.35s;
}

.hp-contact-col--aside {
  transform: translateX(22px);
  animation-delay: 0.48s;
}

@keyframes hp-contact-enter {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-contact-map-canvas,
  .hp-contact-locator-pin,
  .hp-contact-hero,
  .hp-contact-col--form,
  .hp-contact-col--aside {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
