@font-face {
    font-family: 'Digit';
    src: url('../fonts/digit.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    margin-bottom: 1.2em;
}

.tool-content .item-tool {
    background-color: #000;
    width: 100%;
    height: 300px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.time-wrapper span{
    color: #05df72;
    font-size: 100px;
    font-family: Digit, sans-serif;
}

.time-wrapper span.time-unit{
    font-family: var(--font-family);
    font-size: 90px;
    font-weight: 500;
    transform: translateY(-4px);
    margin-right: 20px;
}

/*滤镜类型*/
.tool-content .item-type {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 1.2em;
    gap: 0.6em;
}

.tool-content .item-type li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    line-height: unset;
    padding: 0 15px;
    font-size: 14px;
    background-color: #000;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-simple);
    margin-bottom: 0;
    user-select: none;
    color: #03cb67;
}

.tool-content .item-type li.active, .tool-content .item-type li:hover {
    color: #f00;
}

/*按钮样式*/
.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    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 svg {
    width: 0.92em;
    height: 0.92em;
}

.btn svg {
    fill: #fff;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tool-content{
        border-width: 0;
        padding: 0;
    }

    .tool-content .item-tool{
        height: 200px;
    }

    .time-wrapper{
        gap: 0.6em;
    }

    .time-wrapper span{
        font-size: 35px;
    }

    .time-wrapper span.time-unit{
        font-size: 31px;
        transform: translateY(-1px);
        margin-right: 12px;
    }
}