/* 弹窗内容 */
.pupknow{
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 10px #333e51;
    position: absolute;
    left: 20%;
    top: 10%;
    z-index: 1001;
}
.pup_genknow{
    width: 1000px;
    height: auto;
    left: calc(50% - 525px);
    top: calc(45% - 313px);
}
.knowblock .puptit1{
    font-size: 22px;
    color: #4b6cb7;
    font-weight: bold;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
}
.knowblock .puptit1 span{
    font-size:15px;
    color:#999999;
}
.knowblock .puptit1 i{
    float: right;
    font-size: 26px;
    color: #cccccc;
    margin: 5px 0 0 0;
    cursor: pointer;
}
.knowblock .pupcon{
    padding: 15px 40px 20px 40px;
    height:calc(100% - 35px);
}
.knowblock .pupcon_operate{
    font-size: 15px;
    height: 36px;
	line-height: 36px;
	text-align: left;
	margin: 5px 0 15px 0; 
}
.knowblock .pupcon_operate input{
	width: 280px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #f0f2f6;
    background-color: #f0f2f6;
    border-radius: 5px;
    padding-left: 8px;
    font-size: 15px;
    color: #333333;
}
.knowblock .pupcon_operate input:focus{
    border: 1px solid #0e84ef;
    outline: none;
}
.knowblock .pupcon_operate > a{
    display: inline-block;
	padding: 0 18px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 5px;
    color: #ffffff;
    background-color: #448aca;
    margin-left: 5px;
}
/* 知识库文件弹窗 */
.knowblock .fileblock{
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #ffffff;
}
.knowblock .controls {
    margin-bottom: 15px;
}
.knowblock .actions {
    /* display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end; */
    display: inline-block;
    float: right;
}

.knowblock .btn {
    background: #4b6cb7;
    color: white;
    border: none;
    padding: 4px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;

    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 120px;

}

.knowblock .btn:hover {
    background: #3a5ca5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.knowblock .btn i {
    font-size: 16px;
}

.knowblock .btn.add {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.knowblock .btn.delete {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}
.knowblock .search-box {
    width: 330px;
    position: relative;
    display: inline-block
}

.knowblock .search-box input {
    width: calc(100% - 65px);
    padding: 6px 15px 6px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.knowblock .search-box input:focus {
    border-color: #4776E6;
    outline: none;
}

.knowblock .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    -webkit-text-stroke: .5px white;
    /* 外边描框颜色, px值越大，描边越粗，内部越细 */
}

.knowblock .tree-container {
    background-color: #f9f9ff;
    border-radius: 10px;
    padding: 15px 20px;
    height: calc(100% - 100px);
    overflow-y: auto;
    border: 1px solid #eee;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.knowblock .tree {
    list-style: none;
    padding-left: 0;
}

.knowblock .tree-node {
    margin-bottom: 8px;
}

.knowblock .node-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.knowblock .node-header:hover {
    background-color: #f0f4ff;
    border-color: #c2d1ff;
}

.knowblock .node-header > i {
   font-size: 20px;
    margin-right:5px;
    color: #4776E6;
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
    -webkit-text-stroke: 1px white;
    /* 外边描框颜色, px值越大，描边越粗，内部越细 */
}

.knowblock .node-header.collapsed i.fa-chevron-down {
    transform: rotate(-90deg);
}

.knowblock .checkbox {
    width: 12px;
    height: 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.knowblock .checkbox.checked {
    background: #4776E6;
    border-color: #4776E6;
}

.knowblock .checkbox.partial {
    background: #9ab7f3;
    border-color: #9ab7f3;
}

.knowblock .checkbox.checked::after,
.knowblock .checkbox.partial::after {
    content: '';
    display: block;
    width: 12px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.knowblock .checkbox.partial::after {
    width: 10px;
    height: 2px;
    transform: none;
    border: none;
    background: white;
    margin-top: 0;
}

.knowblock .node-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.knowblock .node-count {
    background: #eef4ff;
    color: #4776E6;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.knowblock .children {
    list-style: none;
    padding-left: 45px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: none;
}

.knowblock .children.expanded {
    display: block;
}

.knowblock .child-node {
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 35px;
    margin-top: 5px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.knowblock .child-node:hover {
    background-color: #f8fbff;
    border-color: #d6e4ff;
}

.knowblock .child-title {
    font-size: 15px;
    color: #555;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.knowblock .selected-items {
    margin-top: 25px;
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #dbe9ff;
}

.knowblock .selected-items h3 {
    color: #4776E6;
    margin-bottom: 15px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.knowblock .selected-items h3 i{
    margin-top: 4px;
}
.knowblock .selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 42px;
    overflow: auto;
}

.knowblock .selected-item {
    background: white;
    border: 1px solid #dbe9ff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.knowblock .selected-item i {
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.knowblock .selected-item i:hover {
    transform: scale(1.2);
}

.knowblock .empty-selection {
    color: #888;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.knowblock .status-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 14px;
    color: #4776E6;
    font-weight: 500;
}
.modalknow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.knowblock .modal-content1 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
}

.knowblock .modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.knowblock .modal-header h2 {
    color: #4b6cb7;
    font-size: 22px;
    margin-top: 0px;
}

.knowblock .modal-body {
    margin-bottom: 25px;
}

.knowblock .form-group {
    margin-bottom: 20px;
}

.knowblock .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.knowblock .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.knowblock .form-group input:focus {
    border-color: #4b6cb7;
    outline: none;
}

.knowblock .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.knowblock .btn-modal {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.knowblock .btn-modal.primary {
    background: #4b6cb7;
    color: white;
}

.knowblock .btn-modal.secondary {
    background: #e0e0e0;
    color: #333;
}

.knowblock .btn-modal:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.knowblock .node-actions {
    display: flex;
    gap: 12px;
    margin-left: 15px;
}

.knowblock .node-btn {
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.knowblock .node-btn:hover {
    background: #f0f5ff;
    color: #4b6cb7;
}

.knowblock .node-btn.add-file {
    color: #4776E6;
}

.knowblock .node-btn.add-file:hover {
    background: #eafaf1;
}

.knowblock .node-btn.delete-folder,
.node-btn.delete-file {
    color: #e74c3c;
}

.knowblock .node-btn.delete-folder:hover,
.node-btn.delete-file:hover {
    background: #fdecea;
}

.knowblock .child-actions {
    display: flex;
    gap: 12px;
}

.knowblock .file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.knowblock .file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.knowblock .file-upload-label {
    display: block;
    padding: 12px 15px;
    background: #f8faff;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    text-align: center;
    color: #777;
    transition: all 0.3s;
    cursor: pointer;
}

.knowblock .file-upload-label:hover {
    background: #eef3ff;
    border-color: #a8c0ff;
}

.knowblock .file-upload-label i {
    margin-right: 8px;
}

.knowblock .file-preview {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    background: #f8faff;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.knowblock .file-preview.active {
    display: block;
}

.knowblock .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.knowblock .file-info:last-child {
    border-bottom: none;
}

.knowblock .file-icon {
    font-size: 24px;
    color: #4b6cb7;
}

.knowblock .file-details {
    flex: 1;
}

.knowblock .file-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.knowblock .file-size {
    color: #777;
    font-size: 12px;
}

.knowblock .remove-file {
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

.knowblock .files-count {
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

.knowblock .folder-structure {
    background: #f5f9ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px dashed #c2d6ff;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.knowblock .folder-structure.active {
    display: block;
}

.knowblock .folder-item {
    padding: 5px 10px;
    margin-bottom: 5px;
    background: #e8f0ff;
    border-radius: 5px;
    font-size: 14px;
}
.knowblock .pupfoot{
    margin-top: 10px;
    text-align: right;
}
.knowblock .pup_stb{
    display: inline-block;
    width: 110px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 8px;
    border:1px solid #d2d2d2;
}
.knowblock .pup_stb:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.knowblock .pup_stb_sure{
    background:#1d6cfd ;
    color: #fff;
}
.knowblock .pup_stb_sure:hover{
    background:#135be1;
}


@media (max-width: 768px) {
    .knowblock .controls {
        grid-template-columns: 1fr;
    }

    .knowblock .actions {
        justify-content: flex-start;
    }

    .knowblock .children {
        padding-left: 40px;
    }

    .knowblock .header,
    .knowblock .content {
        padding: 20px;
    }

    .knowblock .btn {
        padding: 10px 15px;
        min-width: auto;
    }

    .knowblock .node-actions {
        gap: 8px;
    }
}
