.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;
    }
}

.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);
}

/* 定义字体 */
@font-face {
    font-family: 'NumberFont';
    src: url('../fonts/number.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载显示 */
}

/* 应用到 .tel 类 */
.tel {
    font-weight: bold;
    font-size: 15.5px;
    font-family: 'NumberFont', Arial, sans-serif; /* 使用自定义字体，设置回退字体 */
    white-space: nowrap;
    float: left;
}

.tel:hover{
    color: #5a4df8;
    text-decoration: underline;
}

.tel::before {
    content: "";
    background: url("../images/icon-tel.svg") no-repeat center;
    background-size: cover;
    margin-right: 8px;
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.td-tel span{
    font-size: 12px;
    cursor: pointer;
    border: solid 1px var(--primary-color);
    padding: 2px 10px;
    border-radius: 4px;
    color: var(--primary-color);
    white-space: nowrap;
    float: right;
}

.td-tel:hover span{
    background-color: var(--primary-color);
    color: #fff;
}

.table-container table th:nth-child(3), .table-container table td:nth-child(3){
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

/* ==================== 关键：松手后整体弹出动画 ==================== */

@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;
    }
}