/* ==========================================================================
   内容保护遮罩（未登录用户） - csrwiki-gate
   ========================================================================== */

.csrwiki-gate {
    position: relative;
    margin: 28px 0 40px;
}

/* 模糊占位线条：只用于视觉暗示，不含真实内容 */
.csrwiki-gate-blur {
    position: relative;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.csrwiki-gate-blur span {
    display: block;
    height: 13px;
    margin-bottom: 15px;
    border-radius: 7px;
    background: #e3e6ea;
    filter: blur(3px);
    opacity: 0.9;
}

.csrwiki-gate-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 45%,
        #ffffff 100%);
}

/* 登录引导卡片 */
.csrwiki-gate-card {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: -70px auto 0;
    padding: 30px 26px 24px;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    text-align: center;
}

.csrwiki-gate-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    font-size: 22px;
}

/* 登录提示：用加粗文字而不是标题（避免被正文目录/SEO 当成文章小节） */
.csrwiki-gate-title {
    display: block;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.csrwiki-gate-desc {
    margin: 0 auto 20px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.75;
    color: #5b6472;
}

.csrwiki-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.csrwiki-gate-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid #d5dae2;
    border-radius: 999px;
    background: #fff;
    color: #374151 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.csrwiki-gate-btn:hover {
    border-color: #b9c1cd;
    background: #f7f8fa;
}

.csrwiki-gate-btn.is-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.csrwiki-gate-btn.is-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.csrwiki-gate-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: #8b93a1;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .csrwiki-gate-blur {
        height: 104px;
    }

    .csrwiki-gate-card {
        margin-top: -56px;
        padding: 24px 18px 20px;
    }

    .csrwiki-gate-title {
        font-size: 18px;
    }

    .csrwiki-gate-btn {
        width: 100%;
        box-sizing: border-box;
    }
}
