/* Contact page (PbootCMS contenttpl) */

:root {
  --ct-bg: #f6f8fc;
  --ct-text: #0f172a;
  --ct-muted: #64748b;
  --ct-border: rgba(15, 23, 42, 0.12);
  --ct-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --ct-blue: #00327e;
  --ct-blue2: #00255e;
}

body.page-contact {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ct-text);
  background: var(--ct-bg);
}

@media (min-width: 1600px) {
  body.page-contact {
    zoom: min(1.75, max(1, 100vw / 1760));
  }
}

.page-contact .container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
}

@media (min-width: 1200px) {
  .page-contact .container {
    max-width: 75%;
  }
}

@media (min-width: 2000px) {
  .page-contact .container {
    max-width: min(1820px, 80vw);
    padding-left: clamp(16px, 3.2vw, 44px);
    padding-right: clamp(16px, 3.2vw, 44px);
  }
}

@media (min-width: 2600px) {
  .page-contact .container {
    max-width: min(2160px, 84vw);
  }
}

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  padding-top: calc(var(--landing-header-height, 80px) + clamp(28px, 3.2vw, 56px));
  padding-bottom: clamp(24px, 3vw, 48px);
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(0, 50, 126, 0.14) 0%, rgba(0, 50, 126, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #edf0f7 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  pointer-events: none;
  z-index: 1;
}

.ct-hero > .container {
  position: relative;
  z-index: 2;
}

.ct-hero__bg {
  width: 100%;
  height: auto;
  display: block;
}

/* Image-based hero: full-width image, auto height, text vertically centered */
.ct-hero--img {
  display: grid;
  grid-template-areas: "stack";
  padding-top: 0;
  padding-bottom: 0;
  background: none;
}

.ct-hero--img .ct-hero__bg { grid-area: stack; }
.ct-hero--img::before { grid-area: stack; }

.ct-hero--img > .container {
  grid-area: stack;
  padding-top: calc(var(--landing-header-height, 80px) + clamp(28px, 3.2vw, 56px));
  padding-bottom: clamp(24px, 3vw, 48px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .ct-hero--img {
    min-height: 240px;
  }

  .ct-hero--img .ct-hero__bg {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.ct-breadcrumb {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255, 255, 255, 0.85);
}

.ct-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ct-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.ct-title {
  margin: clamp(10px, 1.2vw, 14px) 0 0;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
}

.ct-subtitle {
  margin: 10px 0 0;
  max-width: 62rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.ct-section {
  padding: clamp(26px, 3.2vw, 56px) 0;
}

.ct-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: clamp(14px, 2.4vw, 28px);
}

@media (min-width: 768px) {
  .ct-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ct-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ct-cardmini {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 18px 16px;
  text-align: center;
}

.ct-cardmini__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 50, 126, 0.1);
  color: var(--ct-blue);
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-cardmini__k {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
}

.ct-cardmini__v {
  margin-top: 8px;
  display: block;
  color: var(--ct-muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}

.ct-cardmini__v:hover {
  color: var(--ct-blue);
  text-decoration: none;
}

/* 地址等富文本里若带链接，不显示下划线 */
.ct-cardmini__v a,
.ct-cardmini__v a:hover,
.ct-cardmini__v a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.ct-cardmini__v a:hover {
  color: var(--ct-blue);
}

.ct-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.4vw, 28px);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .ct-grid2 {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  /* 左侧仅有绝对定位子元素，行高由右侧表单决定；拉伸使地图容器与表单卡片同高 */
  .ct-grid2 > .ct-card--map {
    min-height: 100%;
    align-self: stretch;
  }
}

.ct-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.ct-card--map {
  position: relative;
  min-height: 420px;
}

.ct-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(0, 50, 126, 0.12) 0%, rgba(0, 50, 126, 0) 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.02) 100%);
}

.ct-map--embed {
  background: #e8eaed;
}

.ct-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ct-map__hint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ct-muted);
  line-height: 1.4;
}

.ct-map__hint i {
  margin-top: 2px;
  color: var(--ct-blue);
}

.ct-map__hint span {
  word-break: break-word;
}

.ct-card--map {
  padding: 0;
}

.ct-card--map .ct-card__inner {
  display: none;
}

.ct-card__inner {
  padding: clamp(18px, 2vw, 28px);
}

.ct-h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
  color: var(--ct-text);
}

.ct-divider {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--ct-blue);
  opacity: 0.95;
  margin: 12px 0 18px;
}

.ct-rich {
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

/* ---------- Form ---------- */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .ct-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ct-input,
.ct-textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  background: #fff;
  color: var(--ct-text);
}

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

.ct-textarea {
  min-height: 120px;
  resize: vertical;
}

.ct-captcha {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 420px) {
  .ct-captcha {
    grid-template-columns: 1fr;
  }
}

.ct-captcha-img {
  height: 42px;
  width: auto;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.ct-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--ct-blue);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ct-submit:hover {
  background: var(--ct-blue2);
  transform: translateY(-1px);
}

.ct-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ct-muted);
  line-height: 1.6;
}

