/* ===== 导览地图样式 ===== */

/* 导览区域 */
.tour-section {
    padding: 20px 0;
}

.tour-header {
    text-align: center;
    padding: 20px 15px;
}

.tour-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.tour-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 地图容器 */
.tour-map-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: #f0f4f8;
    min-height: 500px;
}

.tour-map-container {
    position: relative;
    width: 100%;
    cursor: grab;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.tour-map-container:active {
    cursor: grabbing;
}

.tour-base-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.tour-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 12px;
}

/* 热点标记 */
.hotspot-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hotspot-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

/* 热点图标点 */
.hotspot-marker.marker {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.9);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hotspot-marker.marker i {
    color: #fff;
    font-size: 14px;
}

/* 热点矩形区域 */
.hotspot-marker.rect {
    background: rgba(33, 150, 243, 0.2);
    border: 2px dashed rgba(33, 150, 243, 0.6);
    border-radius: 4px;
    transition: background 0.2s;
}

.hotspot-marker.rect:hover {
    background: rgba(33, 150, 243, 0.35);
}

/* 脉冲动画 */
.hotspot-marker.pulse-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    opacity: 0.6;
    animation: hotspotPulse 2s ease-out infinite;
}

@keyframes hotspotPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* 悬浮提示卡片 */
.hotspot-tooltip {
    position: fixed;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}

.hotspot-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.hotspot-tooltip img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.hotspot-tooltip.no-image img {
    display: none;
}

.hotspot-tooltip h6 {
    color: #1a3a5c;
    font-weight: 600;
    margin-bottom: 4px;
}

.hotspot-tooltip p {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 详情面板 */
.detail-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-panel.open {
    right: 0;
}

.detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.detail-panel-header h5 {
    color: #1a3a5c;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.detail-panel-body {
    padding: 24px;
}

.detail-panel-body .detail-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.detail-panel-body .detail-content {
    line-height: 1.8;
    color: #333;
}

.detail-panel-body .detail-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
}

.detail-panel-body .detail-video {
    width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.detail-panel-body .detail-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.detail-panel-body .detail-images-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-panel-body .detail-images-grid img:hover {
    transform: scale(1.03);
}

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 缩放控制 */
.zoom-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 30;
}

.zoom-controls .btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 统计区域 */
.stats-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
    margin-top: 30px;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* 响应式 */
@media (max-width: 768px) {
    .tour-title {
        font-size: 1.3rem;
    }
    .tour-map-wrapper {
        margin: 0 10px;
        border-radius: 8px;
        min-height: 300px;
    }
    .hotspot-tooltip {
        width: 200px;
    }
    .detail-panel {
        width: 100%;
        right: -100%;
    }
    .stat-number {
        font-size: 1.6rem;
    }
}
