.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .links-tool {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-simple);
}

.tool-content .links-tool label {
    display: block;
    margin-top: -5px;
}

.tool-content .links-tool label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 5px;
    margin: 0 4px;
    color: #f84d4d;
    border-radius: 4px;
    background-color: rgba(248, 77, 77, 0.1);
    border: solid 1px rgba(248, 77, 77, 0.4);
    font-size: 13px;
    font-family: var(--font-family);
}

.tool-content .links-tool .links-search{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: relative;
}

/*按钮样式*/
.btn {
    outline: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    padding: 0 18px 0 15px;
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border: 1px solid rgb(93 79 248 / 95%);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: var(--font-simple);
    position: absolute;
    top: 0;
    right: 0;
}

.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;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/*文本框样式*/
.input-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 150px;
    width: 100%;
    height: 41px;
    line-height: 41px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.input-text:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), /* 主题色内影 */ 0 0 0 2px rgba(90, 77, 248, 0.1); /* 外发光点缀（可选） */
}

.links-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.links-result .links-tips {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 6px;
    font-weight: 500;
}

.links-result .links-tips .links-type{
    margin-left: auto;
    font-size: 14.5px;
    margin-right: 3px;
}

.links-result .links-tips .links-type input + label {
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #999;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 7px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    margin-left: 15px;
    margin-right: 3px;
    transform: translateY(2.5px);
}

.links-result .links-tips .links-type input:checked + label:after {
    content: ' ';
    width: 10px;
    height: 10px;
    border-radius: 50px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgb(124 112 255 / 95%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.links-result .links-tips .links-type label{
    cursor: pointer;
}

.links-result .links-tips .links-export{
    cursor: pointer;
    color: #f00;
    display: none;
}

.links-result .links-con {
    overflow-x: auto;
    width: 100%;
}

.links-result .links-con table {
    border-collapse: collapse;
    width: fit-content;
    min-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #dfdfdf; /* 模拟外边框 */
}

.links-result .links-con table tr:nth-child(odd) {
    background-color: var(--main-bg);
}

.links-result .links-con table tr th, .links-result .links-con table tr td {
    border: 1px solid #dfdfdf;
    padding: 10px 12px;
    font-size: 14.5px;
    white-space: nowrap;
    font-family: var(--font-simple);
    text-align: left;
}

.links-result .links-con table tr th:nth-child(1),.links-result .links-con table tr td:nth-child(1) {
    width: 70px;
    text-align: center;
}

.links-result .links-con table tr th:nth-child(2),.links-result .links-con table tr td:nth-child(2) {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.links-result .links-con table tr th:nth-child(4),.links-result .links-con table tr td:nth-child(4) {
    width: 100px;
    text-align: center;
}

.links-result .links-con table tr th:nth-child(5),.links-result .links-con table tr td:nth-child(5) {
    width: 90px;
    text-align: center;
}

.links-result .links-con table tr td:nth-child(3) a {
    color: #2f6cff;
    cursor: pointer;
}

.links-result .links-con table tr td:nth-child(3) a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .9em !important;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .tool-content .mobile-item label span {
        height: 16px !important;
        padding: 0 4px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
    }

    .table-container table th, .table-container table td {
        padding: 6px 8px !important;
    }
}
