* { box-sizing: border-box; }

.gt4-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Heiti SC, Microsoft YaHei, sans-serif;
}
.gt4-mask.gt4-show { opacity: 1; visibility: visible; }
.gt4-mask.gt4-hide { opacity: 0; visibility: hidden; }

.gt4-box {
    width: 340px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    overflow: hidden;
    color: #292f3a;
    font-size: 14px;
    user-select: none;
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1.15);
}
.gt4-mask.gt4-show .gt4-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gt4-status-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 6px;
    background: #5381fd;
    transition: background .3s;
}
.gt4-box.gt4-state-success .gt4-status-bar { background: #39c522; }
.gt4-box.gt4-state-fail    .gt4-status-bar { background: #ff5d39; }

.gt4-header {
    position: relative;
    padding: 0 0 18%;
    background: #fff;
}
.gt4-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5.88% 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}
.gt4-title.gt4-title-split {
    justify-content: space-between;
    text-align: left;
}
.gt4-title-left {
    font-size: 14px;
    color: #292f3a;
    font-weight: 400;
}
.gt4-title-right {
    display: flex;
    gap: 4px;
    align-items: center;
}
.gt4-title-right img {
    height: 28px;
    display: block;
}

.gt4-container { padding: 0 5.62%; }
.gt4-wrap { position: relative; }

/* ===== 结果提示条 ===== */
.gt4-result-tips {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 30px;
    border-radius: 0 0 4px 4px;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 10;
    pointer-events: none;
}
.gt4-result-tips.gt4-show {
    transform: translateY(0);
    opacity: 1;
}
.gt4-result-tips.gt4-success { background-color: #39c522; }
.gt4-result-tips.gt4-fail    { background-color: #ff5d39; }

/* ===== 底部 ===== */
.gt4-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5.88% 14px;
    min-height: 44px;
}
.gt4-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gt4-sprite {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url("https://static.geetest.com/v4/static/v1.9.7-0ad79a/css/sprite.png");
    background-size: 1054.1666666667% 6137.5%;
    background-repeat: no-repeat;
    cursor: pointer;
    border: none;
    padding: 0;
    background-color: transparent;
    outline: none;
}
.gt4-sprite-close { background-position: 0 29.7446514838%; }
.gt4-sprite-close:hover { background-position: 0 27.3982056591%; }
.gt4-sprite-refresh { background-position: 0 48.5162180814%; }
.gt4-sprite-refresh:hover { background-position: 0 46.1697722567%; }

.gt4-footer-right { display: flex; align-items: center; }
.gt4-box-logo {
    color: #b8bcc4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ============================================================
   图片容器（slide / word / icon / phrase）
   ============================================================ */
.gt4-window {
    position: relative;
    width: 100%;
    overflow: hidden;   /* 防提示条穿模 */
    border-radius: 4px;
}
.gt4-bg {
    display: block;
    width: 100%;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
    cursor: crosshair;
}
.gt4-slice {
    position: absolute;
    left: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============================================================
   点选标记（word / icon / phrase）
   ============================================================ */
.gt4-mark {
    position: absolute;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    padding: 5%;
    border: 3px solid #fff;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    cursor: pointer;
    background-color: #5381fd;
    animation: gt4-mark-in .3s cubic-bezier(.65, 0, .35, 1);
    pointer-events: auto;
    z-index: 2;
}
.gt4-mark-no {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 24px;
    margin-top: -12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    pointer-events: none;
}
.gt4-mark.gt4-square { border-radius: 4px; }

@keyframes gt4-mark-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ============================================================
   确定按钮（word / icon / phrase）
   ============================================================ */
.gt4-submit {
    position: relative;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #6d93fd, #5682fd);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
    transition: opacity .3s, background .3s;
}
.gt4-submit-tips {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 16px;
    transform: translate(-50%, -50%);
}
.gt4-submit.gt4-disable {
    cursor: default;
    opacity: .4;
    pointer-events: none;
}

/* ============================================================
   滑块（slide）—— 无文字、无进度条
   ============================================================ */
.gt4-slider {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 10px;
    background: #f2f3f5;
    border-radius: 20px;
    box-shadow: inset 0 0 4px rgba(0,0,0,.06);
    user-select: none;
}
.gt4-btn {
    position: absolute;
    top: 0; left: 0;
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, #6d93fd, #5682fd);
    border-radius: 20px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.1);
    cursor: grab;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gt4-btn:active { cursor: grabbing; }
.gt4-arrow { width: 18px; height: 18px; }

/* ============================================================
   消消乐（match）
   ============================================================ */
.gt4-match {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #e7ecf5;
    border-radius: 4px;
    overflow: hidden;   /* 防提示条穿模 */
}
.gt4-match-cell {
    position: absolute;
    width: 32.6%;
    height: 32.3%;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #dfe6f3;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: border-color .2s, background-color .2s, transform .2s;
}
.gt4-match-cell:hover { transform: scale(1.04); }
.gt4-match-cell.gt4-selected {
    border-color: #a2bce9;
    background-color: #c7d8f7;
}
.gt4-match-cell.gt4-swapping { transform: scale(.9); }

/* ============================================================
   五子棋（winlinze）
   ============================================================ */
.gt4-winlinze {
    position: relative;
    width: 100%;
    padding-bottom: 86.53%;
    background: #dce3ed;
    border-radius: 4px;
    overflow: hidden;   /* 防提示条穿模 */
}
.gt4-winlinze-item {
    position: absolute;
    width: 13%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, transform .2s;
    box-sizing: border-box;
}
.gt4-winlinze-item.gt4-empty {
    background: #d1dae9;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,.05),
                inset 0 0 2px rgba(0,0,0,.05);
}
.gt4-winlinze-item.gt4-filled {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.gt4-winlinze-item.gt4-selected {
    border: 2px solid #5381fd;
    box-shadow: 0 0 8px rgba(83,129,253,.6);
    transform: scale(1.1);
}
.gt4-winlinze-item.gt4-swapping { transform: scale(.9); }

/* ============================================================
   九宫格（nine）
   ============================================================ */
.gt4-nine {
    position: relative;
    width: 100%;
    /* padding-bottom 由 JS 按图片比例设 */
    background: #e7ecf5;
    border-radius: 4px;
    overflow: hidden;   /* 防提示条穿模 */
}
.gt4-nine-item {
    position: absolute;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background-repeat: no-repeat;
    transition: transform .2s;
    box-sizing: border-box;
}
.gt4-nine-item:hover { transform: scale(1.04); }
.gt4-nine-item.gt4-selected { transform: scale(1.04); }

.gt4-nine-item .gt4-nine-ghost {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.gt4-nine-item.gt4-selected .gt4-nine-ghost { opacity: 1; }

.gt4-nine-item .gt4-nine-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    width: 40%;
    height: 44%;
    animation: gt4-biger .3s cubic-bezier(.65, 0, .35, 1);
    pointer-events: none;
    transform: translate(-50%, -50%);
    background-image: url("https://static.geetest.com/v4/static/v1.9.7-0ad79a/css/sprite.png");
    background-size: 575% 3347.7272727273%;
    background-position: 0 69.7690692792%;
    background-repeat: no-repeat;
}
.gt4-nine-item.gt4-selected .gt4-nine-icon { display: block; }

@keyframes gt4-biger {
    from { transform: translate(-50%, -50%) scale(0); }
    to   { transform: translate(-50%, -50%) scale(1); }
}

/* ============================================================
   一键通过（ai）
   ============================================================ */
.gt4-ai {
    position: relative;
    width: 100%;
    padding-bottom: 87%;
    background: #f2f3f5;
    border-radius: 4px;
    overflow: hidden;   /* 防提示条穿模 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gt4-ai-desc {
    font-size: 14px;
    color: #909399;
    margin-bottom: 16px;
    text-align: center;
}
.gt4-ai-btn {
    width: 60%;
    height: 40px;
    background: linear-gradient(180deg, #6d93fd, #5682fd);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: opacity .2s;
}
.gt4-ai-btn:hover { opacity: .9; }
.gt4-ai-btn:active { transform: scale(.98); }

/* ============================================================
   SVG（svg_icon / svg_seed）
   ============================================================ */
.gt4-svg {
    position: relative;
    width: 100%;
    padding-bottom: 86.53%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;   /* 防提示条穿模 */
}
.gt4-svg svg {
    position: absolute;
    top: 0; left: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 1;
}