.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    gap: 1.2em;
    flex-direction: column;
}

.tab-group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background-color: var(--main-bg);
    border-radius: 7px;
    padding: 4px;
    gap: 2px;
    margin: 0 auto;
}

.tab-group a {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 13px;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.tab-group a.active {
    background-color: rgb(93 79 248 / 85%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(93, 79, 248, 0.2);
}

.tool-content .item-tools {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/*按钮样式*/
.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-family: var(--font-simple);
}

.btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 0.6s ease-out forwards;
}

.btn svg {
    width: 0.92em;
    height: 0.92em;
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: var(--primary-color);
}

table th {
    font-weight: 600;
    font-size: 14.5px !important;
}

table th, table td {
    border-width: 0 !important;
}

table td .btn-delete {
    color: rgb(242 55 55 / 95%);
    border: solid 1px rgb(255 31 31);
    height: 25px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 4px;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ==================== 文件上传框 ==================== */
.file-upload {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 250px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 15px;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    cursor: pointer;
    position: relative;
}

/* 拖拽时高亮 */
.file-upload.dragover {
    border-color: #5a4df8;
    background-color: #f0edff;
    color: #5a4df8;
}

.file-upload .upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
}

.item-result th,.item-result td{
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-result th:nth-child(1),.item-result td:nth-child(1){
    text-align: center;
    width: 90px;
}

.item-result th:nth-child(6),.item-result td:nth-child(6){
    text-align: center;
    width: 90px;
}

.item-result th:nth-child(2),.item-result td:nth-child(2){
    max-width: 500px;
}

.item-result th:nth-child(4),.item-result td:nth-child(4){
    max-width: 200px;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .file-upload {
        min-height: 180px;
        padding: 10px;
    }

    .upload-prompt > svg {
        width: 50px;
        height: 50px;
    }

    .upload-prompt p {
        text-align: center;
    }

    table td, table th {
        white-space: nowrap !important;
    }
}