.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

/*输入框*/
.item-input {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 0.8em;
}

.item-input .input-group {
    display: flex;
    align-items: center;
    justify-content: start;
    border: solid 1px #ddd;
    background-color: #f8f8f8;
    width: calc(25% - 0.6em);
}

.item-input .input-group > label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100%;
    font-size: 13px;
    text-align: center;
}

.item-input .input-group .input-text {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-left: solid 1px #ddd;
    background-color: #fff;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.item-input .input-group .input-text:focus {
    box-shadow: inset 0 0 5px 3px rgb(228 226 255 / 60%);
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2em;
    flex-wrap: wrap;
    gap: 10px;
}

.text-result {
    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: #3498db;
    border-color: #3498db;
    fill: #fff;
    font-size: 14px;
}

.btn-green {
    color: #fff;
    background-color: #27ae60;
    border-color: #27ae60;
    fill: #fff;
    font-size: 14px;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.salary-slip {
    margin-top: 1.2em;
}

.salary-tit {
    background-color: #f8f8f8 !important;
    font-size: 14px;
}

.salary-bold {
    font-weight: bold !important;
}

.salary-slip table {
    width: 100%;
    min-width: 1000px;
    border: 1px solid #333;
    border-collapse: collapse;
    font-size: 12.5px;
}

.salary-slip table th {
    background: #f0f0f0;
    font-weight: normal;
}

.salary-slip table th, .salary-slip table td {
    border: 1px solid #333;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle; /* 让文字在单元格内垂直居中，从根源解决偏移 */
    line-height: normal;    /* 重置行高为默认值 */
}

@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%;
    }

}