@font-face {
    font-family: 'NumberFont';
    src: url('../fonts/number.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化加载显示 */
}

.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .tool-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
}

.tool-content .tool-item label {
    display: block;
}

.tool-content .tool-item label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 5px;
    margin: 0 4px;
    color: #f84d4d;
    border-radius: 4px;
    background-color: rgba(248, 77, 77, 0.1);
    border: solid 1px rgba(248, 77, 77, 0.4);
    font-size: 13px;
    font-family: var(--font-family);
}

.tool-content .tool-item .tool-search {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: relative;
}

.tool-content hr {
    border: none;
    height: 0;
    border-top: 1px solid #eaeaea;
    margin: 1.5em 0 1.5em;
    padding: 0;
}

.wrapper {
    margin: 0 auto;
    position: relative;
    left: 0;
    max-width: 1200px;
    height: 570px;
}

.wrapper > div {
    background-repeat: no-repeat;
    background-size: 100%;
    overflow: hidden;
}

iframe {
    /* transform: scale(0.219); */
    -webkit-transform: scale(0.219);
    -o-transform: scale(0.219);
    -ms-transform: scale(0.219);
    -moz-transform: scale(0.219);
    transform-origin: top left;
    -webkit-transform-origin: top left;
    -o-transform-origin: top left;
    -ms-transform-origin: top left;
    -moz-transform-origin: top left;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #fff;
    border-color: #000;
}

.wrapper .mobile {
    background-image: url(../images/iphone-optimised.png);
    position: absolute;
    width: 95px;
    height: 196px;
    top: 375px;
    left: 300px;
    z-index: 5;
}

.mobile iframe {
    width: 320px;
    height: 480px;
    top: 32px;
    left: 11px;
    overflow-y: hidden;
}

.tablet {
    background-image: url(../images/ipad-optimised.png);
    width: 246px;
    height: 400px;
    z-index: 3;
    position: absolute;
    left: 120px;
    top: 230px;
}

.tablet iframe {
    width: 768px;
    height: 1024px;
    top: 35px;
    left: 38px;
    overflow-y: hidden;
}

.laptop {
    background-image: url(../images/laptop-screen-optimised.png);
    width: 477px;
    height: 307px;
    top: 264px;
    left: 560px;
    position: absolute;
    z-index: 2;
}

.laptop iframe {
    width: 1280px;
    height: 802px;
    top: 26px;
    left: 60px;
    transform: scale(0.277);
    -webkit-transform: scale(0.277);
    -o-transform: scale(0.277);
    -ms-transform: scale(0.277);
    -moz-transform: scale(0.277);
    transform-origin: top left;
    -webkit-transform-origin: top left;
    -o-transform-origin: top left;
    -ms-transform-origin: top left;
    -moz-transform-origin: top left;
}

.desktop {
    position: absolute;
    width: 566px;
    height: 538px;
    background-image: url(../images/large-screen-optimised.png);
    top: 0;
    left: 220px;
    z-index: 1;
}

.desktop iframe {
    left: 28px;
    top: 38px;
    width: 1600px;
    height: 992px;
    transform: scale(0.3181);
    -webkit-transform: scale(0.3181);
    -o-transform: scale(0.3181);
    -ms-transform: scale(0.3181);
    -moz-transform: scale(0.3181);
    transform-origin: top left;
    -webkit-transform-origin: top left;
    -o-transform-origin: top left;
    -ms-transform-origin: top left;
    -moz-transform-origin: top left;
}

/*按钮样式*/
.btn {
    outline: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px 0 15px;
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: var(--font-simple);
    position: absolute;
    top: 0;
    right: 0;
}

.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;
}

/* 关键动画：扩散 + 淡出 */
@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;
    width: 100%;
    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); /* 外发光点缀（可选） */
}

@media (max-width: 768px) {
    .tool-content {
        padding: .9em !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;
    }

    .wrapper {
        left: -91px;
        top: -65px;
        width: 100%;
        height: 220px;
        transform: scale(0.35);
        -webkit-transform: scale(0.35);
        -o-transform: scale(0.35);
        -ms-transform: scale(0.35);
        -moz-transform: scale(0.35);
    }

    .wrapper .mobile {
        left: 180px;
    }

    .wrapper .tablet {
        left: 0px;
    }

    .wrapper .laptop {
        left: 440px;
    }

    .wrapper .desktop {
        left: 100px;
    }
}
