/**
 * Daily News Contact 固定页。
 *
 * 尺寸以参考站 1440 × 1000 与 390 × 844 的展示槽位为准；地图瓦片和
 * 地图控件由本地 Leaflet 渲染，样式只负责页面网格和内容层级。
 */

.cqcc-contact-page {
  color: #5e5e5e;
  background: #fbfbfc;
}

html[data-cqcc-theme="dark"] .cqcc-contact-page {
  color: #aaa;
  background: #101010;
}

.cqcc-contact__inner {
  padding-block: 60px;
}

.cqcc-contact-map-wrap {
  margin-bottom: 24px;
}

.cqcc-contact-map {
  width: 100%;
  height: 500px;
  background: #ddd;
  z-index: 0;
}

.cqcc-contact-map-wrap noscript p {
  margin: 14px 0 0;
  font-size: 14px;
}

.cqcc-contact-map-wrap noscript a,
.cqcc-contact-offices a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cqcc-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 835px) minmax(0, 405px);
  gap: 50px;
  margin-bottom: 60px;
}

.cqcc-contact-form-column h1,
.cqcc-contact-offices > h2 {
  margin: 0 0 25px;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.cqcc-contact-intro {
  margin: 0 0 50px;
  color: #5e5e5e;
  font-size: 16px;
  line-height: 1.65;
}

html[data-cqcc-theme="dark"] .cqcc-contact-form-column h1,
html[data-cqcc-theme="dark"] .cqcc-contact-offices > h2,
html[data-cqcc-theme="dark"] .cqcc-contact-offices h3 {
  color: #fff;
}

html[data-cqcc-theme="dark"] .cqcc-contact-intro,
html[data-cqcc-theme="dark"] .cqcc-contact-field,
html[data-cqcc-theme="dark"] .cqcc-contact-offices p,
html[data-cqcc-theme="dark"] .cqcc-contact-offices strong,
html[data-cqcc-theme="dark"] .cqcc-contact-socials a {
  color: #aaa;
}

.cqcc-contact-form {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.cqcc-contact-form__names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.cqcc-contact-field {
  display: grid;
  gap: 10px;
  margin: 0;
  color: #5e5e5e;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.cqcc-contact-field b {
  color: #f56c6c;
  font-weight: 400;
}

.cqcc-contact-field input,
.cqcc-contact-field textarea {
  width: 100%;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid #e8ebed;
  border-radius: 3px;
  outline: 0;
  color: #5e5e5e;
  background: transparent;
  font-size: 16px !important;
  line-height: 1.65 !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

html[data-cqcc-theme="dark"] .cqcc-contact-field input,
html[data-cqcc-theme="dark"] .cqcc-contact-field textarea {
  border-color: #202020;
  color: #aaa;
}

.cqcc-contact-field input {
  height: 40px;
}

.cqcc-contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.cqcc-contact-field input::placeholder,
.cqcc-contact-field textarea::placeholder {
  color: #a4a4a4;
  opacity: 1;
}

.cqcc-contact-field input:focus-visible,
.cqcc-contact-field textarea:focus-visible {
  border-color: #106abf !important;
  box-shadow: none;
}

.cqcc-contact-form button {
  height: 40px;
  min-height: 40px;
  justify-self: start;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #106abf;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  cursor: pointer;
}

.cqcc-contact-form button:hover,
.cqcc-contact-form button:focus-visible {
  background: #0d5ca8;
}

.cqcc-contact-form-column .cqcc-form-notice {
  margin: -30px 0 30px;
}

.cqcc-contact-offices {
  min-width: 0;
}

.cqcc-contact-offices section {
  margin: 0 0 30px;
}

.cqcc-contact-offices section:last-child {
  margin-bottom: 0;
}

.cqcc-contact-offices h3 {
  margin: 0 0 5px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.cqcc-contact-offices p {
  margin: 0;
  color: #5e5e5e;
  font-size: 16px;
  line-height: 1.65;
}

.cqcc-contact-offices strong {
  color: #5e5e5e;
  font-weight: 700;
}

.cqcc-contact-socials h3 {
  margin-bottom: 15px;
}

.cqcc-contact-socials > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cqcc-contact-socials a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e8ebed;
  color: #5e5e5e;
  background: transparent;
  text-decoration: none;
}

html[data-cqcc-theme="dark"] .cqcc-contact-socials a {
  border-color: #202020;
}

.cqcc-contact-socials a:hover,
.cqcc-contact-socials a:focus-visible {
  color: #106abf;
  border-color: #106abf;
}

.cqcc-contact-socials .cqcc-icon {
  width: 17px;
  height: 17px;
}

.cqcc-contact-app {
  position: relative;
  isolation: isolate;
  min-height: 199px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 570px));
  gap: 50px;
  align-items: center;
  overflow: hidden;
  padding: 50px;
  color: #fff;
  background-color: #9fbcde;
  background-image: none;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 5px;
}

.cqcc-contact-app.is-background-ready {
  background-image: linear-gradient(rgb(16 106 191 / 40%), rgb(16 106 191 / 40%)), var(--cqcc-contact-app-image);
}

.cqcc-contact-app h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
}

.cqcc-contact-app p {
  margin: 0;
  color: rgb(255 255 255 / 74%);
  font-size: 15px;
  line-height: 1.65;
}

.cqcc-contact-app__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-start;
}

body.cqcc-daily-site .cqcc-contact-app__action {
  min-width: 142px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 17px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

body.cqcc-daily-site .cqcc-contact-app__action:hover,
body.cqcc-daily-site .cqcc-contact-app__action:focus-visible {
  color: #fff;
  background: #111;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cqcc-contact-app__badge {
  display: inline-flex;
  flex: 0 0 auto;
}

.cqcc-contact-app__badge img {
  width: auto;
  height: 45px;
}

@media (max-width: 991.98px) {
  .cqcc-contact-map {
    height: 400px;
  }

  .cqcc-contact-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .cqcc-contact-app {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .cqcc-contact-app__actions {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 575.98px) {
  .cqcc-contact__inner {
    padding-block: 50px;
  }

  .cqcc-contact-map-wrap {
    margin-bottom: 24px;
  }

  .cqcc-contact-map {
    height: 400px;
  }

  .cqcc-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .cqcc-contact-form__names {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cqcc-contact-app {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px;
  }

  .cqcc-contact-app h2 {
    font-size: 20px;
  }

  .cqcc-contact-app__actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  body.cqcc-daily-site .cqcc-contact-app__action {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 12px;
  }

  .cqcc-contact-app__badge img {
    height: 35px;
  }

  .cqcc-contact-app__badge:first-child img {
    width: 80px;
    object-fit: contain;
  }
}
