@charset "utf-8";

body, #book-wrapper, .page, img, #image-overlay, .overlay-hint {
    user-select: none;
    -webkit-user-select: none; 
    outline: none;            
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background: #f0f0f0; 
    margin: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    overflow: hidden; 
    font-family: sans-serif; 
}

#book-wrapper { position: relative; width: 100%; max-width: 1200px; height: 800px; z-index: 1; }

.page { background: #ffffff !important; overflow: hidden; }

.page img { 
    width: 100%; height: 100%; 
    object-fit: contain; 
    cursor: zoom-in;
}

.overlay-hint {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2000000;
    white-space: nowrap;
    pointer-events: none;
}

/* 針對手機版的終極放大設定 */
@media (max-width: 767.98px) {
    body { background: #ffffff; }
    #book-wrapper { 
        height: 100vh !important; 
        width: 100vw !important; 
    }
    .overlay-hint {
        top: 10px;
        padding: 5px 12px;
        font-size: 11px;
    }
    /* 手機版大圖預覽：減少上下 padding，讓圖片更大 */
    #image-container { 
        padding: 60px 0 !important;
    }
}

#image-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); z-index: 1000000; overflow: auto;
}

#image-container { 
    display: block; text-align: center; width: 100%; padding: 100px 0; 
    min-height: 100vh; cursor: grab; 
}

#large-img { 
    width: 85%; height: auto; display: inline-block; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.15); 
    transition: width 0.05s linear;
}
