/* 博客阅读权限 · 前台样式 */

.bgv-paid-hint {
    margin: 0 0 18px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

.bgv-lock {
    margin: 22px 0;
    padding: 36px 24px;
    border: 1px dashed #dbe1f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 70%);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.bgv-lock-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eef1fd;
    color: #5b74f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgv-lock-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.bgv-lock-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bgv-lock-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bgv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #dfe3ec;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    line-height: 34px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.bgv-btn:hover {
    border-color: #4e6ef2;
    color: #4e6ef2;
}

.bgv-btn-primary {
    background: #4e6ef2;
    border-color: #4e6ef2;
    color: #fff;
}

.bgv-btn-primary:hover {
    background: #3f5dde;
    border-color: #3f5dde;
    color: #fff;
}

.bgv-btn[disabled] {
    opacity: .7;
    cursor: default;
}

/* 易支付渠道按钮：白底描边，和站内余额主按钮区分开 */
.bgv-btn-epay {
    border-color: #c9d6f5;
    color: #2456c8;
    background: #f7f9ff;
}

.bgv-btn-epay:hover {
    border-color: #4e6ef2;
    background: #eef3ff;
    color: #2456c8;
}

.bgv-pwd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bgv-pwd-input {
    width: 200px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dfe3ec;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.bgv-pwd-input:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 0 2px rgba(78, 110, 242, .12);
}

.bgv-balance {
    font-size: 12px;
    color: #9aa3b2;
}

.bgv-teaser {
    text-align: left;
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e6eaf3;
    position: relative;
    max-height: 96px;
    overflow: hidden;
}

.bgv-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.bgv-toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translate(-50%, -12px);
    background: #2f3542;
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: all .25s;
    z-index: 99999;
}

.bgv-toast-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.bgv-toast-ok {
    background: #16a34a;
}

@media (max-width: 640px) {
    .bgv-lock {
        padding: 26px 16px;
    }
    .bgv-lock-actions {
        flex-direction: column;
        gap: 12px;
    }
    .bgv-btn {
        width: 100%;
    }
    .bgv-pwd-row {
        flex-direction: column;
    }
    .bgv-pwd-input {
        width: 100%;
    }
}

/* ---------------- 行内隐藏（隐藏选中的几个字） ---------------- */

.bgv-lock.bgv-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    margin: 0 2px;
    border: 1px dashed #d5dae3;
    border-radius: 4px;
    background: #f6f7fa;
    color: #6b7280;
    font-size: 13px;
    line-height: 22px;
    vertical-align: baseline;
    box-shadow: none;
    max-width: 100%;
}

.bgv-lock.bgv-inline:hover {
    border-color: #4e6ef2;
    background: #f3f6ff;
    color: #3358e0;
}

.bgv-inline-icon {
    font-size: 12px;
    opacity: .85;
}

.bgv-inline-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.bgv-inline-count {
    font-size: 11px;
    color: #9aa3af;
    white-space: nowrap;
}

.bgv-inline-act {
    border: none;
    background: none;
    padding: 0 2px;
    margin: 0;
    color: #3358e0;
    font-size: 13px;
    line-height: 22px;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(51, 88, 224, .35);
}

.bgv-inline-act:hover {
    color: #1f3fc0;
    border-bottom-color: #1f3fc0;
}

.bgv-inline-note {
    font-size: 12px;
    color: #9aa3af;
}

.bgv-inline-pwd[hidden] {
    display: none !important;
}

.bgv-inline-pwd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bgv-inline-pwd .bgv-pwd-input {
    width: 96px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    font-size: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    background: #fff;
}

@media (max-width: 640px) {
    .bgv-inline-text { max-width: 130px; }
}

/* 评论区解锁提示 */
.bgv-comment-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f8ff;
    border: 1px solid #e3ebff;
    color: #3358e0;
    font-size: 13px;
    line-height: 1.6;
}
.bgv-comment-hint b { color: #1f4bd8; }

/* 手机端：行内标记更紧凑，长标签允许换行，不撑破排版 */
@media (max-width: 640px) {
    .bgv-inline {
        padding: 1px 6px;
        font-size: 12px;
        gap: 4px;
        flex-wrap: wrap;
    }
    .bgv-inline-count { font-size: 10px; }
    .bgv-inline-act { font-size: 12px; }
}

/* 免费试读 */
.bgv-trial {
    margin: 12px 0 4px;
    padding: 0 2px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.9;
    position: relative;
}
.bgv-trial::after {
    content: '';
    display: block;
    height: 18px;
    margin-top: -18px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
    position: relative;
}

/* 已有 N 人解锁（社交证明） */
.bgv-lock-proof {
    margin-top: 8px;
    font-size: 12px;
    color: #9aa3af;
}
