/* 验证码触发器 */
#captcha-trigger {
    display: flex; align-items: center; gap: 10px;
    width: 100%; height: 40px; border: 1px solid #d9d9d9;
    border-radius: 4px; padding: 0 12px; cursor: pointer;
    background: #fafafa; transition: border-color .2s; user-select: none; box-sizing: border-box;
}#captcha-trigger:hover { border-color: #e62129; background: #fff; }
#captcha-trigger-icon { font-size: 16px; color: #aaa; }
#captcha-trigger-text { flex: 1; font-size: 13px; color: #888; }
#captcha-trigger-status { font-size: 13px; }
#captcha-trigger-status.ok  { color: #52c41a; font-weight: bold; }
#captcha-trigger-status.err { color: #e62129; }

/* 遮罩 */
#captcha-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 9998;
}

/* 弹窗 */
#captcha-modal {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 420px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    z-index: 9999; overflow: hidden; user-select: none;
}
#captcha-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px 10px; font-size: 15px; color: #333;
    border-bottom: 1px solid #f0f0f0;
}
#captcha-hint-words { color: #e6a817; font-size: 17px; letter-spacing: 6px; }
#captcha-modal-close {
    cursor: pointer; color: #aaa; font-size: 16px;
    padding: 2px 4px; border-radius: 3px;
}
#captcha-modal-close:hover { color: #333; background: #f0f0f0; }

/* 图片区域 */
#captcha-img-wrap {
    position: relative; width: 388px; height: 240px;
    margin: 10px auto 0; cursor: crosshair; border-radius: 4px; overflow: hidden;
}
#captcha-canvas { display: block; width: 388px; height: 240px; }
#captcha-marks { position: absolute; inset: 0; pointer-events: none; }
.c-mark {
    position: absolute; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(230,33,41,.85); color: #fff; font-size: 14px; font-weight: bold;
    line-height: 28px; text-align: center; transform: translate(-50%, -50%);
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* 底部状态栏 */
#captcha-modal-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px 4px;
}
#captcha-msg { font-size: 12px; color: #999; }
#captcha-msg.ok  { color: #52c41a; font-weight: bold; }
#captcha-msg.err { color: #e62129; }
#captcha-refresh { font-size: 18px; color: #aaa; cursor: pointer; padding: 2px 6px; border-radius: 3px; }
#captcha-refresh:hover { color: #e62129; background: #f5f5f5; }

/* 确定按钮 */
#captcha-confirm-btn {
    display: block; width: calc(100% - 32px); margin: 10px 16px 12px;
    height: 42px; background: #4a90d9; color: #fff; border: none;
    border-radius: 4px; font-size: 15px; cursor: pointer; transition: background .2s;
}
#captcha-confirm-btn:hover { background: #357abd; }
#captcha-confirm-btn:disabled { background: #b0c8e8; cursor: not-allowed; }

/* 底部说明 */
#captcha-modal-bottom {
    padding: 6px 16px 12px; font-size: 12px; color: #bbb;
    border-top: 1px solid #f5f5f5;
}
