/* ===== 页面专属：联系入口 ===== */
.page-contact {
  --contact-gap: 48px;
  --contact-radius: 4px;
  --contact-border-color: #E0E0E0;
  --contact-icon-size: 32px;
  background: #F5F5F5;
  padding: 40px 24px 80px;
  min-height: 60vh;
}

/* 面包屑 */
.contact-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 32px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-breadcrumb a {
  color: #D32F2F;
  text-decoration: none;
  font-weight: 500;
  transition: color 300ms ease-out;
}
.contact-breadcrumb a:hover {
  color: #FFD700;
}
.contact-breadcrumb-sep {
  color: #CCCCCC;
  font-weight: 300;
}
.contact-breadcrumb [aria-current="page"] {
  color: #2C2C2C;
  font-weight: 600;
}

/* 两栏容器 */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--contact-gap);
  align-items: start;
}

/* ===== 左栏：联系方式 ===== */
.contact-info {
  background: #FFFFFF;
  border: 1px solid var(--contact-border-color);
  border-radius: var(--contact-radius);
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 300ms ease-out;
}
.contact-info:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-info-title {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #D32F2F;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-info-desc {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 36px;
  max-width: 480px;
}

/* 联系方式列表 */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #E0E0E0;
  transition: border-color 300ms ease-out;
}
.contact-item:first-child {
  padding-top: 0;
}
.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-item:hover {
  border-bottom-color: #FFD700;
}
.contact-item:last-child:hover {
  border-bottom-color: transparent;
}

.contact-item-icon {
  flex: 0 0 var(--contact-icon-size);
  width: var(--contact-icon-size);
  height: var(--contact-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D32F2F;
  transition: color 300ms ease-out, transform 300ms ease-out;
  margin-top: 2px;
}
.contact-item:hover .contact-item-icon {
  color: #FFD700;
  transform: scale(1.08);
}

.contact-icon-img {
  display: block;
  width: var(--contact-icon-size);
  height: var(--contact-icon-size);
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.contact-icon-svg {
  display: block;
  width: var(--contact-icon-size);
  height: var(--contact-icon-size);
}

.contact-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item-label {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item-value {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  word-break: break-all;
  line-height: 1.4;
}
.contact-item-value.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 500;
}
a.contact-item-value {
  color: #D32F2F;
  text-decoration: none;
  transition: color 300ms ease-out;
}
a.contact-item-value:hover {
  color: #FFD700;
}

.contact-item-note-small {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
}

/* 用途说明 */
.contact-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: #F9F9F9;
  border-left: 3px solid #FFD700;
  border-radius: 2px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 300ms ease-out;
}
.contact-note:hover {
  background: #FFF8E1;
}

.contact-note-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #FFD700;
  margin-top: 2px;
}

.contact-note-text {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2C2C2C;
  margin: 0;
}

/* ===== 右栏：地图 ===== */
.contact-map {
  background: #2C2C2C;
  border-radius: var(--contact-radius);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  border: 1px solid #444;
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.contact-map:hover {
  border-color: #FFD700;
  box-shadow: 0 4px 24px rgba(211,47,47,0.15);
}

.contact-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  overflow: hidden;
  aspect-ratio: 500 / 400;
}
.contact-map-container:active {
  cursor: grabbing;
}

.contact-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  transition: transform 600ms ease-out;
  will-change: transform;
}
.contact-map-container:hover .contact-map-image {
  transform: scale(1.03) translateX(-4px);
}

/* 定位标记 */
.contact-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
  animation: contact-pin-pulse 2.4s ease-in-out infinite;
}
@keyframes contact-pin-pulse {
  0%, 100% { transform: translate(-50%, -60%) scale(1); }
  50% { transform: translate(-50%, -60%) scale(1.06); }
}
.contact-map-pin svg {
  filter: drop-shadow(0 2px 8px rgba(211,47,47,0.5));
}
.contact-map-label {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  background: rgba(44,44,44,0.8);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(2px);
}

/* 网格装饰 */
.contact-map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,215,0,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: opacity 400ms ease-out;
}
.contact-map-container:hover .contact-map-grid {
  opacity: 0.3;
}

/* 底部提示 */
.contact-map-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  padding: 4px 16px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(2px);
  z-index: 3;
  white-space: nowrap;
  transition: background 300ms ease-out, color 300ms ease-out;
}
.contact-map-container:hover .contact-map-hint {
  background: rgba(211,47,47,0.7);
  color: #FFFFFF;
}

/* ===== 底部内链 ===== */
.contact-footer-links {
  max-width: 1200px;
  margin: 48px auto 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-footer-link.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #D32F2F;
  background: transparent;
  color: #D32F2F;
  text-decoration: none;
  border-radius: 4px;
  transition: background 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out;
  cursor: pointer;
  min-width: 140px;
}
.contact-footer-link.btn:hover {
  background: #D32F2F;
  color: #FFFFFF;
  border-color: #D32F2F;
}
.contact-footer-link.btn:last-child {
  border-color: #2C2C2C;
  color: #2C2C2C;
}
.contact-footer-link.btn:last-child:hover {
  background: #2C2C2C;
  color: #FFFFFF;
  border-color: #2C2C2C;
}

/* ===== 响应式：桌面 >= 768px ===== */
@media (min-width: 768px) {
  .page-contact {
    padding: 48px 40px 100px;
  }

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

  .contact-info {
    padding: 48px 40px;
  }

  .contact-info-title {
    font-size: 40px;
  }

  .contact-info-desc {
    font-size: 17px;
  }

  .contact-item-value {
    font-size: 20px;
  }

  .contact-map {
    min-height: 420px;
    position: sticky;
    top: 100px;
  }

  .contact-map-container {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }

  .contact-map-hint {
    font-size: 13px;
    padding: 5px 20px;
  }

  .contact-footer-links {
    gap: 24px;
  }

  .contact-footer-link.btn {
    padding: 14px 40px;
    font-size: 16px;
    min-width: 160px;
  }
}

/* ===== 大桌面 >= 1024px ===== */
@media (min-width: 1024px) {
  .page-contact {
    padding: 60px 48px 120px;
  }

  .contact-wrapper {
    gap: 64px;
  }

  .contact-info {
    padding: 56px 48px;
  }

  .contact-info-title {
    font-size: 48px;
  }

  .contact-item {
    padding: 24px 0;
  }

  .contact-item-value {
    font-size: 22px;
  }

  .contact-map {
    min-height: 480px;
  }

  .contact-map-container {
    min-height: 480px;
  }

  .contact-map-pin svg {
    width: 56px;
    height: 56px;
  }

  .contact-map-label {
    font-size: 14px;
    padding: 3px 14px;
  }
}

/* ===== 宽屏 >= 1280px ===== */
@media (min-width: 1280px) {
  .contact-wrapper {
    grid-template-columns: 5fr 7fr;
  }
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  .contact-map-pin {
    animation: none;
  }
  .contact-map-container:hover .contact-map-image {
    transform: none;
  }
  .contact-item-icon {
    transition: none;
  }
  .contact-item:hover .contact-item-icon {
    transform: none;
  }
  .contact-note,
  .contact-map,
  .contact-info {
    transition: none;
  }
  .contact-map-container:hover .contact-map-grid {
    opacity: 0.15;
  }
  .contact-map-container:hover .contact-map-hint {
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.6);
  }
  .contact-item:hover {
    border-bottom-color: #E0E0E0;
  }
}
