@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-preview {
    background-color: #000;
    width: 100%;
    height: 240px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-content .item-preview p{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em 2em;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    user-select: none;
    line-height: 1.5;
    color: #03cb67;
    font-family: var(--font-family);
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1em;
}

.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-red {
    color: #f00;
    border-color: #000;
    background-color: #000;
}

.btn-green {
    color: #03cb67;
    background-color: #000;
    border-color: #000;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tool-content .item-preview{
        height: 180px;
        border-radius: 10px;
    }

    .tool-content .item-preview p{
        font-size: 18px;
        margin: 1em;
        line-height: 1.4;
    }

    .tool-content{
        padding: 1em;
    }
}