/* ============================================
   联系入口页 · 页面专属样式
   作用域：.page-contact
   ============================================ */
.page-contact {
  --contact-slice: 18px;
  background: var(--blue-deep);
  color: var(--white);
  overflow-x: hidden;
}

/* ---------- 首屏 Hero ---------- */
.page-contact .contact-hero {
  position: relative;
  padding: 40px 0 52px;
  background:
    linear-gradient(rgba(30, 58, 110, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 110, 0.38) 1px, transparent 1px),
    var(--blue-deep);
  background-size: 32px 32px, 32px 32px, auto;
  border-bottom: 3px solid var(--orange);
}

.page-contact .contact-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 28%;
  max-width: 260px;
  height: 3px;
  background: var(--green);
}

.page-contact .contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}

.page-contact .contact-hero-copy {
  max-width: 680px;
}

.page-contact .contact-hero-copy h1 {
  margin: 14px 0 18px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-contact .hero-title-line {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-size: clamp(1.15rem, 3.4vw, 1.8rem);
  font-style: italic;
  font-weight: 800;
}

.page-contact .contact-hero-copy .page-subtitle {
  max-width: 560px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

/* 右侧支持摘要索引块 */
.page-contact .contact-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--orange);
  font-family: var(--font-mono);
}

.page-contact .contact-hero-meta .meta-coord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(11, 27, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
}

.page-contact .contact-hero-meta .meta-coord::before {
  content: "▸";
  color: var(--orange);
  font-weight: 700;
}

.page-contact .contact-hero-meta .btn {
  align-self: flex-start;
}

.page-contact .hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--green);
  border: 1px dashed rgba(57, 255, 20, 0.45);
  padding: 5px 10px;
}

.page-contact .hero-meta-badge::before {
  content: "●";
  font-size: 0.5rem;
  animation: contact-pulse 2s infinite alternate;
}

@keyframes contact-pulse {
  to {
    opacity: 0.45;
  }
}

/* ---------- 直接联系卡片 ---------- */
.page-contact .contact-direct {
  padding: 48px 0 36px;
}

.page-contact .direct-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--blue-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--contact-slice)), calc(100% - var(--contact-slice)) 100%, 0 100%);
  overflow: hidden;
}

.page-contact .direct-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  z-index: 3;
}

.page-contact .direct-card-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.page-contact .direct-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.page-contact .direct-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0) 55%, rgba(11, 27, 58, 0.72) 100%);
}

.page-contact .direct-card-body {
  padding: 30px 22px 36px;
}

.page-contact .direct-card-body h2 {
  margin: 10px 0 12px;
  font-size: 1.6rem;
  font-weight: 800;
}

.page-contact .direct-lead {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.page-contact .direct-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-contact .direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(11, 27, 58, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-contact .direct-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.page-contact .direct-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-contact .direct-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
}

.page-contact .direct-value {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.page-contact .direct-value:hover {
  color: var(--orange);
}

.page-contact .direct-address {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* 智能客服聊天展开区 */
.page-contact .chat-toggle {
  margin-top: 4px;
}

.page-contact .chat-toggle-btn {
  list-style: none;
  width: fit-content;
}

.page-contact .chat-toggle-btn::-webkit-details-marker {
  display: none;
}

.page-contact .chat-prototype {
  margin-top: 14px;
  padding: 16px;
  background: rgba(11, 27, 58, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.page-contact .chat-msg {
  max-width: 84%;
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.62;
}

.page-contact .chat-msg--agent {
  justify-self: start;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.page-contact .chat-msg--user {
  justify-self: end;
  background: var(--orange);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.page-contact .chat-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

/* ---------- 在线客服 + 邮件支持双通道 ---------- */
.page-contact .contact-channels {
  margin: 8px 12px 0;
  padding: 48px 0 40px;
  background: var(--moon-white);
  color: var(--ink);
  border-radius: 22px;
}

.page-contact .contact-channels h2 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
}

.page-contact .channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-contact .channel-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line-gray);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(11, 27, 58, 0.06);
}

.page-contact .channel-card--service {
  border-top: 5px solid var(--orange);
}

.page-contact .channel-card--mail {
  border-top: 5px solid var(--green);
}

.page-contact .channel-desc {
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(17, 24, 39, 0.78);
  margin-bottom: 16px;
}

.page-contact .channel-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-gray);
}

.page-contact .channel-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--line-gray);
}

.page-contact .fact-key {
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.88rem;
}

.page-contact .fact-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-deep);
  text-align: right;
}

.page-contact .mail-example {
  margin: 4px 0 20px;
  padding: 14px 16px;
  background: var(--blue-deep);
  border-radius: 10px;
}

.page-contact .mail-example-label {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.page-contact .mail-example-value {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-contact .mail-fallback {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(17, 24, 39, 0.5);
}

/* ---------- 地图与地址 ---------- */
.page-contact .contact-location {
  padding: 56px 0 48px;
  background:
    linear-gradient(rgba(30, 58, 110, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 110, 0.22) 1px, transparent 1px),
    var(--blue-deep);
  background-size: 32px 32px, 32px 32px, auto;
}

.page-contact .location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.page-contact .location-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--blue-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-contact .location-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-contact .map-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.page-contact .map-route {
  opacity: 0.25;
  transition: opacity 0.35s ease;
}

.page-contact .map-route-dot {
  opacity: 0.25;
  transition: opacity 0.35s ease;
}

.page-contact .location-map:hover .map-route,
.page-contact .location-map:focus-within .map-route {
  opacity: 1;
}

.page-contact .location-map:hover .map-route-dot,
.page-contact .location-map:focus-within .map-route-dot {
  opacity: 1;
}

.page-contact .map-grid-label {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  background: rgba(11, 27, 58, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.66);
}

.page-contact .location-info h2 {
  margin: 10px 0 16px;
  font-size: 1.5rem;
  font-weight: 900;
}

.page-contact .location-address {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--orange);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  line-height: 1.6;
  color: #fff;
}

.page-contact .location-hint {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-contact .location-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-contact .location-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.page-contact .location-points li::before {
  content: "◆";
  color: var(--green);
  font-size: 0.55rem;
}

/* ---------- 更多支持入口 ---------- */
.page-contact .contact-support-links {
  padding: 8px 0 64px;
}

.page-contact .contact-support-links h2 {
  margin-bottom: 22px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.page-contact .support-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-contact .support-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(30, 58, 110, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-contact .support-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: rgba(30, 58, 110, 0.7);
}

.page-contact .support-link-index {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 107, 53, 0.55);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
}

.page-contact .support-link-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-contact .support-link-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.page-contact .support-link-desc {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

/* ---------- 平板以上 ---------- */
@media (min-width: 640px) {
  .page-contact .contact-hero {
    padding: 52px 0 64px;
  }

  .page-contact .contact-direct {
    padding: 56px 0 40px;
  }

  .page-contact .direct-card-body {
    padding: 36px 32px 40px;
  }

  .page-contact .contact-channels {
    margin: 12px 20px 0;
    padding: 56px 0 48px;
    border-radius: 26px;
  }

  .page-contact .channels-grid {
    gap: 24px;
  }

  .page-contact .location-grid {
    gap: 28px;
  }

  .page-contact .support-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-contact .support-links-grid .support-link-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 900px) {
  .page-contact .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .page-contact .direct-card {
    grid-template-columns: 380px minmax(0, 1fr);
    --contact-slice: 32px;
  }

  .page-contact .direct-card-media {
    min-height: 100%;
  }

  .page-contact .direct-card-media::after {
    background: linear-gradient(90deg, rgba(11, 27, 58, 0) 62%, rgba(11, 27, 58, 0.5) 100%);
  }

  .page-contact .direct-card-body {
    padding: 44px 48px 48px;
  }

  .page-contact .contact-channels {
    margin: 20px 32px 0;
    padding: 64px 0 56px;
    border-radius: 30px;
  }

  .page-contact .channels-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-contact .channel-card {
    padding: 32px 28px;
  }

  .page-contact .contact-location {
    padding: 72px 0 56px;
  }

  .page-contact .location-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
  }

  .page-contact .location-map {
    min-height: 380px;
  }

  .page-contact .map-svg {
    min-height: 380px;
  }

  .page-contact .support-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-contact .support-links-grid .support-link-card:last-child {
    grid-column: auto;
  }
}

/* ---------- 大屏居中 ---------- */
@media (min-width: 1200px) {
  .page-contact .contact-channels {
    margin: 20px auto 0;
    max-width: calc(var(--container-w) + 48px);
  }
}
