/* 基础样式 */
.rnip {
    font-size: 14px;
    color: #b7b7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000066;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
    overflow: hidden; /* 防止页面滚动 */
}

.verification-container {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh; /* 限制最大高度 */
    overflow-y: auto; /* 允许内容滚动 */
    /*box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);*/
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 修复滚动条样式 */
.verification-container::-webkit-scrollbar {
    width: 8px;
}

.verification-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.verification-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.verification-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 图片容器样式 - 修复图片显示问题 */
.verification-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9; /* 添加背景色 */
}

.verification-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个容器 */
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    background-color: #f9f9f9; /* 加载时的背景色 */
}

/* 滑块容器 */
.verification-slider-container {
    width: calc(100% - 20px); /* 留出滚动条空间 */
    margin: 25px 0;
    padding: 0 10px;
}

.verification-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    margin: 15px 0;
}

/* 按钮样式 */
.verification-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: calc(100% - 20px); /* 留出滚动条空间 */
    padding: 0 10px;
}

.verification-button {
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 成功按钮样式 */
.verification-success-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: none; /* 默认隐藏 */
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* 成功消息 */
.success-message {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    margin: 15px 10px 0;
    opacity: 0;
    transition: opacity 0.3s;
    height: 0;
    overflow: hidden;
}

.success-message.show {
    opacity: 1;
    height: auto;
}

/* 标题和说明文字 */
.verification-title {
    text-align: center;
    margin: 0 10px 20px;
    color: #333;
    font-size: 22px;
}

.verification-instructions {
    text-align: center;
    margin: 0 10px 20px;
    color: #666;
    font-size: 15px;
}

.target-hint {
    text-align: center;
    margin: 15px 10px;
    font-size: 16px;
    color: #555;
}

.target-text {
    font-weight: bold;
    color: #2196F3;
    background-color: #f0f7ff;
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
}

/* 角度指示器 */
.angle-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    padding: 0 5px;
}