/* 浮动框样式 
#floating-box {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 10%;
    aspect-ratio: 1;  保持浮动框为正方形 
    background: #fff;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    cursor: grab;
}

#floating-box:active {
    cursor: grabbing;
}

/* 浮动框头部样式 
#box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    font-weight: bold;
    cursor: move;
    user-select: none; /* 禁止选中文字 
}*/
/*
#close-button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

#close-button:hover {
    color: #ff0000;
}

 浮动框内容区域 
#box-content {
    width: 100%;
    height: calc(100% - 30px);  减去 header 的高度 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#box-content img {
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}
*/


.float-box {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 15%;
    background-color: #fff;
    z-index: 9999;

    aspect-ratio: 1.1; /* 保持浮动框为正方形 */
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }

  .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    font-weight: bold;
    cursor: move;
}

 .close-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
  }

 .image-slider {
    width: 100%;
    height: 90%;
    overflow: hidden;
  }

 .image-slider img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    cursor: pointer;
  }

  #image-description {
    margin:0 0 0; /* 与图片分隔一些距离 */
    height: 10%;
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
}