﻿
#itemCollection {

}
#itemCollection .item {
display: grid;
/*align-items: center;*/
padding: 25px 20px 25px 20px;
grid-template-columns:33% auto 5%;
margin: 5px 0 25px 0;
border-radius: 5px;
border: 1px solid rgba(144,140,230,0.5);
transition: all 0.1s ease; 
transform: translateY(0); 
background: linear-gradient(45deg, rgba(210,215,255,0.5),rgba(212,225,255,0.1),rgba(215,235,255,0.5),rgba(215,235,255,0.5));
box-shadow: 2px 2px 8px rgba(170,180,255,0.5);

}


/* 定义图片样式 */
#itemCollection .item > .left {
min-width:300px;
display: flex; 
align-items: center; /* 垂直方向：所有图片居中对齐 */
justify-content:center;
flex-wrap: nowrap; /* 关键属性：强制不换行（即使容器宽度不够，图片也会挤在一行） */
gap: 20px; /* 可选：图片之间的间距，避免拥挤 */
}
#itemCollection .item .imgsPZ{
    display:flex;
    flex-direction:column;
}
#itemCollection .item   .imgs{
display:flex;
padding:2px;
justify-content:center;
align-items:center;
position:relative;
width:100px;
height:150px;
}
#itemCollection .item   .imgs > img {
position:absolute;
max-width:100%;
max-height:100%;
border:1px solid #CCC;

top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;

object-fit:contain;
transform-origin: center center;
transition: all 0.2s ease;
}
#itemCollection .item   .imgs > img:first-of-type {
top:-10px;
left:-10px;
}

#itemCollection .item  .SizePdfPageCount {
color: rgba(70,100,255,0.8);
padding-top:10px;
font-size:13px;
}


#itemCollection .item > .left img.left {
max-width: 60px;
max-height: 60px;
filter:drop-shadow(1px 1px 2px rgba(70,100,255,0.5));
}
#itemCollection .item > .left img.connection {
max-width:18px;
}
#itemCollection .item > .left img.right {
max-width: 60px;
max-height: 60px;
filter:drop-shadow(1px 1px 2px rgba(70,100,255,0.5));
}




#itemCollection .item   .tools {
position:absolute;
top:5px;
right:5px;
z-index:1000;
display:none;
flex-direction:row;
flex-wrap: nowrap; /* 关键属性：强制不换行（即使容器宽度不够，图片也会挤在一行） */
background:#FFF;
border:1px solid #CCC;
border-radius:5px;
cursor:default;
padding: 5px;
}

#itemCollection   .item .tools   img  {
cursor:pointer;
margin:2px 5px;
outline:1px solid #fff;
border-radius:3px;
width:21px;
height:21px;

}
#itemCollection   .item .tools > img:hover {
outline:1px solid #CCC;
}
#itemCollection   .item .tools > img:active {
outline:1px solid #F0F;
}
#itemCollection   .item .imgs:hover .tools{
display:flex;
}













#itemCollection .item > .middle {
text-align: left;
line-height:2;
color: rgba(70,100,255,0.7);
}
/* 定义进度条样式 */
#itemCollection .item .middle .progress {
margin-top:20px;
display:none;
width: 100%;
height: 5px;
border-radius: 999px;
background-color: #e0e0e0;
overflow: hidden;
position: relative;
}

#itemCollection .item .middle .progress::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 66%;
height:100%;
background: linear-gradient(90deg, RGBA(100,180,250,0), #64b5f6,#64b5f6,#64b5f6,#64b5f6,#64b5f6,#64b5f6, #64b5f6, RGBA(100,180,250,0));
animation: move 15s linear infinite;
}
/* 从左到右的动画 */
@keyframes move {
0% {
transform: translateX(-100%); /* 开始于容器左侧外部 */
}
100% {
transform: translateX(calc(100% + 50%)); /* 结束于容器右侧外部 */
}
}




/* 定义进度条样式 2 */

.loading-icon {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid rgba(33, 150, 243, 0.3);
border-radius: 50%;
border-top-color: #2196f3;
animation: spin 1s ease-in-out infinite;
}

        
@keyframes spin {
to {
transform: rotate(360deg);
}
}



#itemCollection .item .middle .title {
font-size:20px;
min-width: 50px;
margin-bottom:30px;
border: 1px solid transparent;
display: block;
overflow: hidden;
text-overflow: ellipsis;
font-weight:bold;
color: rgba(70,100,255,0.85);
}

#itemCollection .item .middle .title:hover {
}







#itemCollection .item .middle div.password {
color:red;
}
#itemCollection .item .middle div.password input.password {
border: 1px solid rgba(255,0,0,0.8);
color: #f88;
border-radius: 5px;
width: 150px;
height: 22px;
margin:0 10px;
background: #FFF;
}
#itemCollection .item .middle div.password input.submit {
border: 1px solid rgba(255,0,0,0.7);
background: rgba(255,0,0,0.1);
color: rgba(255,0,0,0.9);
border-radius: 3px;
cursor: pointer;
height: 22px;
}
#itemCollection .item .middle div.password input.submit:hover {
background: rgba(255,0,0,0.2);
}

#itemCollection .item .middle input.pageRange, #itemCollection .item .middle input.splitEveryNPages {
border: 1px solid rgba(70,100,255,0.3);
color: rgba(70,100,255,1);
background: #FFF;
border-radius: 5px;
width: 170px;
height: 22px;
margin: 0 10px 0 11px;
padding-left: 7px;
}
#itemCollection .item .middle input.pageRange:focus{
outline: none;
}


#itemCollection .item .middle input.pageRange::placeholder {
color: rgba(70,100,255,0.6);
font-style: italic;
background: #FFF;
}



#itemCollection .item .middle select.selectGeneral {
border: 1px solid rgba(70,100,255,0.3);
border-radius: 5px;
width: 170px;
height: 22px;
margin: 0 10px 0 10px;
background: #FFF;
padding-left: 2px;
}



#itemCollection .item .middle input.error {
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red" width="16" height="16"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>') no-repeat 7px center;
padding-left: 30px; /* 调整 padding 留出图标空间 */
width:80px;
}
#itemCollection .item .middle .divPageRange {
margin-top:25px;
}

#itemCollection .item .middle .errorPageRangeEl{
color:red;
background:rgba(255,0,0,0.08);
}
#itemCollection .item .middle .errorPageRangeEl ul{
padding:10px 10px 10px 25px;
margin:10px;
}
#itemCollection .item .middle .status {
padding: 10px 0;
font-weight:600;
color:green;
font-size:16px;
}


/* 定义删除按钮样式 */
#itemCollection .item .operate {
display: flex;
justify-content: space-between;
align-items: center;
}

#itemCollection .item .operate .delete-button {
background-color: #f69;
color: #FFF;
border: none;
border-radius: 5px;
padding: 2px 10px;
cursor: pointer;
text-align: center;
font-size: 14px;
}




/*   图片预览功能 */
/* 模态层 */
.modal-overlay {
position: fixed; inset: 0;flex-direction:column;
display: none; align-items: center; justify-content: center;
background: rgba(50,50,50,0.85); z-index: 9999;
}
.modal-overlay.open { display: flex; }

/* 内部容器 */
.modal-inner {
max-width: 95%;
max-height: 90%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

.modal-inner img {
min-width: 50vh;      /* 宽度最小  */
max-width: 95%;      /* 最大不超过 95% 宽度 */
max-height: 90vh;    /* 高度不超过屏幕高度的 95% */
width: auto;         /* 根据高度缩放时，保持宽高比 */
height: auto;        /* 根据宽度缩放时，保持宽高比 */
object-fit: contain; /* 确保完整显示，留空白也不裁剪 */
border-radius: 6px;
box-shadow: 0 10px 30px rgba(0,0,0,.5);
}


.modal-close {
position: fixed;
top: 50%; transform: translateY(-50%);
background: rgba(255,255,255,0.85);
border: none; width:60px; height:60px; border-radius: 10px;
cursor: pointer; font-size: 50px; display: grid; place-items: center;
box-shadow: 0 4px 12px rgba(0,0,0,.25);
z-index: 10000;top: 30px; right: 30px; transform: none;
}

.modal-close:hover{
color:#F00;
background:#FAA;
}

.modal-close:active{
color:#FFF;
background:#F00;
}


/* 图片说明文字 */
.modal-caption {
margin-top: 5px;
margin-bottom:40px;
color: #FFF;
font-size: 14px;
text-align: center;
text-shadow: 1px 1px 2px #000;
line-height:1.8;

}


.modal-operate {
position:absolute;
background: #FFF;
border-radius: 5px;
text-align: center;
display: flex;
align-items:center;
overflow:hidden;
bottom:10px;
padding:0 20px;
}
.modal-operate button, .modal-operate input {
width:45px;
height: 35px;
display: flex;
align-items: center;
text-align:center;
margin:0 1px;
border: 0;
cursor:pointer;
}

.modal-operate button:hover{
color:#F00;
}
.modal-operate button:active {
background:#F00;
color:#FFF;
}