* {
    margin: 0;
    padding: 0;
    list-style: none;
}
.input-with-select .el-input-group__prepend {
    background-color: var(--el-fill-color-blank);
}


body{
    background-color: #f6f6f6;
}



.file_body{
    padding-right: 2%;
    padding-left: 2%;
}
.file_headers{
    width:100%;
    height:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* background-color: #ffa71a; */

}
.el-tabs__nav-wrap::after {
    position: static !important; /* 取消固定定位 */
    background-color: transparent !important; /* 可选：透明化 */
}
/* 全局样式或组件内带作用域穿透 */
.el-tabs__item{
    font-weight: bold !important; /* 强制加粗 */
}

/* Tab禁用状态样式 */
.el-tabs.is-disabled .el-tabs__item {
    color: #c0c4cc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.el-tabs.is-disabled .el-tabs__item:hover {
    color: #c0c4cc !important;
}

.el-tab-pane.is-disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Loading状态下的Tab样式 */
.file-type-tabs.loading-disabled .el-tabs__item {
    color: #c0c4cc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease;
}

/* 文件详情弹窗样式 */
.file-detail-dialog {
    --el-dialog-border-radius: 12px;
}

.file-detail-content {
    max-height: 50vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 20px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    border-bottom: 2px solid #409EFF;
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 500;
    color: #606266;
    font-size: 13px;
    margin-bottom: 4px;
}

.detail-item span {
    color: #303133;
    font-size: 14px;
    word-break: break-all;
    line-height: 1.4;
}

.file-name {
    font-weight: 600;
    color: #409EFF;
}

.file-type {
    padding: 2px 8px;
    background: #e1f3d8;
    color: #67c23a;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.file-size {
    font-weight: 500;
    color: #e6a23c;
}

.file-status {
    padding: 2px 8px;
    background: #f0f9ff;
    color: #409EFF;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.md5-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #f0f0f0;
    padding: 4px 6px;
    border-radius: 4px;
    color: #666;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 8px;
}

.url-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #606266;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .file-detail-dialog {
        --el-dialog-width: 90vw;
    }
    
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .file-detail-dialog {
        --el-dialog-width: 95vw;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: 1;
    }
    
    .url-display {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .url-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .detail-section {
        padding: 14px;
        margin-bottom: 16px;
    }
}

.file-type-tabs.loading-disabled .el-tabs__item:hover {
    color: #c0c4cc !important;
}

.file-type-tabs.loading-disabled .el-tabs__item.is-active {
    color: #409eff !important;
    opacity: 0.8 !important;
}
.body_headers {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 2.25rem;
    margin-top: 30px;
    margin-bottom: 20px;
}
.overlay-content {
    padding: 24px;
    width: 312px;
    border-radius: 28px;
}
.file_headers_start{
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-left: 20px;
    width:900px;

}
.file_headers_fileName_search{
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-right: 100px;

}
.file_headers_operation{
    display: flex;
    flex-direction: row;
    justify-content: start;
    /*margin-right: -890px;*/
}
.file_box{
    width:100%;
    height:100%;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /*margin-top: 20px;*/
    /* padding-left: 30%; */
}
.body_headers{
    width:100%;
    height:100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 2.25rem;
    margin-top: 20px;
}
/* 新增网格容器样式 */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    align-content:flex-start;
    /*margin-left: 60px;*/
    width: 100%;
    height: 750px; /* 增加高度从700px到800px */
    position: relative;
    overflow: auto; /* 使得内容可滚动 */
}
.grid-item span{
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    word-wrap: break-word; /* 允许在单词内换行 */
    overflow-wrap: break-word; /* 同上，现代浏览器推荐使用这个属性别名 */
    white-space: normal; /* 允许换行 */
}
.grid-item img{
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-top:10px;
}
.time_text{
    margin-top:10px;
    font-size: 12px;
    color: #ada9a9;
}
/* 新增网格项目样式 */
.grid-item {
    cursor: pointer; /* 鼠标移入后光标变为手形 */
    background-color: #fff;
    padding: 20px;
    text-align: center;
    width: 100px;
    height: 152px;
    margin-top: 30px;
    line-height: 18px;
    font-size: 12px;
    color: #03081a;
    overflow: hidden;
    word-break: break-all;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}
.grid-item:hover  {
    background-color: #eeebeb;
    border-radius: 5px;
}
.item-cponent{
    display: none;
}
.grid-item:hover .item-cponent {
    font-size: 12px;
    color: #fff;
    display: block; /* 或者其他需要的样式 */
    height: 20px;
    margin-top: -20px;
    position: relative;
    left: 50px; /* 向左移动20像素 */
    top: -145px; /* 向下移动10像素 */
}
.item-cponent-list{
    display: none;
}
.item-cponent:hover .item-cponent-list{
    display: block;
    width:100px;
    position: relative;
    right: 15px;
}
.cponent-item-box{
    height: 100%;
    width:75%;
    margin-top: -10px;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-content: space-between;

}
.cponent-item{
    display: flex;
    flex-direction: row;
    align-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 5px;
    width:100%;
    color:#000;
    position: relative;
    left: 10px; /* 向左移动20像素 */
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 2px 0;
}

.cponent-item:hover {
    background-color: #f5f5f5;
    transform: translateX(2px);
}

/* 下载按钮样式 */
.cponent-item:first-child {
    color: #409EFF;
}

.cponent-item:first-child:hover {
    background-color: #ecf5ff;
    color: #337ecc;
}

/* 文件详情按钮样式 */
.cponent-item:nth-child(2) {
    color: #909399;
}

.cponent-item:nth-child(2):hover {
    background-color: #f4f4f5;
    color: #606266;
}

/* 删除按钮样式 */
.cponent-item:nth-child(3) {
    color: #f56c6c;
}

.cponent-item:nth-child(3):hover {
    background-color: #fef0f0;
    color: #f23030;
}
.el-pagination {
    position: absolute;
    bottom: 0px; /* 距离底部的距离 */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 水平居中偏移修正 */
}
