﻿/* from src/views/contact/ContactView.vue */
.contact-page{
  background: #fff;
}

.contact-page .hero{
  position: relative;
  padding: calc(var(--header-h, 90px) + 72px) 0 88px;
  overflow: hidden;
  background: #0f345b;
  color: #fff;
}

.contact-page .hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(217, 55, 81, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20, 123, 209, 0.25), transparent 50%),
    linear-gradient(165deg, #0a2744 0%, #0f345b 45%, #1a1a1a 100%);
  pointer-events: none;
}

.contact-page .hero__bg::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  opacity: 0.7;
}

.contact-page .hero__inner{
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.contact-page .hero .section-label{
  color: #f5a3b0;
}

.contact-page .hero__title{
  margin: 0 0 18px;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-family: var(--font-display, inherit);
}

.contact-page .hero__lead{
  margin: 0 0 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 640px;
}

.contact-page .hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-page .btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 28px;
  background: #ea3e5b;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-page .btn-cta:hover{
  background: #ff3a5b;
  color: #fff;
}

.contact-page .btn-cta:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-page .btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 28px;
  border: 1px solid #fff;
  background: #fff;
  color: #0f345b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-page .btn-ghost:hover{
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.contact-page .channels{
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.contact-page .channels__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 52, 91, 0.12);
}

.contact-page .channel{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 32px;
  border: none;
  border-right: 1px solid #eef2f6;
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: default;
  text-decoration: none;
  transition: background 0.25s ease;
}

.contact-page button.channel{
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.contact-page .channel:last-child{
  border-right: none;
}

.contact-page .channel:hover{
  background: #f8fafc;
  color: inherit;
}

/* 添加联系方式类型激活状态样式 */
.contact-page .channel.contact-type-btn.contact-type-active {
  background: #f0f7ff;
  border: 1px solid #d1e7ff;
  position: relative;
}

.contact-page .channel.contact-type-btn.contact-type-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #007bff;
  border-radius: 3px 3px 0 0;
}

.contact-page .copy-toast{
  position: fixed;
  left: 50%;
  top: 22%;
  z-index: 200;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 6px;
  background: rgba(15, 52, 91, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(15, 52, 91, 0.22);
  pointer-events: none;
  white-space: nowrap;
}

.contact-page .toast-enter-active, .contact-page .toast-leave-active{
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.contact-page .toast-enter-from, .contact-page .toast-leave-to{
  opacity: 0;
  transform: translate(-50%, -8px);
}

.contact-page .channel__label{
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d93751;
  font-family: var(--font-display, inherit);
}

.contact-page .channel__value{
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #0f345b;
  line-height: 1.35;
  word-break: break-all;
}

.contact-page .channel__value--addr{
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
}

.contact-page .channel em{
  font-style: normal;
  font-size: 13px;
  color: #8a939c;
  font-weight: 300;
}

.contact-page .consult{
  padding: 88px 0 96px;
  background: #fff;
}

.contact-page .consult__layout{
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact-page .consult__intro h2{
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.contact-page .consult__desc{
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.85;
  color: #5a6570;
  font-weight: 300;
  max-width: 420px;
}

.contact-page .offer-list{
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 22px;
}

.contact-page .offer-list li{
  padding-left: 18px;
  border-left: 3px solid #d93751;
}

.contact-page .offer-list b{
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: #0f345b;
}

.contact-page .offer-list span{
  font-size: 14px;
  line-height: 1.7;
  color: #5a6570;
  font-weight: 300;
}

.contact-page .company{
  padding-top: 28px;
  border-top: 1px solid #e8edf3;
}

.contact-page .company__label{
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a939c;
}

.contact-page .company strong{
  display: block;
  font-size: 18px;
  color: #0f345b;
  margin-bottom: 6px;
}

.contact-page .company p{
  margin: 0;
  font-size: 14px;
  color: #5a6570;
  font-weight: 300;
}

.contact-page .form{
  padding: 40px 36px 36px;
  background: #f5f6f8;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.contact-page .form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-bottom: 18px;
}

.contact-page .form__contact-field{
  display: grid;
  gap: 8px;
}

.contact-page .form__contact-header{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-page .form__contact-label{
  flex-shrink: 0;
  font-size: 13px;
  color: #5a6570;
}

.contact-page .form__contact-label em{
  color: #d93751;
  font-style: normal;
}

.contact-page .contact-toggle__switch{
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: auto;
  max-width: 128px;
  padding: 2px;
  background: #e8edf3;
  border-radius: 5px;
  border: 1px solid #dce3eb;
}

.contact-page .contact-toggle__switch::before{
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 52, 91, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.contact-page .contact-toggle__switch.is-email::before{
  transform: translateX(100%);
}

.contact-page .contact-toggle__btn{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 24px;
  padding: 2px 7px;
  border: none;
  background: transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  color: #6b7785;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-page .contact-toggle__icon{
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.contact-page .contact-toggle__btn:hover:not(.is-active){
  color: #3d4f62;
}

.contact-page .contact-toggle__btn.is-active{
  color: #d93751;
  font-weight: 600;
}

.contact-page .contact-toggle__btn.is-active .contact-toggle__icon{
  opacity: 1;
}

.contact-page .contact-toggle__btn:focus-visible{
  outline: 2px solid rgba(217, 37, 81, 0.45);
  outline-offset: 1px;
}

.contact-page .contact-toggle__panels{
  position: relative;
  min-height: 46px;
}

.contact-page .contact-toggle__panel{
  display: none;
}

.contact-page .contact-toggle__panel.is-active{
  display: block;
  animation: contact-panel-in 0.22s ease;
}

@keyframes contact-panel-in{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-page .contact-toggle__input-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-toggle__input-wrap:focus-within{
  border-color: #d93751;
  box-shadow: 0 0 0 3px rgba(217, 37, 81, 0.08);
}

.contact-page .contact-toggle__field-icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9aa8b6;
  transition: color 0.2s ease;
}

.contact-page .contact-toggle__input-wrap:focus-within .contact-toggle__field-icon{
  color: #d93751;
}

.contact-page .contact-toggle__panel input{
  flex: 1;
  min-width: 0;
  border: none;
  padding: 12px 0;
  background: transparent;
  box-shadow: none;
}

.contact-page .contact-toggle__panel input:focus{
  border-color: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce){
  .contact-page .contact-toggle__switch::before{
    transition: none;
  }

  .contact-page .contact-toggle__panel.is-active{
    animation: none;
  }
}

.contact-page label{
  display: grid;
  gap: 8px;
}

.contact-page label.full{
  margin-bottom: 18px;
}

.contact-page label span{
  font-size: 13px;
  color: #5a6570;
}

.contact-page input, .contact-page select, .contact-page textarea{
  width: 100%;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-page input:focus, .contact-page select:focus, .contact-page textarea:focus{
  border-color: #d93751;
}

.contact-page textarea{
  resize: vertical;
  min-height: 120px;
}

.contact-page .msg{
  margin: 0 0 14px;
  font-size: 14px;
}

.contact-page .msg--error{
  color: #d93751;
}

.contact-page .msg--ok{
  color: #1f9d55;
}

.contact-page .form__submit{
  width: 100%;
  min-width: 0;
  height: 52px;
  font-size: 16px;
}

.contact-page .closing{
  position: relative;
  padding: 72px 24px;
  background:
    linear-gradient(90deg, rgba(15, 52, 91, 0.88), rgba(217, 55, 81, 0.72)),
    #0f345b;
  text-align: center;
  color: #fff;
}

.contact-page .closing__inner b{
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.contact-page .closing__inner em{
  font-style: normal;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
}

@media (max-width: 960px) {
  .contact-page .channels{
    margin-top: 0;
    padding: 0 0 8px;
  }

  .contact-page .channels__grid{
    grid-template-columns: 1fr;
    box-shadow: none;
    border-top: 1px solid #eef2f6;
  }

  .contact-page .channel{
    border-right: none;
    border-bottom: 1px solid #eef2f6;
    padding: 28px 20px;
  }

  .contact-page .consult{
    padding: 56px 0 64px;
  }

  .contact-page .consult__layout{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-page .form{
    padding: 28px 20px;
  }

  .contact-page .form__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-page .hero{
    padding: calc(var(--header-h, 60px) + 48px) 0 56px;
  }

  .contact-page .hero__actions{
    width: 100%;
  }

  .contact-page .btn-cta, .contact-page .btn-ghost{
    flex: 1;
    min-width: 0;
  }
}
