/* 右侧内容区 */
body { overflow: hidden; }
.content-area {
    width: 85%;
    margin-left: 15%;
    min-height: 100vh;
    padding: 0px;
    background: #ffffff;
    overflow: hidden;
}
/* 网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    height: calc(100vh - 60px); /* 减去padding */
}
.grid-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* 修改.image-box样式 */
.image-box {
    width: 100%;
    height:  calc(100% - 45px); /* 减去按钮高度 */
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative; /* 新增定位上下文 */
    overflow: hidden; /* 自动显示滚动条 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新增图片样式规则 */
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 关键属性 */
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    

}
/* 悬停缩放效果 */
.image-box:hover img {
    transform: scale(1.2);
    cursor: zoom-in;
    }

.image-box.loading::after {
    content: "加载中...";
    position: absolute;
    color: #666;
}


/* 按钮样式 */
.action-btn {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    text-align: center; /* 新增居中属性 */
    margin: 0 auto; /* 新增自动外边距 */


}
.action-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}
.half-width-btn {
    width: 50%;
    margin: 0 auto;
}
/* 右侧边栏布局 */
.sidebar-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-item {
     flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
    
    /* 新增内容控制 */
    min-height: 0; /* 关键属性：允许内容压缩 */
    overflow: auto; /* 自动显示滚动条 */
    word-wrap: break-word; /* 允许单词换行 */    
    line-height: 1;

}

/* 隐藏默认文件输入 */
.hidden-input {
    display: none;
}

/* 基础样式 */


.checkbox-item {
  display: block;
  margin: 20px 0;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

