.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .item-coin {
    display: flex;
    flex-direction: column;
    font-family: var(--font-simple);
    cursor: pointer;
}

.tool-content .item-coin > label {
    display: block;
}

.tool-content .item-param {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2em 2em;
    flex-direction: row;
    margin: 1.2em 0;
    border-bottom: solid 1px #ddd;
    padding-bottom: 1.2em;
}

.tool-content .item-param .param-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tool-content .item-param .param-number > div {
    line-height: 34px;
    background-color: rgb(93 79 248 / 85%);
    padding: 0 2px 0 10px;
    border-radius: 7px;
    color: #fff;
}

.tool-content .item-param .param-number > div > span {
    display: inline-block;
    background-color: #fff;
    color: var(--text-color);
    margin-left: 8px;
    line-height: 28px;
    width: 43px;
    text-align: center;
    border-radius: 5px;
}

.input-number {
    border: 1px solid #ddd;
    background-color: var(--main-bg);
    width: 80px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
    text-align: center;
}

.input-number: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);
}

.operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*按钮样式*/
.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: 7px;
    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 {
    fill: #fff;
    margin-right: 5px;
    width: 1em;
    height: 1em;
}

.btn-blue {
    color: #fff;
    background-color: rgb(93 79 248 / 85%);
    border-color: rgb(93 79 248 / 85%);
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 硬币列表：横向排列，自动换行，居中 */
.coin-list {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-height: 250px;
    border-radius: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    list-style: none;
}

/* 单个硬币容器 */
.coin-list li {
    width: 100px;
    height: 100px;
    perspective: 300px;
    margin: 0;
    flex-shrink: 0;
}

/* 翻转核心 */
.coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* 正反面通用样式 */
.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #ddd;
}

/* 正面 */
.coin-front {
    transform: rotateY(0deg);
}

/* 反面 */
.coin-back {
    transform: rotateY(180deg);
}

/* 图片填满 */
.coin-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .btn {
        height: 32px;
    }

    .input-number {
        height: 32px;
        line-height: 32px;
    }

}