/* --- 1. 缩略图样式 (覆盖原本 blogstyle.css 中的 img 设置) --- */
.contentback img.thumbnail-img {
    float: right; /* 靠右浮动 */
    max-width: 120px !important; /* 缩略图宽度，你可以随意调整 */
    height: auto !important;
    margin: 5px 0 10px 15px !important; /* 左侧和下方留出空隙，防止文字贴太紧 */
    border-radius: 6px;
    cursor: zoom-in; /* 鼠标变成放大镜，提示可点击 */
    display: block !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contentback img.thumbnail-img:hover {
    transform: scale(1.05); /* 鼠标悬浮时微微放大 */
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.4);
}

/* 清除浮动，防止图片比文字长时溢出到下一段 */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* --- 2. 放大查看的灯箱 (Modal) 样式 --- */
#image-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 18, 38, 0.9); /* 使用你主题的深蓝色作为背景，带半透明 */
    backdrop-filter: blur(8px); /* 优雅的背景毛玻璃效果 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal.show {
    display: flex;
    opacity: 1;
}

#image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    object-fit: contain; /* 保证图片比例正常显示 */
    cursor: zoom-out; /* 提示点击缩小/关闭 */
}