.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.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-tool {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
    cursor: pointer;
}

.input-textarea {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-height: 250px;
    line-height: 26px;
    padding: 6px 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    color: #333;
    outline: none;
    font-size: 15px;
    resize: none;
    display: flex;
    width: 100%;
}

.input-textarea: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);
}

/*按钮样式*/
.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-small);
}

.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%);
}

.btn-grey {
    color: #fff;
    background-color: rgba(100, 100, 100, 0.95);
    border-color: rgba(100, 100, 100, 1);
}

.btn-green {
    color: #fff;
    background-color: rgba(34, 197, 94, 0.95);
    border-color: #22c55e;
}

.btn-red {
    color: #fff;
    background-color: rgb(242 55 55 / 95%);
    border-color: rgb(242 55 55 / 95%);
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.nav-section {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    margin: 1.2em 0;
}

.nav-section .nav-tabs {
    width: 100%;
    overflow: auto;
    position: relative;
    scroll-behavior: smooth;
}

.nav-section .nav-tabs ul {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 100%;
}

.nav-section .nav-tabs li {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f5f8;
    height: 40px;
    padding: 0 20px;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    border-radius: 11px 11px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-section .nav-tabs li.active {
    background-color: rgb(93 79 248 / 90%);
    box-shadow: 0 4px 12px rgba(93, 79, 248, 0.2);
    color: #fff;
}

.nav-table-container {
    overflow-x: auto;
    width: 100%;
}

.nav-table-container table {
    border-collapse: collapse;
    width: fit-content;
    min-width: 100%;
}

.nav-table-container table tr:nth-child(even) {
    background-color: var(--main-bg);
}

.nav-table-container table td {
    padding: 10px 15px;
    text-align: left;
    font-size: 14.5px;
    white-space: nowrap;
    width: 20%;
}

.nav-table-container table td a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    .input-textarea {
        min-height: 200px;
    }

    /*.nav-section .nav-tabs, .nav-table-container {*/
    /*    scrollbar-width: none;*/
    /*    -ms-overflow-style: none;*/
    /*}*/

    /*.nav-section .nav-tabs ul {*/
    /*    width: fit-content;*/
    /*}*/

    /*.nav-section .nav-tabs ul li {*/
    /*    flex: 1;*/
    /*    height: 35px;*/
    /*    border-radius: 9px 9px 0 0;*/
    /*}*/

    /*.nav-table-container table td{*/
    /*    padding: 8px 12px;*/
    /*    font-size: 14px;*/
    /*}*/
}