
  .flip-card {
    aspect-ratio: 1;
    perspective: 1000px;
  }

  .flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: absolute;
  }

  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    top: 0;
  }

  .flip-card-back {
    transform: rotateY(180deg);
    background: #f8f9fa;
  }

  .video-card {
    position: relative;
    aspect-ratio: 16/9;
    background: #fffdfd;
  }

  /* 添加视频加载状态指示 */
  .video-card.loading::after {
    content: "加载中...";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* 添加错误状态提示 */
  .video-card.error .video-playbtn {
    background: #ff4757;
  }

  .video-card.error::after {
    content: "视频加载失败";
    color: #ff4757;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .video-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .video-playbtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
  }

  .video-card:hover .video-playbtn {
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
  }

  #mediaGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
  }
/* #bigimageSelect {
     margin-bottom: 10px; 
     width: 80%; 
} */



.openseadragon-overlay {
    pointer-events: auto !important;
    /* 允许穿透到标记元素 */
}


.hotspot-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: red;
    transition: transform 0.2s;
    cursor: pointer;
    opacity: 0.7;
    position: absolute;
    z-index: 9999;
    pointer-events: auto;
    /* 启用点击事件 */
}


.hotspot-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

#hotspotList {
    position: fixed;
    left: 20px;
    top: 30px;
    width: 300px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow-y: auto;
    padding: 15px;
    display: none;
    transition: transform 0.3s ease;
}

#hotspotList.collapsed {
    transform: translateX(-320px);
}



#toggleHotspotList {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 10001;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}


#toggleHotspotList::after {
    content: attr(data-count);
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-size: 0.8em;
}


.flip-card {
    width: 33.3%;
    height: 300px;
    /* position: relative; */
    padding: 5px;
    box-sizing: border-box;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    /* transform-style: preserve-3d; */
    /* position: absolute; */
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #f8f9fa;
}

.video-card {
    position: relative;
    aspect-ratio: 16/9;
    background: #fffdfd;
}

/* 添加视频加载状态指示 */
.video-card.loading::after {
    content: "加载中...";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 添加错误状态提示 */
.video-card.error .video-playbtn {
    background: #ff4757;
}

.video-card.error::after {
    content: "视频加载失败";
    color: #ff4757;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-playbtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover .video-playbtn {
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

#mediaGrid {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}






/* 重构 */
body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #f7f8fa;
}


.container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.nav-box {
    width: 100%;
    height: 50px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    position: absolute;
    z-index: 99999;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-box img {
    width: 20px;
    margin-right: 10px;
}

.nav-box>div {
    display: flex;
    align-items: center;
}

.nav-box select {
    width: 250px;
    padding: 6px 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar {
    width: 260px;
    height: calc(100% - 65px);

    background: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 99999;
    transition: transform 0.3s;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s ease;
}

.sidebar .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
}
.hotPoiList {
    flex: 1;
    overflow-y: auto; /* 垂直滚动条 */
    padding-right: 8px; /* 避免滚动条遮挡内容 */
  }
.sidebar .hotPoiList {
    width: 100%;
    height: calc(100% - 50px);
    padding: 10px 0;
}

.sidebar-content {
    width: 100%;
    height: calc(100% - 50px);
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
}

.side-flag {
    width: 20px;
    align-self: flex-end;
    cursor: pointer;
}

.show-main {
    height: calc(100% - 65px);
    background-color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
    transition: width 0.3s ease;
}



#viewer {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
    margin-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}
/* 图片最大宽度限制 */
.openseadragon-canvas img {
    max-width: 100%;
    height: auto !important;
  }

#viewer canvas {
    pointer-events: none !important;
}

.active {
    background-color: #f0f0f0;
    color: #2b65e1;
}

.hotspot-item:hover {
    background-color: #f0f0f0;
    color: #2b65e1;
}

#detailModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    /* padding: 20px; */
    width: 80%;
    height: 80%;
    overflow: hidden;
    z-index: 999999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

    flex-direction: column;
}

#detailModal .closeBtn {
    width: 25px;
    height: 25px;
    align-self: flex-end;
    text-align: center;
    margin-bottom: 12px;
}

.empty {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 20px;
    color: #c2c2c2;
}

#hotspotsContainer {
    font-size: 14px;
}

#video-card img {
    width: 30px;
    height: 30px;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 40% !important;
    height: 60% !important;
}

  
  .coordinates {
    font-size: 0.9em;
    color: #666;
  }
  
  .no-coords {
    color: #999;
    font-style: italic;
  }
  
  .empty {
    color: #999;
    text-align: center;
    display: block;
    padding: 1em;
  }
  /* CSS 样式 */
.hotspot-item.active {
    background: #f0f8ff;
    border-left: 4px solid #1890ff;
  }
  
  .hotspot-item:hover {
    background: #f5f5f5;
  }