body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
}

h1 {
    color: #333;
}

.image-map-container {
    position: relative; 
    width: 80%; 
    max-width: 800px; 
    margin: 20px auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-image {
    display: block; 
    width: 100%;
    height: auto; 
    /* 添加背景色以防圖片加載失敗 */
    background-color: #eee;
}

.hotspot {
    position: absolute; 
    width: 55px; 
    height: 55px;
    /* background-color: rgba(255, 0, 0, 0.7); 紅色半透明 */
    /* border-radius: 50%; 使其變圓 */
    cursor: pointer;
    transform: translate(-50%, -50%); 
    transition: transform 0.2s ease; 
}

.hotspot svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2); 
    z-index: 10; 
}

.popup {
    position: absolute;
    display: none; 
    width: 220px; 
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 5px;
    z-index: 100; 
    pointer-events: auto; 
    transform: translate(15px, -50%); 
}

/*
.popup svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}
*/

.popup img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
    border-radius: 3px; 
}

.popup p {
    margin: 0;
    font-size: 14px;
    color: #555;
}