@charset "utf-8";

/* ============================================================
   contact.css — 联系我们（参考砺星 support，红色主题）
   ============================================================ */

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

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

/* ---------- Shared ---------- */
.ct-main {
  background: #fff;
}

.ct-section__head {
  text-align: center;
  margin-bottom: clamp(28px, 3.2vw, 48px);
}

.ct-section__head h2 {
  margin: 0;
  font-size: clamp(24px, 2.08333vw, 40px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.ct-section__head p {
  margin: .5vw 0 0;
  font-size: clamp(14px, 1.04166vw, 18px);
  color: #999;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

/* ---------- Form ---------- */
.ct-form {
  padding: 5.2vw 0 4vw;
}

.ct-form__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 3.6%;
}

.ct-field {
  position: relative;
  width: 48.2%;
  margin-bottom: 3.125vw;
  border-bottom: 1px solid #f0f0f0;
}

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

.ct-field__label {
  display: block;
  font-size: clamp(14px, 1.25vw, 22px);
  line-height: 1.4;
  color: #1a1a1a;
}

.ct-field__input {
  display: block;
  width: 100%;
  height: 3.125vw;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(14px, 1.04166vw, 18px);
  color: #333;
  outline: none;
}

.ct-field__textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 0;
  resize: vertical;
  line-height: 1.7;
}

.ct-field__line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--c-accent, #c8102e);
  transition: width .45s ease;
}

.ct-field.is-focus .ct-field__line,
.ct-field:focus-within .ct-field__line {
  width: 100%;
}

.ct-field__code {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ct-field__code img {
  height: 36px;
  cursor: pointer;
  border-radius: 4px;
}

.ct-field__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 0 16px;
}

.ct-field__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.ct-field__option input {
  accent-color: var(--c-accent, #c8102e);
}

.ct-form__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 1vw;
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.8vw;
  height: 3.7vw;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: clamp(14px, 1.04166vw, 18px);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.ct-btn--ghost {
  background: #f5f5f5;
  color: #999;
}

.ct-btn--ghost:hover {
  background: #eee;
  color: #666;
}

.ct-btn--primary {
  background: rgba(200, 16, 46, .12);
  color: var(--c-accent, #c8102e);
}

.ct-btn--primary:hover {
  background: var(--c-accent, #c8102e);
  color: #fff;
}

/* ---------- Info ---------- */
.ct-info {
  padding: 4vw 0;
  background: #fafafa;
}

.ct-info__inner {
  display: flex;
  align-items: center;
  gap: 5vw;
}

.ct-info__text {
  flex: 1 1 52%;
}

.ct-info__text h2 {
  margin: 0;
  font-size: clamp(24px, 2.08333vw, 40px);
  font-weight: 700;
  color: #1a1a1a;
}

.ct-info__lead {
  margin: .6vw 0 0;
  font-size: clamp(14px, 1.04166vw, 18px);
  color: #999;
}

.ct-info__line {
  display: block;
  width: 2.1vw;
  min-width: 28px;
  height: 3px;
  margin-top: 1.8vw;
  background: var(--c-accent, #c8102e);
}

.ct-info__phone {
  margin-top: 2vw;
  font-size: clamp(22px, 2.08333vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
  white-space: pre-line;
}

.ct-info__body {
  margin-top: 1.2vw;
  font-size: clamp(14px, 1.04166vw, 18px);
  line-height: 1.9;
  color: #666;
}

.ct-info__body p {
  margin: 0 0 1em;
}

.ct-info__body p:last-child {
  margin-bottom: 0;
}

.ct-info__body strong {
  color: #1a1a1a;
}

.ct-info__pic {
  flex: 0 0 38%;
  margin: 0;
  border-radius: 1.2vw;
  overflow: hidden;
  background: #fff5f6;
}

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

/* ---------- Service ---------- */
.ct-service {
  padding: 5.2vw 0;
}

.ct-service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5vw;
}

.ct-service__card {
  position: relative;
  padding: 2.8vw 2.5vw 3vw;
  border-radius: 1.2vw;
  background: #fff5f6;
  overflow: hidden;
  min-height: 280px;
}

.ct-service__tag {
  margin: 0 0 1vw;
  font-size: clamp(13px, 1.04166vw, 18px);
  color: #999;
}

.ct-service__card h3 {
  margin: 0 0 1.4vw;
  font-size: clamp(22px, 2.08333vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

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

.ct-service__card li {
  position: relative;
  padding-left: 14px;
  margin: .55em 0;
  font-size: clamp(13px, 1.04166vw, 17px);
  line-height: 1.7;
  color: #666;
}

.ct-service__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent, #c8102e);
}

.ct-service__icon {
  position: absolute;
  right: 1.6vw;
  bottom: 1.4vw;
  width: clamp(64px, 6.5vw, 110px);
  height: auto;
  opacity: .9;
  pointer-events: none;
}

/* ---------- Map ---------- */
.ct-map {
  padding: 2vw 0 6.5vw;
}

.ct-map__frame {
  position: relative;
  width: 100%;
  height: clamp(320px, 36vw, 520px);
  border-radius: 1.2vw;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}

.ct-map__frame iframe,
.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;
}

.ct-map__fallback a {
  color: var(--c-accent, #c8102e);
  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;
  left: 16px;
  bottom: 16px;
  z-index: 2;
}

.ct-map__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-accent, #c8102e);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(200, 16, 46, .28);
  transition: background .25s ease, transform .25s ease;
}

.ct-map__link:hover {
  color: #fff;
  background: #a50d25;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ct-field {
    width: 100%;
  }

  .ct-info__inner {
    flex-direction: column;
  }

  .ct-info__pic {
    width: 100%;
    flex-basis: auto;
  }

  .ct-service__grid {
    grid-template-columns: 1fr;
  }

  .ct-section__head {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ct-field__line,
  .page-hero__scroll-bar::after {
    transition: none;
    animation: none;
  }
}
