/* ==================== Contact 页专属样式（cnt-page 命名空间，100% 对齐 html-case/pages/contact.html） ==================== */

/* 关闭全局强制滚动吸附 */
html:root {
  scroll-snap-type: none !important;
}

.cnt-page .tftech-footer,
.cnt-page .tftech-cta,
.cnt-page .tftech-banner {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  min-height: auto;
}

/* ==================== Hero Section ==================== */
.cnt-page .tftech-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a1e35;
  display: flex;
  align-items: center;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  opacity: 1;
  transform: none;
  padding: 0;
}

.cnt-page .tftech-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/themes/tianfeng/public/assets/images/solution-implementation-scene.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.cnt-page .tftech-hero.is-active .tftech-hero-bg {
  transform: scale(1);
}

.cnt-page .tftech-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 21, 37, 0.85) 0%, rgba(11, 42, 76, 0.6) 50%, rgba(15, 65, 117, 0.3) 100%);
}

.cnt-page .tftech-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.cnt-page .tftech-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 24px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.cnt-page .tftech-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ==================== Section Common ==================== */
.cnt-page .tftech-section {
  min-height: auto;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  transform: none;
  opacity: 1;
  position: relative;
  background: #ffffff;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: visible;
}

.cnt-page .tftech-section.is-active {
  transform: scale(1);
  opacity: 1;
}

.cnt-page .tftech-section-head {
  text-align: center;
  margin-bottom: 60px;
}

.cnt-page .tftech-section-head h2 {
  font-size: 2.5rem;
  margin: 0 0 16px;
  color: var(--tftech-foreground);
  font-weight: 700;
}

.cnt-page .tftech-kicker {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tftech-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

/* ==================== Form & Info Layout ==================== */
.cnt-page .tftech-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.cnt-page .tftech-contact-form {
  background: #ffffff;
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(15, 65, 117, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.cnt-page .tftech-form-group {
  margin-bottom: 25px;
}

.cnt-page .tftech-form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tftech-foreground);
  margin-bottom: 10px;
}

.cnt-page .tftech-form-group input,
.cnt-page .tftech-form-group select,
.cnt-page .tftech-form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--tftech-border);
  background: #fbfdff;
  color: var(--tftech-foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cnt-page .tftech-form-group input:focus,
.cnt-page .tftech-form-group select:focus,
.cnt-page .tftech-form-group textarea:focus {
  outline: none;
  border-color: var(--tftech-primary);
  box-shadow: 0 0 0 4px var(--tftech-ring);
}

.cnt-page .tftech-form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.cnt-page .tftech-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==================== Info Cards ==================== */
.cnt-page .tftech-contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cnt-page .tftech-info-card {
  background: #f8fbff;
  padding: 35px;
  border-radius: 24px;
  border: 1px solid rgba(15, 65, 117, 0.05);
  transition: all 0.3s ease;
}

.cnt-page .tftech-info-card:hover {
  background: #ffffff;
  box-shadow: var(--tftech-shadow-sm);
  transform: translateY(-5px);
  border-color: var(--tftech-primary);
}

.cnt-page .tftech-info-card i {
  color: var(--tftech-primary);
  margin-bottom: 20px;
}

.cnt-page .tftech-info-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--tftech-primary);
}

.cnt-page .tftech-info-card p {
  margin: 0;
  color: var(--tftech-muted-foreground);
  line-height: 1.6;
}

/* ==================== Map Section ==================== */
.cnt-page .tftech-map-section {
  background: #f8fbff;
}

.cnt-page .tftech-map-wrap {
  width: 100%;
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 65, 117, 0.1);
  position: relative;
  box-shadow: var(--tftech-shadow-md);
}

.cnt-page .tftech-map-wrap .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.cnt-page .tftech-map-wrap .leaflet-control-zoom {
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.cnt-page .tftech-map-wrap .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: var(--tftech-primary);
  background: #ffffff;
  border: none;
}

.cnt-page .tftech-map-wrap .leaflet-control-zoom a:hover {
  background: #f0f6fd;
}

.cnt-page .tftech-map-wrap .leaflet-control-attribution {
  display: none;
}

.cnt-page .tftech-map-marker {
  background: transparent;
  border: none;
}

.cnt-page .tftech-map-marker i {
  width: 40px;
  height: 40px;
  background: var(--tftech-primary);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 65, 117, 0.4);
}

.cnt-page .tftech-map-marker i svg {
  transform: rotate(45deg);
}

.cnt-page .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cnt-page .leaflet-popup-content {
  font-size: 0.9rem;
  color: var(--tftech-foreground);
}

.cnt-page .tftech-map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: var(--tftech-shadow-md);
  z-index: 1000;
  border: 1px solid var(--tftech-primary);
  max-width: 320px;
  pointer-events: none;
}

.cnt-page .tftech-map-overlay h4 {
  margin: 0 0 6px;
  color: var(--tftech-primary);
}

.cnt-page .tftech-map-overlay p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tftech-muted-foreground);
}

/* ==================== Buttons ==================== */
.cnt-page .tftech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--tftech-primary);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
}

.cnt-page .tftech-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 65, 117, 0.3);
}

.cnt-page .tftech-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: auto;
}

/* ==================== 提交成功弹窗 ==================== */
.cnt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 30, 53, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cnt-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cnt-modal-box {
  width: min(420px, calc(100% - 40px));
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cnt-modal-overlay.is-open .cnt-modal-box {
  transform: translateY(0) scale(1);
}

.cnt-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  animation: cnt-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cnt-modal-box h3 {
  font-size: 1.4rem;
  color: var(--tftech-foreground);
  margin: 0 0 10px;
}

.cnt-modal-box p {
  color: var(--tftech-muted-foreground);
  font-size: 0.95rem;
  margin: 0 0 28px;
  line-height: 1.7;
}

.cnt-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--tftech-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cnt-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 65, 117, 0.3);
}

@keyframes cnt-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .cnt-page .tftech-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cnt-page .tftech-hero h1 {
    font-size: 2.2rem;
  }
  .cnt-page .tftech-section-head h2 {
    font-size: 1.8rem;
  }
  .cnt-page .tftech-contact-form {
    padding: 30px;
  }
  .cnt-page .tftech-form-row {
    grid-template-columns: 1fr;
  }
  .cnt-page .tftech-map-wrap {
    height: 350px;
  }
}
