/* 安全进入进度条 + 安全验证码弹窗（纯本地实现，无外部请求） */
.safe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.safe-overlay[hidden] {
    display: none;
}
.safe-modal {
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    text-align: center;
}
.safe-modal h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #303133;
}
.safe-tip {
    margin: 0 0 16px;
    font-size: 13px;
    color: #909399;
}
.safe-enter-icon {
    font-size: 40px;
    color: #409eff;
    margin-bottom: 8px;
}
.safe-progress {
    height: 8px;
    background: #ebeef5;
    border-radius: 4px;
    overflow: hidden;
}
.safe-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #79bbff, #409eff);
    border-radius: 4px;
    transition: width 0.1s linear;
}
.safe-progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #409eff;
    font-weight: bold;
}
.safe-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 10px;
}
.safe-head h3 {
    margin: 0 0 4px;
}
.safe-head p {
    margin: 0;
    font-size: 12px;
    color: #909399;
}
.safe-close {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #909399;
    cursor: pointer;
    padding: 0 2px;
}
.safe-close:hover {
    color: #409eff;
}
.safe-prompt {
    text-align: left;
    font-size: 14px;
    color: #303133;
    margin: 0 0 12px;
}
.safe-rounds {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.safe-rounds span {
    font-size: 12px;
    color: #606266;
    white-space: nowrap;
}
.safe-roundbar {
    flex: 1;
    height: 6px;
    background: #ebeef5;
    border-radius: 3px;
    overflow: hidden;
}
.safe-roundfill {
    height: 100%;
    width: 0;
    background: #67c23a;
    border-radius: 3px;
    transition: width 0.3s;
}
.safe-ok {
    color: #67c23a;
    font-size: 13px;
    text-align: left;
    margin: -4px 0 10px;
}
.safe-prompt .safe-sample {
    vertical-align: middle;
    margin: 0 3px;
}
.safe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.safe-tile {
    aspect-ratio: 1 / 1;
    background: #f5f7fa;
    border: 2px solid transparent;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s;
}
.safe-tile:hover {
    background: #ecf5ff;
}
.safe-tile.selected {
    border-color: #409eff;
    background: #ecf5ff;
}
.safe-error {
    color: #f56c6c;
    font-size: 13px;
    text-align: left;
    margin: -4px 0 10px;
}
.safe-actions {
    display: flex;
    gap: 10px;
}
.safe-btn {
    flex: 1;
    padding: 9px 0;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    cursor: pointer;
}
.safe-btn:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
}
.safe-btn-primary {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}
.safe-btn-primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}
.safe-btn-primary:disabled {
    background: #a0cfff;
    border-color: #a0cfff;
    cursor: not-allowed;
}
.safe-success {
    padding: 20px 0 6px;
}
.safe-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #67c23a;
    color: #fff;
    font-size: 32px;
}
.safe-success p {
    color: #909399;
    font-size: 13px;
}
