@charset "utf-8";

/* ============================================================
   contact.css — 对齐 jirfine.com/contact.html 实测字号/间距
   （参考 1920 设计：1rem≈75px @1440 视口下的计算值）
   ============================================================ */

.page-contact {
  --ct-green: #5BA323;
  --ct-green-dark: #4a8a1c;
  --ct-dark: #2b2f33;
  --ct-muted: #808080;
  --ct-text: #1a1a1a;
  --ct-gray: #f5f6f7;
  --ct-cut: polygon(7.5px 0, 100% 0, 100% calc(100% - 7.5px), calc(100% - 7.5px) 100%, 7.5px 100%, 0 100%, 0 7.5px);
  --ct-cut-lg: polygon(0 0, 100% 0, 100% calc(100% - 90px), calc(100% - 90px) 100%, 90px 100%, 0 100%);
  --ct-cut-md: polygon(0 0, 100% 0, 100% calc(100% - 45px), calc(100% - 45px) 100%, 45px 100%, 0 100%);
  --c-accent: #5BA323;
}

.page-contact .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line, #eee);
}

.page-contact .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

.ct-main {
  background: #fff;
}

.ct-seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 总部信息卡 ---------- */
.ct-hq {
  margin-top: 61px;
}

.ct-hq__media {
  position: relative;
  width: 100%;
  clip-path: var(--ct-cut-lg);
  overflow: hidden;
  background: #1a1a1a;
  line-height: 0;
}

.ct-hq__media > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  object-position: center;
}

.ct-hq__card {
  position: absolute;
  left: max(24px, calc(var(--site-gutter, 8vw) + 0px));
  bottom: 0;
  z-index: 2;
  width: min(405px, 88%);
  min-height: 0;
  padding: 30px;
  box-sizing: border-box;
  background: var(--ct-dark);
  clip-path: var(--ct-cut-md);
  color: #fff;
  line-height: 1.5;
}

.ct-hq__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  min-height: 0;
  padding-bottom: 16px;
  margin-bottom: 0;
}

.ct-hq__head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ct-hq__maplink {
  margin-top: 44px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ct-green) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.ct-hq__maplink::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--ct-green);
}

.ct-hq__maplink:hover {
  opacity: .85;
}

.ct-hq__body {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
  line-height: 1.5;
}

.ct-hq__body p,
.ct-hq__body > div {
  margin: 0 0 12px;
}

.ct-hq__body p:last-child,
.ct-hq__body > div:last-child {
  margin-bottom: 0;
}

.ct-hq__body .ct-hq__list {
  margin-top: 0;
}

.ct-hq__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-hq__body li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ct-hq__body li:last-child {
  margin-bottom: 0;
}

.ct-hq__body img {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  object-fit: contain;
  vertical-align: middle;
}

.ct-hq__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ct-hq__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
  line-height: 1.5;
}

.ct-hq__list li:last-child {
  margin-bottom: 0;
}

.ct-hq__ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  object-fit: contain;
  opacity: .9;
}

/* ---------- 左右分栏 ---------- */
.ct-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.ct-common-title {
  margin: 0;
  flex: 0 0 auto;
  max-width: 345px;
  font-size: 38px;
  font-weight: 600;
  color: var(--ct-text);
  line-height: 52px;
}

.ct-common-title::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 6px;
  margin-left: 4px;
  background: var(--ct-green);
  transform: skew(-20deg);
  vertical-align: middle;
}

/* ---------- 公司地图 ---------- */
.ct-map {
  padding: 110px 0;
  background: #fff;
}

.ct-map .ct-split {
  flex-direction: column;
  gap: 36px;
}

.ct-map .ct-common-title {
  max-width: none;
}

.ct-map__panel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 560px;
  overflow: hidden;
  background: #eef1eb;
  clip-path: var(--ct-cut-md);
}

.ct-map__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ct-map__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: #666;
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
}

.ct-map__fallback a {
  color: var(--ct-green);
  margin-left: 4px;
}

.ct-map__iw {
  min-width: 180px;
  padding: 4px 2px;
  line-height: 1.5;
}

.ct-map__iw strong {
  display: block;
  margin-bottom: 4px;
  color: #1a1a1a;
  font-size: 14px;
}

.ct-map__iw p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.ct-map__bar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
}

.ct-map__link {
  display: inline-flex;
  align-items: center;
  height: 41px;
  padding: 0 18px;
  background: var(--ct-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  clip-path: var(--ct-cut);
  transition: background .25s ease;
}

.ct-map__link:hover {
  background: var(--ct-green-dark);
}

/* ---------- 在线咨询表单（乔锋结构） ---------- */
.ct-form {
  padding: 110px 0;
  background: var(--ct-gray);
}

.ct-form__box {
  flex: 0 0 auto;
  width: 50%;
  min-width: 0;
}

.ct-form__el {
  margin: 0;
}

.ct-form__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.ct-field {
  position: relative;
  width: calc(50% - 4px);
  margin-bottom: 30px;
  box-sizing: border-box;
}

.ct-field--full {
  width: 100%;
}

.ct-field__label {
  display: block;
  padding-bottom: 11px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ct-text);
  line-height: 1;
}

.ct-field__label .req {
  color: var(--ct-green);
  margin-left: 2px;
}

.ct-field__input,
.ct-field select.ct-field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 41px;
  padding: 0 15px;
  border: 0;
  outline: none;
  background: #fff;
  font-size: 14px;
  font-weight: 300;
  color: var(--ct-text);
  line-height: 41px;
  clip-path: var(--ct-cut);
  appearance: none;
  -webkit-appearance: none;
}

.ct-field__select-wrap {
  position: relative;
}

.ct-field__select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -3px;
  width: 0;
  height: 0;
  border-top: 6px solid #999;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  pointer-events: none;
}

.ct-field__textarea {
  height: auto;
  min-height: 120px;
  padding: 15px;
  line-height: 1.6;
  resize: vertical;
}

.ct-field__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ct-field__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 19px;
  background: #fff;
  clip-path: var(--ct-cut);
  font-size: 14px;
  font-weight: 400;
  color: var(--ct-muted);
  line-height: 34px;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, color .2s ease;
}

.ct-field__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-field__option:has(input:checked),
.ct-field__option.is-checked {
  background: var(--ct-green);
  color: #fff;
}

.ct-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 0;
}

.ct-form__privacy {
  flex: 1;
  max-width: 379px;
  margin: 0;
  font-size: 14px;
  color: var(--ct-muted);
  line-height: 1.57;
}

.ct-form__privacy a {
  color: var(--ct-text);
  margin-left: 4px;
  text-decoration: none;
}

.ct-form__privacy a:hover {
  text-decoration: underline;
}

.ct-form__btns {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 135px;
  height: 41px;
  padding: 0 19px;
  border: 0;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  clip-path: var(--ct-cut);
  transition: background .25s ease;
}

.ct-btn--primary {
  background: var(--ct-green);
  color: #fff;
}

.ct-btn--primary::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
}

.ct-btn--primary:hover {
  background: var(--ct-green-dark);
}

.ct-btn--primary:disabled {
  opacity: .55;
  cursor: wait;
}

.ct-btn--ghost {
  display: none;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ct-split {
    flex-direction: column;
    gap: 30px;
  }

  .ct-common-title {
    max-width: none;
    font-size: 31px;
    line-height: 1.3;
  }

  .ct-form__box,
  .ct-map__panel {
    width: 100%;
  }

  .ct-map__panel {
    height: 480px;
  }

  .ct-map,
  .ct-form {
    padding: 80px 0;
  }
}

@media (max-width: 960px) {
  .ct-hq {
    margin-top: 44px;
  }

  .ct-hq__media {
    clip-path: none;
  }

  .ct-hq__media > img {
    min-height: 0;
    max-height: none;
  }

  .ct-hq__card {
    position: static;
    width: 100%;
    clip-path: none;
  }

  .ct-hq__head {
    min-height: 0;
  }

  .ct-hq__body,
  .ct-hq__list li {
    font-size: 15px;
  }

  .ct-hq__body img,
  .ct-hq__ico {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 4px;
  }

  .ct-field,
  .ct-field--full {
    width: 100%;
  }

  .ct-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-form__privacy {
    max-width: none;
  }

  .ct-form__btns .ct-btn {
    width: 100%;
    justify-content: center;
  }

  .ct-map,
  .ct-form {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .ct-hq {
    margin-top: 36px;
  }

  .ct-hq__card {
    padding: 22px 18px;
  }

  .ct-map,
  .ct-form {
    padding: 52px 0;
  }

  .ct-map__panel {
    height: 360px;
    clip-path: none;
  }

  .ct-field__option {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
