/* 隐藏内容块样式 */
.xnx-hidden-block {
    border: 1px solid var(--bs-primary, #0d6efd);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 0;
    background: rgba(13, 110, 253, 0.03);
    text-align: center;
}

.xnx-hidden-lock-icon {
    font-size: 24px;
    color: var(--bs-primary, #0d6efd);
    margin-bottom: 8px;
}

.xnx-hidden-lock-text {
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 12px;
    font-size: 14px;
}

.xnx-hidden-lock-action {
    margin-top: 8px;
}

/* 已解锁内容 */
.xnx-hidden-unlocked {
    border: 1px solid var(--bs-success, #198754);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 0;
    background: rgba(25, 135, 84, 0.03);
}

.xnx-hidden-content-header {
    font-size: 12px;
    color: var(--bs-body-color);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--bs-border-color);
}

.xnx-hidden-content-body {
    line-height: 1.6;
}

.xnx-hidden-content-body p {
    margin: 0;
}

/* 隐藏内容中的链接保持原有文字颜色，不显示为蓝色 */
.xnx-hidden-content-body .xnx-hidden-link {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}
.xnx-hidden-content-body .xnx-hidden-link:hover {
    text-decoration: underline;
}

/* 积分类型特定样式 */
.xnx-hidden-type-credit {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.03);
}

.xnx-hidden-type-credit .xnx-hidden-lock-icon {
    color: var(--bs-primary, #0d6efd);
}

/* 已解锁用户头像列表（社会证明，紧跟隐藏块下方） */
.xnx-hidden-unlocked-users {
    margin: 8px 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.xnx-hidden-unlocked-users-header {
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.xnx-hidden-unlocked-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.xnx-hidden-unlocked-user {
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.xnx-hidden-unlocked-user:hover {
    transform: translateY(-2px);
}

.xnx-hidden-unlocked-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary, #6c757d);
    font-size: 12px;
    font-weight: 600;
}

/* ===== 解锁用户横向走马灯（xnx_hidden + xnx_attach_access 共用） =====
   ponytail: 纯 CSS @keyframes 横向连续滚动，无 JS 依赖；hover 暂停方便用户点击头像
   升级路径：用户数 >50 时可改用虚拟列表，当前 CSS 方案 ceiling ~200 项无性能问题 */
.xnx-marquee-users {
    margin: 8px 0 16px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    overflow: hidden;
}
.xnx-marquee-users-header {
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.xnx-marquee-users-window {
    overflow: hidden;
    position: relative;
}
.xnx-marquee-users-track {
    display: flex;
    gap: 2px;
    width: max-content;
    animation: xnx-marquee-scroll 22s linear infinite;
}
.xnx-marquee-users:hover .xnx-marquee-users-track {
    animation-play-state: paused;
}
.xnx-marquee-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--bs-body-color);
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.xnx-marquee-user:hover {
    text-decoration: none;
}
.xnx-marquee-user img,
.xnx-marquee-user .xnx-marquee-avatar-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}
.xnx-marquee-user .xnx-marquee-username {
    color: var(--bs-body-color);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xnx-marquee-user:hover .xnx-marquee-username {
    color: var(--bs-primary, #0d6efd);
}
@keyframes xnx-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* 用户数 ≤ 3 时不滚动（内容短无需滚动，避免空白等待） */
.xnx-marquee-users-track[data-count="1"],
.xnx-marquee-users-track[data-count="2"],
.xnx-marquee-users-track[data-count="3"] {
    animation: none;
}

/* 编辑器内隐藏块预览样式 */
.aieditor .xnx-hidden-tag {
    border: 2px dashed var(--bs-primary, #0d6efd);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    background: rgba(13, 110, 253, 0.04);
    position: relative;
}

.aieditor .xnx-hidden-tag .xnx-hidden-marker {
    color: var(--bs-primary, #0d6efd);
    font-size: 13px;
    font-style: italic;
}

.aieditor .xnx-hidden-tag .xnx-hidden-inner {
    display: block !important;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--bs-primary, #0d6efd);
    font-size: 13px;
    color: #6c757d;
}
