.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.text-item {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-family: var(--font-simple);
    margin-bottom: 1.2em;
}

.text-item .input-group {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 0 12px;
}

.text-item .input-group label {
    min-width: 60px;
    text-align: right;
}

.custom-select {
    display: flex;
    flex: 1;
    position: relative;
}

.custom-select button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 8px;
    height: 40px;
    gap: 0 6px;
    box-shadow: none;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    white-space: nowrap;
}

.select-dropdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 3px 5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 13.7px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.select-dropdown li:hover,
.select-dropdown li[aria-selected="true"] {
    background-color: #f5f5f5;
}

.select-dropdown li .check-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    opacity: 0;
    display: block !important;
}

.select-dropdown li[aria-selected="true"] .check-icon {
    opacity: 1;
}

/*按钮样式*/
.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-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 85%);
    border-width: 0;
    fill: #fff;
}

.btn-green {
    color: #fff;
    background-color: rgba(34, 197, 94, 0.95);
    border-color: #22c55e;
    fill: #fff;
}

.btn-red {
    color: #fff;
    background-color: rgb(242 55 55 / 95%);
    border-color: rgb(255 31 31);
    fill: #fff;
}

/*结果样式*/
.text-result {
    margin-top: 0.6em;
}

.text-result > label {
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-simple);
}

.text-result table td{
    background-color: #fff;
}

.text-result table td:nth-child(1){
    width: 150px;
    text-align: center;
    font-weight: normal;
    background-color: var(--main-bg);
}

.process{
    width: 100%;
    height: 36px;
    background-color: #ddd;
    border-radius: 5px;
}

.process .percentage{
    line-height: 36px;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    background-color: #4caf50;
    float: left;
}

.tips{
    margin-left: -6px;
    margin-top: 3px;
    font-size: 13.5px;
}

/* 关键动画：扩散 + 淡出 */
@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;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .item-input .input-group {
        width: 100%;
    }

    .item-input .input-group label {
        width: fit-content;
        min-width: auto;
        white-space: nowrap;
    }

    .custom-select button{
        height: 32px;
    }

    .text-result table td:nth-child(1){
        width: 90px;
    }

    .process {
        height: 32px;
    }

    .process .percentage{
        height: 32px;
    }

    .table-container table th, .table-container table td{
        padding: 8px 12px;
    }
}