.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .clean-type {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-content .clean-type li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(20% - 9.6px);
    height: 42px;
    cursor: pointer;
    background-color: #f8f9ff;
    border: solid 1px #ddd;
    color: #575757;
    border-radius: 6px;
    margin-bottom: 0;
    user-select: none;
}

.tool-content .clean-type li.active {
    background-color: #f7f7ff !important;
    border: solid 1px rgb(144 135 255) !important;
    color: rgb(101 88 248) !important;
}

.tool-content .clean-type li.warning {
    background-color: #fffbeb;
    border: solid 1px #ffcf9b;
    color: #d97706;
}

.tool-content .table-container {
    margin-top: 1.2em;
}

.tool-content .table-container th, .tool-content .table-container td {
    border-width: 0;
}

.tool-content .table-container th:nth-child(1), .tool-content .table-container td:nth-child(1) {
    text-align: center;
    width: 100px;
}

.tool-content .table-container th:nth-child(2), .tool-content .table-container td:nth-child(2) {
    width: 160px;
}

.tool-content .table-container th:nth-child(3), .tool-content .table-container td:nth-child(3) {
    text-align: center;
}

.tool-content .table-container tr.warning {
    color: #d97706;
}

/*按钮样式*/
.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.2em;
}

.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-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    /* 清理项：两列铺开，长名称完整显示，不再挤成竖排 */
    .tool-content .clean-type {
        gap: 8px;
    }

    .tool-content .clean-type li {
        width: calc(50% - 4px);
        height: auto;
        min-height: 44px;
        padding: 7px 5px;
        line-height: 1.3;
        font-size: 13px;
        text-align: center;
        word-break: break-all;
    }

    /* 按钮：均分铺开，避免文字被挤压 */
    .tool-content .operate-buttons {
        gap: 8px;
    }

    .tool-content .operate-buttons .btn {
        flex: 1 1 130px;
        height: 40px;
        padding: 0 8px;
        font-size: 14px;
    }

    /* 表格改为卡片式：前三项一行，说明独占一行，避免四列互相挤压 */
    .tool-content .table-container table,
    .tool-content .table-container tbody {
        display: block;
        width: 100%;
    }

    .tool-content .table-container tr:first-child {
        display: none;
    }

    .tool-content .table-container tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 6px 4px;
        margin-bottom: 8px;
    }

    .tool-content .table-container td {
        display: block;
        border: 0;
        padding: 3px 6px;
        font-size: 12px;
        line-height: 1.5;
        word-break: break-word;
    }

    .tool-content .table-container td:nth-child(1) {
        width: 38px !important;
        text-align: center;
        color: #888;
    }

    .tool-content .table-container td:nth-child(2) {
        width: calc(100% - 140px) !important;
        font-weight: 600;
    }

    .tool-content .table-container td:nth-child(3) {
        width: 96px !important;
        text-align: center;
    }

    .tool-content .table-container td:nth-child(4) {
        width: 100% !important;
        color: #666;
    }
}