.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .text-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
}

.tool-content .text-item > label {
    display: block;
}

.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-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-blue {
    color: #fff;
    background-color: rgb(93 79 248 / 85%);
    border-color: rgb(93 79 248 / 85%);
}

.btn-blue svg {
    fill: #fff;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ==================== 进制选择框 ==================== */
.icon-hex-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 0;
    font-size: 14px;
}

.hex-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 24px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    position: relative;
}

.hex-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 外圈 - 圆形边框 */
.hex-item::before {
    content: '';
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #adb5bd;
    border-radius: 50%;
    background-color: white;
    transition: all 0.2s ease;
    z-index: 1;
}

.hex-item.active::before {
    border-color: rgba(90, 77, 248, 0.9);
}

/* 内点 - 默认不显示，active 时出现 */
.hex-item::after {
    content: '';
    position: absolute;
    left: 4px;
    width: 10px;
    height: 10px;
    background-color: rgba(90, 77, 248, 0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hex-item.active::after {
    opacity: 1;
}

.hex-label {
    color: #212529;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.hex-item.active .hex-label {
    color: rgba(90, 77, 248, 0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table tr:nth-child(odd) {
    background-color: var(--main-bg);
}

table tr:first-child {
    background-color: #f1f2f5 !important;
}

table tr:hover {
    background-color: rgba(90, 77, 248, 0.1);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
    font-size: 14px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.input-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 150px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.input-text: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);
}

.input-small{
    width: 240px;
    background-color: #fff;
}

/* ==================== 关键：松手后整体弹出动画 ==================== */

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 同时给外圈和内点添加动画 */
.hex-item.pop-animation::before,
.hex-item.pop-animation::after {
    animation: popIn 0.3s cubic-bezier(0.25, 0.1, 0.75, 1) forwards;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .tool-content .mobile-item label span {
        height: 16px !important;
        padding: 0 4px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
    }

    .table-container table th, .table-container table td{
        padding: 6px 8px !important;
    }

    .input-small{
        height: 36px;
        line-height: 36px;
        width: 180px;
    }
}