/**
 * 获客系统 - 弹窗和验证组件样式
 */

/* 弹窗遮罩 */
.lead-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 弹窗主体 */
.lead-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: leadPopupSlideIn 0.3s ease;
}

@keyframes leadPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗头部 */
.lead-popup-header {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lead-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.lead-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 弹窗内容 */
.lead-popup-body {
    padding: 20px;
}

/* 剩余数量提示 */
.lead-remaining {
    text-align: center;
    color: #ea4335;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}

.lead-remaining span {
    font-size: 18px;
    font-weight: 700;
}

/* 验证容器 */
.lead-captcha-container {
    margin-bottom: 16px;
}

.lead-captcha-bg {
    position: relative;
    margin: 0 auto 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lead-captcha-puzzle {
    position: absolute;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lead-captcha-mask {
    position: absolute;
}

/* 滑块区域 */
.lead-captcha-slider {
    position: relative;
    height: 44px;
    background: #f1f3f4;
    border-radius: 22px;
    overflow: hidden;
}

.lead-captcha-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lead-captcha-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s;
}

.lead-captcha-btn:active {
    cursor: grabbing;
}

.lead-captcha-btn span {
    color: #1a73e8;
    font-size: 18px;
    font-weight: bold;
}

.lead-captcha-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5f6368;
    font-size: 14px;
    pointer-events: none;
}

/* 手机号表单 */
.lead-form {
    text-align: center;
}

.lead-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lead-input:focus {
    outline: none;
    border-color: #1a73e8;
}

.lead-submit {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lead-submit:hover {
    opacity: 0.9;
}

.lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 结果展示 */
.lead-result {
    text-align: center;
}

.lead-success-text {
    color: #34a853;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.lead-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    padding: 12px;
    background: #fff;
    border: 2px solid #dadce0;
    border-radius: 8px;
}

.lead-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lead-tip {
    color: #5f6368;
    font-size: 13px;
    margin: 0;
}

/* 文章内容遮罩效果 */
.article-content-hidden {
    display: none;
}

.article-blur-overlay {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 50%);
    margin-top: -60px;
}

.article-unlock-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.article-unlock-hint {
    color: #5f6368;
    font-size: 13px;
    margin-top: 12px;
}
