/* 联系我们 · Figma 103:2656 */
body.page-contact {
  padding-top: var(--header-h);
  background: #f8fafc;
}

body.page-contact .header {
  position: fixed;
}

.page-contact .page-hero-media {
  opacity: 1;
}

.page-contact .page-hero-media img {
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 78% 42%;
}

.page-contact .page-hero-mask {
  background: linear-gradient(90deg, var(--c-primary) 0%, rgba(2, 132, 199, 0.28) 42%, rgba(255, 255, 255, 0) 72%);
}

.contact-cards {
  display: flex;
  gap: 24px;
  padding: 53px 0 0;
}

.cinfo {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 33px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

.cinfo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.cinfo-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cinfo h3 {
  margin-top: 24px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: #64748b;
}

.cinfo-val {
  margin-top: 8px;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 25px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.625px;
  color: var(--c-primary);
}

.cinfo-val.is-dark {
  color: #0f172a;
}

.cinfo-val.is-mail {
  font-family: var(--font);
  font-size: 21px;
  line-height: 32px;
  letter-spacing: -0.525px;
}

.cinfo-val.is-mail a {
  color: inherit;
}

.cinfo-val.is-addr {
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  color: #0f172a;
}

.cinfo-foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 20px;
  color: #64748b;
}

.cinfo-foot.has-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinfo-foot.has-dot i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
}

.cinfo-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 21px;
  color: var(--c-primary);
}

.cinfo-nav img {
  width: 10.5px;
  height: 9px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 685px;
  align-items: stretch;
  gap: 40px;
  padding: 40px 0 108px;
}

.cform {
  min-width: 0;
  width: auto;
  padding: 49px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.03);
}

.cform h2 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: -0.75px;
  color: #0f172a;
}

.cform .lead {
  margin-top: 9px;
  padding-bottom: 29px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  line-height: 24.38px;
  color: #64748b;
}

.cform form {
  position: relative;
  margin-top: 32px;
}

.cform-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cform-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 22px;
}

.cform-notice.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.cform-notice.is-err {
  background: #fef2f2;
  color: #b91c1c;
}

.cform-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px;
}

.cform-row + .cform-field,
.cform-field + .cform-field,
.cform-row + .cform-row {
  margin-top: 24px;
}

.cform-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cform-field label {
  display: block;
  margin-bottom: 8px;
  min-height: 21px;
  font-size: 14px;
  line-height: 21px;
  color: #334155;
  white-space: nowrap;
}

.cform-field label em {
  font-style: normal;
  color: #ef4444;
}

.cform-field input,
.cform-field textarea {
  display: block;
  width: 100%;
  height: 57px;
  margin: 0;
  padding: 0 17px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 21px;
  color: #0f172a;
  outline: none;
  appearance: none;
}

.cform-field textarea {
  height: 127px;
  padding: 14px 17px;
  resize: none;
}

.cform-field input::placeholder,
.cform-field textarea::placeholder {
  color: #94a3b8;
}

.cform-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid #f1f5f9;
}

.cform-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #64748b;
}

.cform-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}

.cform-agree a {
  color: var(--c-primary);
}

.cform-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50.5px;
  padding: 0 32px;
  background: var(--c-primary);
  color: #fff;
  font-size: 15px;
  line-height: 23px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.15), 0 4px 6px -4px rgba(30, 58, 138, 0.15);
}

.cform-submit img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.cmap {
  width: 685px;
  height: 100%;
  min-height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 33px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.03);
}

.cmap h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.cmap .sub {
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
  color: #64748b;
}

.cmap-canvas {
  position: relative;
  flex: 1;
  min-height: 446px;
  margin-top: 20px;
  overflow: hidden;
  background: #e8eef3;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
}

.cmap-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cmap-block {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  opacity: 0.9;
}

.cmap-block--park {
  left: 20px;
  top: 20px;
  width: 96px;
  height: 64px;
  background: #d8e6d3;
}

.cmap-block--a {
  right: 32px;
  top: 24px;
  width: 176px;
  height: 96px;
  background: #dce4ec;
}

.cmap-block--b {
  left: 48px;
  bottom: 24px;
  width: 144px;
  height: 80px;
  background: #dce4ec;
}

.cmap-block--c {
  right: 40px;
  bottom: 40px;
  width: 112px;
  height: 80px;
  background: #e3e8ed;
}

.cmap-rd {
  position: absolute;
  left: -12%;
  top: 44%;
  width: 130%;
  height: 22px;
  background: linear-gradient(#f3ead0, #e4d4a8);
  box-shadow: 0 0 0 8px #dbe2e9;
  transform: rotate(-28deg);
}

.cmap-road {
  position: absolute;
  left: 32px;
  top: 148px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 11px;
  line-height: 17px;
  color: #334155;
}

.cmap-area {
  position: absolute;
  right: 56px;
  bottom: 64px;
  z-index: 2;
  font-size: 12px;
  line-height: 18px;
  color: #64748b;
}

.cmap-pin {
  position: absolute;
  left: 54%;
  top: 46%;
  z-index: 3;
  width: 210px;
  margin: -58px 0 0 -105px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cmap-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: var(--c-primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.325px;
  white-space: nowrap;
}

.cmap-tip i {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #fbbf24;
}

.cmap-dot {
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  background: #dc2626;
  border: 2px solid #fff;
  border-radius: 9999px;
  box-shadow: 0 12px 20px rgba(220, 38, 38, 0.28);
}

.cmap-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff;
  border-radius: 9999px;
}

.cmap-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmap-zoom button {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #334155;
  font-size: 16px;
  line-height: 12px;
}

.cmap-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 51px;
  margin-top: 16px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  font-size: 14px;
  line-height: 21px;
  color: var(--c-primary);
}

.cmap-open img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 1019px) {
  .page-contact .page-hero-media img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: 78% 42%;
  }
}

@media (max-width: 1019px) {
  .contact-cards {
    flex-wrap: wrap;
  }

  .cinfo {
    flex: 1 1 calc(50% - 12px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cform,
  .cmap {
    width: 100%;
  }

  .cmap-canvas {
    flex: none;
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    padding-top: 24px;
    gap: 12px;
  }

  .cinfo {
    flex: 1 1 100%;
    padding: 20px;
  }

  .cinfo-icon {
    width: 48px;
    height: 48px;
  }

  .cinfo-icon img {
    width: 22px;
    height: 22px;
  }

  .cinfo h3 {
    margin-top: 16px;
  }

  .cinfo-val {
    font-size: 20px;
    line-height: 28px;
  }

  .cinfo-val.is-mail {
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
  }

  .cinfo-val.is-addr {
    font-size: 15px;
    line-height: 24px;
  }

  .cinfo-foot,
  .cinfo-nav {
    margin-top: 16px;
    padding-top: 16px;
  }

  .contact-grid {
    padding: 28px 0 56px;
    gap: 20px;
  }

  .cform {
    padding: 20px;
    border-radius: 16px;
  }

  .cform h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .cform-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cform-field label {
    white-space: normal;
  }

  .cform-row + .cform-field,
  .cform-field + .cform-field,
  .cform-row + .cform-row {
    margin-top: 16px;
  }

  .cform-field input,
  .cform-field textarea {
    height: 48px;
  }

  .cform-field textarea {
    height: 110px;
  }

  .cform-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cform-submit {
    width: 100%;
  }

  .cmap {
    padding: 20px;
    border-radius: 16px;
  }

  .cmap-canvas {
    flex: none;
    height: 260px;
    min-height: 260px;
  }

  .cmap-pin {
    width: 150px;
    margin-left: -75px;
  }

  .cmap-tip {
    font-size: 12px;
    line-height: 16px;
    white-space: normal;
    padding: 6px 10px;
  }
}
