.tramping-life-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tramping-life-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.tramping-life-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.tramping-life-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
}

.tramping-btn {
    padding: 6px 20px;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    background: transparent;
    transition: all 0.3s ease;
}

.tramping-btn.active {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#tramping-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

#tramping-map-base,
#tramping-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.zoom-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.zoom-indicator #zoom-value {
    font-weight: 700;
    color: #1890ff;
    margin-left: 4px;
}

.tramping-life-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    /*background: rgba(255, 255, 255, 0.95);*/
    padding: 10px 15px;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-dot.visited {
    background: #52c41a;
}

.legend-dot.plan {
    background: #13c2c2;
}

.legend-dot.wish {
    background: #eb2f96;
}

/* 聚合点相关的样式 */
.legend-item.cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-dot.cluster {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: #fa8c16; /* 橙色表示聚合点 */
}

.tramping-tooltip {
    width: 220px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
}

.tramping-tooltip .tooltip-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.tramping-tooltip .tooltip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tramping-tooltip .tooltip-content {
    padding: 12px;
}

.tramping-tooltip h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.tramping-tooltip ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tramping-tooltip li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tramping-tooltip li:last-child {
    border-bottom: none;
}

.tramping-tooltip a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tramping-tooltip a:hover {
    color: #52c41a;
}

.tramping-tooltip .tooltip-year {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
}

.tramping-tooltip .status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tramping-tooltip .status-tag.wish {
    background: #fef0f0;
    color: #ff4d4f;
}

.tramping-tooltip .status-tag.plan {
    background: #f0f5ff;
    color: #1890ff;
}

.tramping-info-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    overflow: hidden;
    animation: fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 192, 166, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tramping-info-window .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #00c0a6 0%, #00d4aa 50%, #00e8bb 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tramping-info-window .info-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tramping-info-window .info-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tramping-info-window .close-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.tramping-info-window .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tramping-info-window .info-content {
    padding: 16px;
    max-height: 360px;
    overflow-y: auto;
}

.tramping-info-window .info-content h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tramping-info-window .info-content h4::before {
    content: '';
    width: 4px;
    height: 14px;
    background: linear-gradient(180deg, #00c0a6, #00d4aa);
    border-radius: 2px;
}

.tramping-info-window .info-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tramping-info-window .info-content li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.2s ease;
}

.tramping-info-window .info-content li:hover {
    background: #fafafa;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.tramping-info-window .info-content li:last-child {
    border-bottom: none;
}

.tramping-info-window .info-content li img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tramping-info-window .article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tramping-info-window .article-info a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tramping-info-window .article-info a:hover {
    color: #00c0a6;
}

.tramping-info-window .article-year {
    font-size: 11px;
    color: #95a5a6;
    font-weight: 400;
}

@media (max-width: 768px) {
    .tramping-life-header {
        padding: 15px;
    }
    
    .tramping-life-title {
        font-size: 16px;
    }
    
    .tramping-btn {
        padding: 4px 14px;
        font-size: 12px;
    }
    
    #tramping-map-wrapper {
        height: 400px;
    }
    
    .tramping-life-legend {
        bottom: 15px;
        right: 15px;
        gap: 12px;
        padding: 8px 12px;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .legend-dot {
        width: 8px;
        height: 8px;
    }
    
    .tramping-tooltip {
        width: 180px;
    }
    
    .tramping-tooltip .tooltip-image {
        height: 100px;
    }
    
    .tramping-info-window {
        width: 95%;
        max-width: 300px;
    }
    
    .tramping-info-window .info-header {
        padding: 12px 15px;
    }
    
    .tramping-info-window .info-header h3 {
        font-size: 15px;
    }
    
    .tramping-info-window .info-content {
        padding: 14px;
    }
    
    .tramping-info-window .info-content li img {
        width: 48px;
        height: 48px;
    }
}