﻿/* CSS Document */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory; /* 可选，增强跟手感 */
}
.text-shadow { text-shadow:0 2px 4px rgba(0,0,0,0.3); }
        .scroll-smooth { scroll-behavior:smooth; }
        .bg-blur { backdrop-filter:blur(8px); }
        body { scroll-behavior:smooth; }
		
        button {
    outline: none;
}
        
        .icon-light { font-weight:100; font-family:'FontAwesome'; }
		


        /* 地图弹窗样式 */
        .map-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 9999; padding: 20px; max-width: 420px; width: 90%;display: none;
        }
        .map-modal.active { display: block; }
        .map-modal h4 { font-size: 16px; font-weight: bold; margin-bottom: 15px; text-align: center; color: #2C3E50; }
        .map-options { display: flex; flex-direction: column; gap: 10px; }
        .map-option { padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s ease; }
        .map-option:hover { background: #f8fafc; border-color: #0088CC; }
        .map-option i { font-size: 20px; }
        .map-option .tencent { color: #00BFFF; }
        .map-option .amap { color: #66BB6A; }
        .map-option .baidu { color: #FF5722; }
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 9998; display: none; }
        .modal-overlay.active { display: block; }
        .close-modal { text-align: center; margin-top: 15px; color: #666; font-size: 14px; cursor: pointer; }
        .close-modal:hover { color: #0088CC; }
        
        /* 搜索联想下拉样式 */
        .search-suggestions {
            position: absolute; top: 100%; left: 0; right: 0; background: white;
            border-radius: 0 0 12px 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            z-index: 100; max-height: 320px; overflow-y: auto; display: none;
        }
        .search-suggestions.active { display: block; }
        .suggestion-item { padding: 10px 12px; cursor: pointer; transition: background 0.2s ease; }
        .suggestion-item:hover { background: #e6e6e6; }
        .search-icon-btn {
            position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
            background: transparent; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
        }
        .search-icon-btn:hover i { color: #0088CC; }
        
        /* 分享弹窗样式 */
        .share-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 9999; padding: 20px; width: 320px; display: none;
        }
        .share-modal.active { display: block; }
        .share-modal h4 { font-size: 16px; font-weight: bold; margin-bottom: 20px; text-align: center; color: #2C3E50; }
        .share-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
        .share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; }
        .share-option:hover { transform: scale(1.05); }
        .share-option i { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; }
        .copy { background-color: #0088CC; }
        .share-close { text-align: center; margin-top: 20px; color: #666; font-size: 14px; cursor: pointer; }
        .share-close:hover { color: #0088CC; }
        
        /* 移动端底部导航 */
        .mobile-bottom-nav {
            position:fixed; bottom:0; left:0; right:0; background:white;
            box-shadow:0 -2px 10px rgba(0,0,0,0.05); z-index:20; display: flex;color:#2C3E50;
        }
        .mobile-bottom-nav a {height:52px;flex:1; text-align:center; padding:6px 0; font-size:12px;  transition:color 0.2s ease;display: flex;justify-content: center;align-items: center;flex-direction: column;gap: 4px; font-weight: 600;}.mobile-bottom-nav a span {line-height: 1;margin-top: 4px;}.mobile-bottom-nav i {height:23px;}
        @media (min-width: 768px) { .mobile-bottom-nav { display:none; }}
		@media (max-width: 1024px) {#messageBtn {position: fixed;bottom: 65px !important;}}
		@media (min-width: 1024px) {.show-tu{flex: 1 1 0; min-height: 0;}}
		 /* 留言弹窗样式 */
    #messageModal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: flex !important;
      align-items: center;
      justify-content: center;
      z-index: 999999;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(3px);
    }
    
    /* 弹窗隐藏状态 */
    #messageModal.hidden-modal {
      display: none !important;
    }
    
    /* 弹窗显示状态 */
    #messageModal:not(.hidden-modal) {
      display: flex !important;
    }
    
    /* 弹窗内容容器 */
    .modal-container {
      background: white;
      border-radius: 1rem;
      width: 90%;
      max-width: 38rem;
      margin: 1rem;
      padding: 1.5rem;
      transition: transform 0.25s ease;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
    
    /* 留言按钮样式 */
    #messageBtn {
      position: fixed;
	  
      bottom: 150px;
      
      width: 3rem;
      height: 3rem;
      background-color: #0088CC;
      color: white;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
      cursor: pointer;
      z-index: 99;
      border: none;
      transition: all 0.2s ease;
    }
    #messageBtn.page-btn {
  background-color: #666;
}
    #messageBtn:hover {
      background-color: #0077b3;
      transform: scale(1.08);
    }
    
    #messageBtn:active {
      transform: scale(0.96);
    }
		/* 留言弹窗响应式微调 */
		
      .modal-container {
        margin: 1rem;
        padding: 1.25rem;
      }
        .point-icon { object-fit: cover; }
	/* 放大图片 */	
		.img-preview-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.92);
  display: none;
  /* 核心：弹性垂直水平居中 */
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.img-preview-mask.active {
  display: flex;
}

.img-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-preview-img {
  /* 图片最大不超出屏幕可视区域 */
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

/* 关闭按钮固定在右上角 */
.img-preview-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.img-preview-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}