/* 联系页专用样式 - 纯静态重写版 */

/* ============ Hero ============ */
.contact-hero {
  padding-top: 160px;
  padding-bottom: 48px;
  background:
    radial-gradient(ellipse at top, rgba(200, 149, 109, 0.18) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.contact-hero .section-title { margin-bottom: 20px; }
.contact-hero .section-sub { margin-bottom: 0; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ 微信主区（核心）============ */
.wechat-feature {
  background: var(--bg);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.wechat-feature::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(200, 149, 109, 0.10) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wechat-feature-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.wechat-qr-box {
  text-align: center;
}
.wechat-qr-frame {
  position: relative;
  display: inline-block;
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #f5f0e8 100%);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(200, 149, 109, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(200, 149, 109, 0.15);
}
.wechat-qr-frame img {
  display: block;
  width: 280px;
  height: 300px;
  object-fit: contain;
}
/* 4 个角的扫描动画 */
.wechat-qr-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--warm);
  border-style: solid;
  border-width: 0;
}
.wechat-qr-corner.tl { top: 8px; left: 8px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.wechat-qr-corner.tr { top: 8px; right: 8px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.wechat-qr-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.wechat-qr-corner.br { bottom: 8px; right: 8px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }

.wechat-qr-caption {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wechat-qr-caption strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  font-weight: 600;
}
.wechat-qr-caption span {
  font-size: 13px;
  color: var(--white-60);
  letter-spacing: 0.05em;
}
.wechat-qr-caption em {
  color: var(--warm);
  font-style: normal;
  font-weight: 500;
}

.wechat-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--cream);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.wechat-info h2 em {
  color: var(--amber);
  font-style: normal;
}
.wechat-info-lead {
  font-size: 16px;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 32px;
}
.wechat-info-lead em {
  color: var(--warm);
  font-style: normal;
  font-weight: 500;
}

.wechat-msg-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.wechat-msg-tips li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}
.tip-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--warm);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.wechat-msg-tips strong {
  display: block;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.wechat-msg-tips small {
  color: var(--white-60);
  font-size: 12px;
  line-height: 1.5;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
}
.wx-id-label {
  font-size: 12px;
  color: var(--white-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wx-id {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
}
.copy-btn {
  background: var(--warm);
  color: var(--bg);
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.05em;
}
.copy-btn:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

/* ============ 三种方式卡片 ============ */
.contact-threeways {
  background: var(--bg-2);
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-threeways .section-title {
  text-align: center;
  margin-bottom: 64px;
}
.contact-threeways .section-title em {
  color: var(--amber);
  font-style: normal;
}

.three-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.way-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.way-card:hover {
  border-color: var(--warm);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.way-card.featured {
  border-color: var(--warm);
  background:
    radial-gradient(ellipse at top, rgba(200, 149, 109, 0.10) 0%, transparent 60%),
    var(--bg);
}
.way-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.1em;
}
.way-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--warm);
  font-weight: 500;
  opacity: 0.3;
  font-style: italic;
}
.way-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}
.way-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 600;
}
.way-desc {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.6;
  margin-bottom: 20px;
}
.way-big {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.way-card small {
  font-size: 12px;
  color: var(--white-60);
  margin-bottom: 24px;
  display: block;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ============ 公司信息 ============ */
.company-info {
  background: var(--bg);
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.info-card:hover {
  border-color: var(--warm);
  background: var(--bg-3);
}
.info-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.info-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 600;
}
.info-card p {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.6;
  margin-bottom: 8px;
}
.info-card small {
  font-size: 11px;
  color: var(--white-30);
  display: block;
  letter-spacing: 0.05em;
}
.info-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--warm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.info-link:hover { border-bottom-color: var(--warm); }

/* ============ 接单原则 ============ */
.contact-promise {
  background: var(--bg-2);
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.promise-inner { text-align: center; }
.promise-inner .section-title {
  margin-bottom: 56px;
}
.promise-inner .section-title em {
  color: var(--amber);
  font-style: normal;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.promise-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s var(--ease);
}
.promise-item:hover {
  border-color: var(--warm);
  background: var(--bg-3);
}
.promise-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--warm);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  font-style: italic;
  opacity: 0.6;
}
.promise-item h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 600;
}
.promise-item p {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.7;
}

/* ============ 找变姐前先想 ============ */
.contact-think {
  background: var(--bg);
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.think-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
}
.think-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--cream);
  margin-bottom: 16px;
  font-weight: 600;
}
.think-inner h2 em {
  color: var(--amber);
  font-style: normal;
}
.think-inner > p {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 32px;
}
.think-list {
  list-style: none;
  counter-reset: think;
}
.think-list li {
  counter-increment: think;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.think-list li:last-child { border-bottom: none; }
.think-list li::before {
  content: counter(think);
  position: absolute;
  left: 0;
  top: 16px;
  width: 32px;
  height: 32px;
  background: var(--warm);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.think-list strong {
  display: block;
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 4px;
  font-weight: 600;
}
.think-list span {
  font-size: 13px;
  color: var(--white-60);
}

/* ============ 微信 sticky 二维码 ============ */
.wechat-sticky {
  background:
    radial-gradient(ellipse at center, rgba(200, 149, 109, 0.10) 0%, transparent 70%),
    var(--bg-2);
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}
.wechat-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--warm);
  border-radius: 16px;
  padding: 32px;
}
.wechat-sticky-inner img {
  width: 180px;
  height: 192px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}
.wechat-sticky-text h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 600;
}
.wechat-sticky-text > p {
  font-size: 13px;
  color: var(--white-60);
  margin-bottom: 16px;
  line-height: 1.6;
}
.wx-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.wx-id-row span {
  font-size: 12px;
  color: var(--white-60);
}
.wx-id-row code {
  flex: 1;
  font-family: var(--font-sans);
  color: var(--cream);
  font-size: 16px;
  font-weight: 500;
}

/* ============ 百度地图 ============ */
.map-section {
  background: var(--bg);
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.map-section .section-title {
  margin-bottom: 16px;
}
.map-section .section-title em {
  color: var(--amber);
  font-style: normal;
}
.map-sub {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.8;
  margin-bottom: 48px;
}

.map-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}

.leaflet-map {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  background: var(--bg-3);
  z-index: 1;
}

/* 自定义金色标记 */
.custom-marker {
  position: relative;
  width: 32px;
  height: 32px;
}
.marker-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #C8956D 0%, #B07A50 100%);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 4px 12px rgba(200, 149, 109, 0.5);
}
.marker-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  background: rgba(200, 149, 109, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: marker-pulse 2s ease-out infinite;
}
@keyframes marker-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* 弹层 */
.map-popup {
  font-family: var(--font-sans);
  padding: 4px 2px;
  min-width: 200px;
}
.map-popup strong {
  display: block;
  color: #14110F;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.map-popup p {
  color: #555;
  font-size: 13px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.popup-phone {
  display: inline-block;
  background: #C8956D;
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.popup-phone:hover { background: #B07A50; }

/* 暗色主题覆盖（Leaflet 默认偏白） */
.leaflet-container { background: #1a1714; }
.leaflet-popup-content-wrapper {
  background: #fff;
  color: #14110F;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.leaflet-popup-tip { background: #fff; }
.leaflet-control-attribution {
  background: rgba(20, 17, 15, 0.7) !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: #C8956D !important;
}
.leaflet-control-zoom a {
  background: var(--bg-2) !important;
  color: var(--cream) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-3) !important;
}

.map-info {
  background: var(--bg-2);
  padding: 40px 36px;
  display: flex;
  align-items: center;
}
.map-info-inner { width: 100%; }
.map-info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.map-address {
  font-size: 14px;
  color: var(--white-60);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.map-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.map-actions .btn-primary,
.map-actions .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
  text-decoration: none;
}
.map-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.map-tips li {
  font-size: 13px;
  color: var(--white-60);
  line-height: 1.6;
}
.map-tips li a {
  color: var(--warm);
  text-decoration: none;
  font-weight: 500;
}
.map-tips li a:hover { color: var(--amber); }

/* 响应式 */
@media (max-width: 1024px) {
  .wechat-feature-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .wechat-qr-box { display: flex; flex-direction: column; align-items: center; }
  .three-ways-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .wechat-sticky-inner { flex-direction: column; text-align: center; }
  .map-wrap { grid-template-columns: 1fr; }
  .leaflet-map { height: 360px; }
  .map-info { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .wechat-qr-frame img { width: 240px; height: 256px; }
  .wechat-feature { padding: 60px 0; }
  .contact-threeways, .company-info, .contact-promise, .contact-think { padding: 60px 0; }
  .info-grid, .promise-grid { grid-template-columns: 1fr; }
  .think-inner { padding: 32px 24px; }
  .wechat-sticky-inner { padding: 24px; }
}