.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;
}

.tool-content .item-file {
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
}

.tool-content .item-filter {
    padding: 1em;
    border-radius: 7px;
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.tool-content .item-filter .options {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.3em;
    width: calc(50% - 0.4em);
}

.tool-content .item-filter .text-options{
    display: none;
}

.tool-content .item-filter .options .image-picker{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.tool-content .item-filter .options > label {
    padding-left: 2px;
    font-size: 14px;
}

/*按钮样式*/
.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);
}

.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%);
}

.file-preview{
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 7px;
    width: 100%;
    padding: 12px;
}

.file-preview .file-name{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.file-preview .file-meta{
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
}

.splitter-status-waiting {
    color: #fff;
    font-size: 12px;
    background: #666;
    border-radius: 13px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.splitter-status-doing {
    color: #fff;
    font-size: 12px;
    background: #eb5352;
    border-radius: 13px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.splitter-status-success {
    color: #fff;
    font-size: 12px;
    background: #0aa800;
    border-radius: 13px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.file-name span:nth-child(2) {
    margin-right: auto;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 文件样式 */
.file-upload {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    width: 100%;
    min-height: 240px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    outline: none;
    font-size: 15px;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    position: relative;
}

/* 拖拽时高亮 */
.file-upload.dragover {
    border-color: #5a4df8;
    background-color: #f0edff;
    color: #5a4df8;
}

/* 上传信息模块 */
.file-upload .upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    width: 100%;
    height: 100%;
}

.file-upload .upload-prompt > div > p {
    text-align: center;
    margin-bottom: 0;
}

.item-result{
    display: none;
    align-items: stretch;
    gap: 1em;
}

.item-result .item-video,.item-result .item-audio{
    border: solid 1px #ddd;
    border-radius: 7px;
    padding: 1em;
    width: calc(50% - 0.5em);
    display: flex;
    flex-direction: column;
}

.item-video .video-header, .item-audio .audio-header{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.video-exts, .audio-exts{
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 6px 9px;
    border-radius: 7px;
    flex-shrink: 0;
}

.video-exts{
    background-color: #f1f0fe;
}

.audio-exts{
    background-color: #fef0ef;
    color: #eb5352;
}

.video-header h3, .audio-header h3 {
    margin: 0;
    font-size: 15px;
}

.video-header p, .audio-header p {
    margin: 1px 0 0;
    font-size: 12px;
    color: #8b93a9;
}

.video-media{
    border-radius: 10px;
    overflow: hidden;
    background: #11131c;
    border: 1px solid #eef0f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.thumb video, .video-media video{
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #11131c;
}

.video-name, .audio-name{
    margin-top: 10px;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.video-footer, .audio-footer{
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.video-size, .audio-size{
    font-size: 12px;
    color: #6b7280;
}

.video-download, .audio-download{
    border: none;
    outline: none;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: opacity .2s ease;
}

.video-download{
    padding: 7px 14px;
    font-size: 12px;
    background: #eef0ff;
    color: #4f46e5;
    font-weight: 600;
}

.audio-download{
    padding: 7px 14px;
    font-size: 12px;
    background-color: #fef0ef;
    color: #eb5352;
    font-weight: 600;
}

.video-download:hover, .audio-download:hover{
    opacity: .88;
}

/* 纯音频卡片 */
.audio-media{
    min-height: 320px;
    padding: 16px;
    background: linear-gradient(180deg, #fffaf2, #fff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef0f6;
}

.audio-wave i {
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #f0b45c, #e08a19);
    opacity: .75;
}

.audio-wave i:nth-child(4n+1) {
    height: 22px;
}

.audio-wave i:nth-child(4n+2) {
    height: 42px;
}

.audio-wave i:nth-child(4n+3) {
    height: 58px;
}

.audio-wave i:nth-child(4n) {
    height: 32px;
}

.audio-media audio{
    width: 100%;
    height: 38px;
    display: block;
}

/* 音频波形动画 */
.audio-wave{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 200px;
    margin-bottom: 40px;
}

.audio-wave i{
    width: 4px;
    border-radius: 4px;
    background-color: #d4d6e4;
    height: 8px;
    transition: background-color .3s ease;
}

.audio-wave.playing i{
    background-color: #eb5352;
    animation: audio-wave-bar 1s ease-in-out infinite;
}

.audio-wave.playing i:nth-child(3n){
    animation-duration: .7s;
}

.audio-wave.playing i:nth-child(3n+1){
    animation-duration: 1.2s;
}

.audio-wave.playing i:nth-child(4n){
    animation-duration: .9s;
}

.audio-wave.playing i:nth-child(5n+2){
    animation-delay: .15s;
}

.audio-wave.playing i:nth-child(7n){
    animation-delay: .3s;
}

@keyframes audio-wave-bar {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em;
        box-shadow: unset;
        gap: 0.8em;
    }

    .file-upload {
        min-height: 200px;
    }

    .tool-content .item-filter{
        flex-direction: column;
    }

    .item-result{
        flex-direction: column;
        gap: 0.8em;
    }

    .item-result .item-video, .item-result .item-audio{
        width: 100%;
    }
}