/**
 * 长文详情页样式
 * 浅色系 · 文章阅读风格
 */

/* ==================== 页面布局 ==================== */
.ls-article-detail-page {
    display: flex;
    gap: 16px;
    padding: 20px 0;
}

.ls-article-detail-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 没有侧边栏时主内容居中 */
.ls-article-detail-page:not(:has(.ls-sidebar-right)) {
    justify-content: center;
}

/* ==================== 通用卡片 ==================== */
.ls-article-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ls-article-banner {
    overflow: hidden;
}

.ls-article-banner-link {
    position: relative;
    display: block;
    line-height: 0;
    overflow: hidden;
}

.ls-article-banner img {
    width: 100%;
    aspect-ratio: 6 / 1;
    min-height: 90px;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.ls-article-banner-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--ls-border-radius-btn, 999px);
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
}

.ls-article-math-pending .ls-article-body .ls-math-formula,
.ls-article-math-pending .ls-article-hidden-body .ls-math-formula {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.ls-article-math-ready .ls-article-body .ls-math-formula,
.ls-article-math-ready .ls-article-hidden-body .ls-math-formula {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

@media (prefers-reduced-motion: reduce) {
    .ls-article-math-pending .ls-article-body .ls-math-formula,
    .ls-article-math-pending .ls-article-hidden-body .ls-math-formula,
    .ls-article-math-ready .ls-article-body .ls-math-formula,
    .ls-article-math-ready .ls-article-hidden-body .ls-math-formula {
        transform: none;
        transition: none;
    }
}

/* ==================== 头部卡片 ==================== */
.ls-article-header-card {
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.ls-article-cover {
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    position: relative;
}

.ls-article-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(250,251,252,0.95), transparent);
    pointer-events: none;
}

.ls-article-cover img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.ls-article-header {
    padding: 32px 40px 28px;
}

/* ==================== 徽章行 ==================== */
.ls-article-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ls-article-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ls-article-label i { font-size: 13px; }
.ls-article-label-sticky { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.ls-article-label-private { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }
.ls-article-label-recommend { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ==================== 标题 ==================== */
.ls-article-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ==================== 作者信息 ==================== */
.ls-article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ls-article-author-body {
    flex: 1;
    min-width: 0;
}

.ls-article-author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ls-article-author-name a {
    color: #0f172a;
    text-decoration: none;
}

.ls-article-author-name a:hover {
    color: var(--ls-primary-hover);
}

.ls-article-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.ls-article-author-meta i.remix-icon {
    font-size: 13px;
}

.ls-article-attachment-jump {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    padding: 0 8px;
    border: none;
    border-radius: var(--ls-border-radius-btn, 999px);
    background: rgba(var(--ls-primary-rgb, 26, 115, 232), 0.08);
    color: var(--ls-primary, #1a73e8);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}

.ls-article-attachment-jump:hover {
    background: rgba(var(--ls-primary-rgb, 26, 115, 232), 0.14);
}

.ls-article-attachment-jump:active {
    transform: translateY(1px);
}

.ls-article-attachment-jump i {
    font-size: 14px;
}

.ls-article-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

.ls-article-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ls-article-header-actions .ls-post-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.ls-article-header-actions .ls-post-more:hover { background: #f1f5f9; color: #475569; }
.ls-article-header-actions .ls-post-more i { font-size: 18px; }

/* ==================== 关注按钮 ==================== */
.ls-article-follow-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--ls-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ls-primary);
    color: #fff;
    white-space: nowrap;
}

.ls-article-follow-btn:hover {
    background: var(--ls-primary-hover);
    border-color: var(--ls-primary-hover);
}

.ls-article-follow-btn.had,
.ls-article-follow-btn.followed {
    background: var(--ls-card-bg);
    color: var(--ls-text-secondary);
    border-color: var(--ls-border);
}

.ls-article-follow-btn.had:hover,
.ls-article-follow-btn.followed:hover {
    background: var(--ls-bg-hover);
    color: var(--ls-text);
    border-color: var(--ls-border);
}

/* ==================== 正文内容卡片 ==================== */
.ls-article-content-card {
    padding: 40px 48px;
    background: #fff;
}

/* ==================== 板块卡片 ==================== */
.ls-article-bbs-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 24px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}
.ls-article-bbs-card:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.ls-article-bbs-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}
.ls-article-bbs-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.ls-article-bbs-card-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 20px;
}
.ls-article-bbs-card-body { flex: 1; min-width: 0; }
.ls-article-bbs-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}
.ls-article-bbs-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.ls-article-bbs-follow-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ls-article-bbs-follow-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ls-article-bbs-follow-btn.ls-followed {
    color: #94a3b8;
    border-color: #f1f5f9;
    background: #f8fafc;
}
.ls-article-bbs-follow-btn.ls-followed:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

/* ==================== @用户 ==================== */
.ls-article-at-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ls-article-at-link {
    color: #5b7ff5;
    font-size: 14px;
    text-decoration: none;
}

.ls-article-at-link:hover { text-decoration: underline; }


/* ==================== 富文本正文 ==================== */
.ls-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
    margin-bottom: 24px;
}

.ls-article-body p {
    margin: 0 0 16px;
}

/* 保留编辑器产生的空段落，避免多个换行被合并 */
.ls-article-body p:empty {
    min-height: 1em;
}

.ls-article-body p:last-child {
    margin-bottom: 0;
}

.ls-article-body h1,
.ls-article-body h2,
.ls-article-body h3,
.ls-article-body h4 {
    color: #1a1a2e;
    font-weight: 600;
    margin: 28px 0 12px;
    line-height: 1.4;
}

.ls-article-body h1 { font-size: 24px; }
.ls-article-body h2 { font-size: 20px; }
.ls-article-body h3 { font-size: 18px; }
.ls-article-body h4 { font-size: 16px; }

.ls-article-body img:not(.ls-emoji) {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
    cursor: pointer;
}

.ls-article-body a {
    color: var(--ls-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.ls-article-body a:hover {
    border-bottom-color: var(--ls-primary);
}

.ls-article-body a[data-fancybox] {
    border: none;
}

.ls-article-body blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 3px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #64748b;
    font-style: italic;
}

.ls-article-body pre {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    position: relative;
}

.ls-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, border-color 0.2s;
    z-index: 1;
    padding: 0;
    line-height: 1;
}
.ls-article-body pre:hover .ls-code-copy-btn,
.ls-article-hidden-body pre:hover .ls-code-copy-btn { opacity: 1; }
.ls-code-copy-btn:hover { color: #475569; border-color: #cbd5e1; background: #f8fafc; }

.ls-article-body pre code {
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
    color: #334155;
    background: none;
    padding: 0;
}

.ls-article-body code {
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}

.ls-article-body .ls-math-formula {
    border-radius: 5px;
    background: #f1f5f9;
    color: #334155;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}

.ls-article-body .ls-math-formula:not([data-display="block"]) {
    margin: 0 4px;
    overflow-y: hidden;
}

.ls-article-body .ls-math-formula[data-display="block"] {
    margin: 14px auto;
    padding: 9px 16px;
}

.ls-article-body ul,
.ls-article-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.ls-article-body ul > li {
    list-style: disc;
}

.ls-article-body ol > li {
    list-style: decimal;
}

.ls-article-body li {
    margin-bottom: 6px;
}

/* ========== 任务列表 ========== */
.ls-article-body ul[data-type="taskList"] {
    padding-left: 0;
    list-style: none;
}
.ls-article-body ul[data-type="taskList"] li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    margin-bottom: 2px;
}
.ls-article-body ul[data-type="taskList"] li label {
    flex-shrink: 0;
    margin-top: 5px;
    position: relative;
    width: 18px;
    height: 18px;
}
.ls-article-body ul[data-type="taskList"] li label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    pointer-events: none;
}
.ls-article-body ul[data-type="taskList"] li label span {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ls-border);
    border-radius: 4px;
    background: var(--ls-card-bg);
}
.ls-article-body ul[data-type="taskList"] li[data-checked="true"] label span {
    background: var(--ls-primary);
    border-color: var(--ls-primary);
}
.ls-article-body ul[data-type="taskList"] li[data-checked="true"] label span::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: 1px 0 0 5px;
}
.ls-article-body ul[data-type="taskList"] li[data-checked="true"] > div {
    text-decoration: line-through;
    color: var(--ls-text);
}

.ls-article-body hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

.ls-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.ls-article-body table th,
.ls-article-body table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.ls-article-body table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.ls-article-body table tr:hover td {
    background: #fafbfc;
}

.ls-article-body video {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0;
}


/* ==================== 权限遮罩 ==================== */
.ls-article-power {
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
    margin-bottom: 24px;
}

.ls-article-power-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.ls-article-power-header i { font-size: 16px; }

.ls-article-power-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ls-article-power-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 380px;
    flex-wrap: wrap;
}
.ls-article-power-card-quota {
    width: 100%;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.ls-article-power-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(91, 127, 245, 0.08);
}

.ls-article-power-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ls-article-power-card-text {
    flex: 1;
    font-size: 13px;
    color: #475569;
    text-align: left;
}

.ls-article-power-card-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
    white-space: nowrap;
}

.ls-article-power-card-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* 权限卡片配色 */
.ls-article-power-pay .ls-article-power-card-icon { background: #fff7ed; color: #ea580c; }
.ls-article-power-pay .ls-article-power-card-btn { background: #ea580c; }
.ls-article-power-follow .ls-article-power-card-icon { background: #fef2f2; color: #dc2626; }
.ls-article-power-follow .ls-article-power-card-btn { background: #dc2626; }
.ls-article-power-vip .ls-article-power-card-icon { background: #fffbeb; color: #d97706; }
.ls-article-power-vip .ls-article-power-card-btn { background: #d97706; }
.ls-article-power-login .ls-article-power-card-icon { background: #f5f3ff; color: #7c3aed; }
.ls-article-power-comment .ls-article-power-card-icon { background: #ecfeff; color: #0891b2; }
.ls-article-power-comment .ls-article-power-card-btn { background: #0891b2; }
.ls-article-power-password .ls-article-power-card-icon { background: #f8fafc; color: #475569; }
.ls-article-power-password .ls-article-power-card-btn { background: #475569; }
.ls-article-power-exp .ls-article-power-card-icon { background: #f0fdf4; color: #16a34a; }

.ls-article-power-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
}

.ls-article-power-footer i { font-size: 14px; }


/* ==================== 隐藏内容 ==================== */
.ls-article-hidden {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ls-article-hidden-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
}

.ls-article-hidden-bar i { font-size: 15px; }

.ls-article-hidden-bar em {
    font-style: normal;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}

/* 底色只铺在标题条上，正文那一段跟着页面走 —— 隐藏内容常常是整篇的一半，
   整块染成绿色时它和上面的正文读起来像两篇文章。 */
.ls-article-hidden-unlocked { border: 1px solid #bbf7d0; }
.ls-article-hidden-unlocked .ls-article-hidden-bar { color: #16a34a; background: #f0fdf4; }
.ls-article-hidden-tag-ok { background: #dcfce7; color: #16a34a; }

.ls-article-hidden-body {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    border-top: 1px solid #bbf7d0;
    word-break: break-word;
}

.ls-article-hidden-body p {
    margin: 0 0 12px;
    min-height: 1em;
}

.ls-article-hidden-body p:last-child {
    margin-bottom: 0;
}

.ls-article-hidden-body img:not(.ls-emoji) {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
    cursor: pointer;
}

.ls-article-hidden-body a {
    color: var(--ls-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.ls-article-hidden-body a:hover {
    border-bottom-color: var(--ls-primary);
}

.ls-article-hidden-body blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 3px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #64748b;
    font-style: italic;
}

.ls-article-hidden-body pre {
    margin: 12px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    position: relative;
}

.ls-article-hidden-body pre code {
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
    color: #334155;
    background: none;
    padding: 0;
}

.ls-article-hidden-body code {
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}

.ls-article-hidden-body .ls-math-formula {
    border-radius: 5px;
    background: #f1f5f9;
    color: #334155;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}

.ls-article-hidden-body .ls-math-formula:not([data-display="block"]) {
    margin: 0 4px;
    overflow-y: hidden;
}

.ls-article-hidden-body .ls-math-formula[data-display="block"] {
    margin: 12px auto;
    padding: 8px 14px;
}

.ls-article-hidden-body ul,
.ls-article-hidden-body ol {
    margin: 10px 0;
    padding-left: 24px;
}

.ls-article-hidden-body li {
    margin-bottom: 4px;
}

.ls-article-hidden-body hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.ls-article-hidden-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.ls-article-hidden-body table th,
.ls-article-hidden-body table td {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.ls-article-hidden-body table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.ls-article-hidden-body video {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0;
}

.ls-article-hidden-body h1,
.ls-article-hidden-body h2,
.ls-article-hidden-body h3,
.ls-article-hidden-body h4 {
    color: #1a1a2e;
    font-weight: 600;
    margin: 20px 0 10px;
    line-height: 1.4;
}

.ls-article-hidden-body h1 { font-size: 22px; }
.ls-article-hidden-body h2 { font-size: 18px; }
.ls-article-hidden-body h3 { font-size: 16px; }
.ls-article-hidden-body h4 { font-size: 14px; }

.ls-article-hidden-locked { border: 1px dashed #cbd5e1; background: #f8fafc; }
.ls-article-hidden-locked .ls-article-hidden-bar { color: #94a3b8; }
.ls-article-hidden-tag-no { background: #f1f5f9; color: #94a3b8; }

.ls-article-hidden-tip {
    padding: 0 16px 10px;
    font-size: 12px;
    color: #94a3b8;
}

/* ==================== 附件 ==================== */
.ls-article-files {
    border-radius: var(--ls-radius-xl, 12px);
    overflow: hidden;
    border: 1px solid #fde68a;
    background: #fffbeb;
    margin-top: 18px;
    margin-bottom: 24px;
    color: #92400e;
}

.ls-article-files-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
}

.ls-article-files-header i { font-size: 15px; }

.ls-article-files-header em {
    font-style: normal;
    margin-left: auto;
    border-radius: var(--ls-radius-full, 999px);
    padding: 2px 8px;
    font-size: 12px;
}

.ls-article-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid #fde68a;
    text-decoration: none;
    color: #334155;
}

.ls-article-file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius-sm, 4px);
    background: #fef3c7;
    flex-shrink: 0;
}

.ls-article-file-icon i { font-size: 18px; }

.ls-article-file-info { flex: 1; min-width: 0; }

.ls-article-file-name {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
}

.ls-article-file-meta {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.ls-article-file-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--ls-radius-full, 999px);
    font-size: 17px;
    color: #d97706;
    background: #fef3c7;
    flex-shrink: 0;
}

.ls-article-file-lock { font-size: 15px; color: #94a3b8; flex-shrink: 0; }
.ls-article-file-locked { opacity: 0.55; cursor: not-allowed; }

/* 附件链接检测按钮 */
.ls-file-check-btn { font-size: 14px; color: #94a3b8; flex-shrink: 0; cursor: pointer; margin-right: 4px; }
.ls-file-check-btn.ls-checking { opacity: 0.5; pointer-events: none; }

/* 网盘链接检测 / 提取码复制按钮 */
.ls-netdisk-check-btn,
.ls-netdisk-copy-pwd {
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 4px;
}
.ls-netdisk-check-btn.ls-checking { opacity: 0.5; pointer-events: none; }

/* 网盘附件外链按钮 */
.ls-article-netdisk-item .ls-article-file-dl {
    display: flex;
    align-items: center;
    color: #d97706;
    font-size: 16px;
    flex-shrink: 0;
}

/* 网盘附件锁定状态 */
.ls-article-netdisk-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ==================== 位置 ==================== */
.ls-article-location-wrap { margin-bottom: 16px; }

.ls-article-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
}

.ls-article-location:hover { background: #e2e8f0; color: #475569; }
.ls-article-location i { font-size: 14px; color: #ef4444; }

/* ==================== 标签 ==================== */
.ls-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ls-article-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--ls-primary-light);
    color: var(--ls-primary);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 500;
}

.ls-article-tag:hover { background: rgba(var(--ls-primary-rgb), 0.12); color: var(--ls-primary-hover); }

/* ==================== 互动栏卡片 ==================== */
.ls-article-interact-card {
    padding: 0;
    background: #fafbfc;
    border: none;
}

.ls-article-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 16px;
}

.ls-article-act-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.ls-article-act-btn:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}

.ls-article-act-btn i { font-size: 18px; }

/* 喜欢激活 */
.ls-article-act-like.ls-liked {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.ls-article-act-like.ls-liked:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* 收藏激活 */
.ls-article-act-collect.ls-on {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
}

.ls-article-act-collect.ls-on:hover {
    background: #fef3c7;
    border-color: #fcd34d;
}

/* ==================== 互动详情 Tab ==================== */
.ls-article-interact {
    padding: 20px 24px;
}

.ls-article-interact-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.ls-article-interact-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    position: relative;
}

.ls-article-interact-tab:hover {
    background: #f8fafc;
    color: #64748b;
}

.ls-article-interact-tab.ls-on {
    background: transparent;
    color: #0f172a;
    font-weight: 600;
}

.ls-article-interact-tab.ls-on::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ls-primary);
}

.ls-article-interact-tab i { font-size: 15px; }
.ls-article-interact-tab[data-tab="likes"] i { color: #ef4444; }
.ls-article-interact-tab[data-tab="gifts"] i { color: #f59e0b; }

.ls-article-interact-tab em {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.ls-article-interact-tab.ls-on em { color: #64748b; }

.ls-article-interact-panel { display: none; }
.ls-article-interact-panel.ls-on { display: block; }

.ls-article-interact-panel[data-panel="likes"] { display: none; }
.ls-article-interact-panel[data-panel="likes"].ls-on {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* 赞面板 */
.ls-article-likes-faces {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ls-article-likes-faces a {
    display: inline-block;
    margin-left: -6px;
    transition: transform 0.15s;
}

.ls-article-likes-faces a:first-child { margin-left: 0; }
.ls-article-likes-faces a:hover { transform: scale(1.15); z-index: 1; }

.ls-article-likes-faces img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.ls-article-likes-text {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

/* 礼物面板 */
.ls-article-gifts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-article-gift-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ls-article-gift-user {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    line-height: 0;
}

.ls-article-gift-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ls-article-gift-info { flex: 1; min-width: 0; }

.ls-article-gift-name {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.ls-article-gift-name:hover { color: var(--ls-primary); }

.ls-article-gift-time {
    font-size: 11px;
    color: #cbd5e1;
    flex-shrink: 0;
    white-space: nowrap;
}

.ls-article-gift-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: #94a3b8;
}

.ls-article-gift-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ls-article-gift-detail em {
    font-style: normal;
    color: #f59e0b;
    font-weight: 500;
}

.ls-article-gift-svga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.15s;
}

.ls-article-gift-svga-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.ls-article-gift-svga-btn i { font-size: 14px; }

/* ==================== 评论区 ==================== */
.ls-article-comments {
    min-height: 100px;
    padding: 20px;
}

/* ==================== 状态提示 ==================== */
.ls-article-status-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 16px auto 0;
    width: var(--ls-width);
    border-radius: 12px;
    font-size: 14px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.ls-article-status-tip i { font-size: 18px; }

/* ==================== 板块权限拦截 ==================== */
.ls-article-bbs-locked-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.ls-article-bbs-locked-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ls-article-bbs-locked-icon i { font-size: 26px; color: #94a3b8; }

.ls-article-bbs-locked-msg {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ls-article-bbs-locked-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--ls-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.ls-article-bbs-locked-btn:hover { opacity: 0.88; }
.ls-article-bbs-locked-btn i { font-size: 16px; }

/* ==================== 文章内嵌视频封面 ==================== */
.ls-article-video-wrapper {
    margin: 4px 2px;
}

.ls-article-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    padding-left: 3px;
    transition: all 0.25s;
    pointer-events: none;
}

.ls-article-video-wrapper:hover .ls-article-video-play {
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==================== 视频弹窗 ==================== */
.ls-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lsVideoModalIn 0.2s ease;
}

@keyframes lsVideoModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ls-video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.ls-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ls-video-modal-close i {
    font-size: 28px;
    color: #fff;
}

/* 静音自动播放提示：视频弹窗内检测到静音时引导用户开启声音 */
.ls-video-modal-sound {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(520px, calc(100% - 140px));
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 17, 32, 0.86), rgba(127, 29, 29, 0.68));
    color: #fff;
    box-shadow: 0 14px 36px rgba(127, 29, 29, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(16px);
}

.ls-video-modal-sound.is-show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.ls-video-modal-sound-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffe4e6;
    white-space: nowrap;
}

.ls-video-modal-sound-text i {
    font-size: 18px;
    color: #fb4f67;
}

.ls-video-modal-sound-btn {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ls-video-modal-body {
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    max-height: 80dvh;
}

.ls-video-modal-body video {
    width: 100%;
    max-height: 80vh;
    max-height: 80dvh;
    background: #000;
    border-radius: 8px;
    outline: none;
}

/* ==================== 版权声明 ==================== */
.ls-article-copyright {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ls-article-copyright-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9ca0ab, #b4b8c2);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
}

.ls-article-copyright-body {
    flex: 1;
    min-width: 0;
}

.ls-article-copyright-title {
    font-size: 14px;
    font-weight: 600;
    color: #3a3a4a;
    margin-bottom: 8px;
}

.ls-article-copyright-content {
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    word-break: break-word;
}

.ls-article-copyright-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.ls-article-copyright-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9ca3af;
}

.ls-article-copyright-meta i {
    font-size: 14px;
    color: #b0b5c0;
}

.ls-article-copyright-meta a {
    color: #6b7280;
    text-decoration: none;
    word-break: break-all;
}

.ls-article-copyright-meta a:hover {
    text-decoration: underline;
    color: #4b5563;
}

/* ---- 表情面板（通用组件，配合 emoji.js 使用） ---- */
.ls-emoji-panel {
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e4e4e7;
}

.ls-emoji-tabs {
    display: flex;
    gap: 0;
    padding: 0 6px;
    border-bottom: 1px solid #f4f4f5;
    overflow-x: auto;
}

.ls-emoji-tabs::-webkit-scrollbar {
    display: none;
}

.ls-emoji-tab {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #71717a;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-emoji-tab:hover {
    color: #18181b;
}

.ls-emoji-tab.active {
    color: var(--ls-theme-color, #2563eb);
    border-bottom-color: var(--ls-theme-color, #2563eb);
}

.ls-emoji-tab img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.ls-emoji-body {
    padding: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.ls-emoji-body::-webkit-scrollbar {
    width: 4px;
}

.ls-emoji-body::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 2px;
}

.ls-emoji-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 2px;
}

.ls-emoji-group[data-type="text"] {
    grid-template-columns: repeat(auto-fill, minmax(auto, max-content));
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ls-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
}

.ls-emoji-item:hover {
    background: #f4f4f5;
}

.ls-emoji-img {
    width: 100%;
    aspect-ratio: 1;
    padding: 3px;
}

.ls-emoji-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ls-emoji-text {
    padding: 4px 8px;
    font-size: 13px;
    color: #18181b;
    border-radius: 6px;
    background: #f4f4f5;
}

/* ============================================
   LS Comment - 全新评论区样式
   ============================================ */

/* 评论区容器 */
.ls-comment-box {
    padding: 16px;
    border-top: 1px solid #f4f4f5;
}

/* ---- 菜单栏 ---- */
.ls-comment-menu {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.ls-comment-count {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-right: auto;
}

.ls-comment-count em {
    font-style: normal;
}

.ls-comment-tabs {
    display: flex;
    background: #f4f4f5;
    border-radius: 6px;
    padding: 2px;
}

.ls-comment-tabs .tab-item {
    padding: 4px 12px;
    font-size: 12px;
    color: #71717a;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}

.ls-comment-tabs .tab-item:hover {
    color: #3f3f46;
}

.ls-comment-tabs .tab-item.on {
    background: #fff;
    color: #18181b;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ---- 评论输入框 ---- */
.ls-comment-form {
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.15s;
}

.ls-comment-form:focus-within {
    border-color: #a1a1aa;
}

.ls-comment-form .ls-comment-textarea {
    width: 100%;
    padding: 12px 14px 6px;
    border: none;
    background: transparent;
    resize: none;
    height: 44px;
    max-height: 180px;
    font-size: 13px;
    line-height: 1.6;
    color: #18181b;
    outline: none;
}

.ls-comment-form .ls-comment-textarea::placeholder {
    color: #a1a1aa;
}

/* 图片上传列表 */
.ls-comment-img-list {
    display: inline-flex;
    gap: 6px;
    padding: 0 14px;
    flex-wrap: wrap;
}

.ls-comment-img-list:empty {
    display: none;
}

.ls-comment-img-list li {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* 上传列表里的图点开是灯箱（`LS.imgPicker` 给每张图挂了 `data-lightbox`），
   所以指针给放大镜 —— 不给的话它和右上角的删除按钮共用一个普通手型，
   看不出这张图本身也是可以点的。 */
.ls-comment-img-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.ls-comment-img-list li .close {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.55);
    border-radius: 0 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
}

.ls-comment-img-list li:hover .close {
    opacity: 1;
}

/* 评论结构化工具预览：位置、群聊 */
.ls-comment-extra-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px 6px;
}

.ls-comment-extra-list:empty {
    display: none;
}

.ls-comment-extra-card {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
}

.ls-comment-extra-card > i,
.ls-comment-extra-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: var(--ls-primary, #2563eb);
    overflow: hidden;
}

.ls-comment-extra-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-comment-extra-card > div:not(.ls-comment-extra-avatar) {
    min-width: 0;
    flex: 1;
}

.ls-comment-extra-card strong,
.ls-comment-extra-card span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-comment-extra-card strong {
    font-size: 13px;
    color: #111827;
}

.ls-comment-extra-card span {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.ls-comment-extra-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
}

.ls-comment-extra-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* 图片拖拽排序 */
.ls-comment-img-list li.ls-img-sort-ghost {
    opacity: 0.35;
}
.ls-comment-img-list li.ls-img-sort-chosen {
    cursor: grabbing;
}
.ls-comment-img-list li.ls-img-sort-drag {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* 工具栏 */
.ls-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 6px;
}

.ls-comment-toolbar .toolbar-left {
    display: flex;
    gap: 5px;
}

.ls-comment-toolbar .tool-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    color: #a1a1aa;
    transition: all 0.15s;
    font-size: 17px;
}

.ls-comment-toolbar .tool-btn:hover {
    color: #52525b;
    background: #f4f4f5;
}

.ls-comment-toolbar .tool-btn.is-active {
    color: var(--ls-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
}

/* 被挡住的图：整张压一个锁，图本身就是服务端发来的打码图。

   **这里不再叠 `filter: blur()`。** 服务端发的是一张 48 px 的小图，浏览器把它
   拉到几百像素本身就够朦胧；再叠一层高斯会把仅有的轮廓也糊掉，而「看得出画的
   是什么」正是这张图存在的理由 —— 让人想买。

   安全不靠这一层：服务端那边要么发打码图、要么发一点灰
   （`server-api/src/infra/image.rs` 的 `blur_pending`），**原图地址一次都不出现**。 */
.ls-ci-images-locked img {
    background: var(--ls-bg-secondary, #e9ebee);
    /* 评论那一格只有 90 px 上下，放大不到两倍，1 px 就够把块状抹平。
       判据与另外两档见 `pc/css/post-list.css` 那一段。 */
    filter: blur(1px);
}

.ls-ci-images-locked a {
    position: relative;
    overflow: hidden;
}

/* 能解锁的那种整块可点；锁图标自己不收事件，免得点在它上面时
   `event.target.closest('.ls-ci-img-locked')` 还要多跳一层。 */
.ls-ci-img-locked[data-comment-id] {
    cursor: pointer;
}

.ls-ci-img-lock {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* 能解锁的那张，鼠标悬上去锁放大一点，看得出它是能点的。 */
.ls-ci-img-locked[data-comment-id] .ls-ci-img-lock {
    transition: transform 0.15s;
}

.ls-ci-img-locked[data-comment-id]:hover .ls-ci-img-lock {
    transform: scale(1.12);
}

/* 档位标识：底栏左边那一组里，紧跟在「来自哪个端」后面。 */
.ls-ci-bar .ls-ci-visibility-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ff9800;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.ls-ci-bar .ls-ci-visibility-tag i {
    font-size: 13px;
}

/* 解锁卡片：正文被挡住时顶替正文那一块。 */
.ls-ci-paywall {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 4px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 152, 0, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.03));
    font-size: 13px;
    color: var(--ls-text-secondary, #6b7280);
}

.ls-ci-paywall-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #ff9800;
}

.ls-ci-paywall-text {
    flex: 1;
    min-width: 0;
}

.ls-ci-paywall-btn {
    flex-shrink: 0;
    height: 28px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.ls-ci-paywall-btn:hover {
    background: #f57c00;
}

/* 可见范围菜单。挂在 body 上按视口坐标定位（`position: fixed`）——
   评论框为了圆角带着 `overflow: hidden`，挂在里面会被整块裁掉。
   层级、圆角、投影与出场动画都照站点通用浮层 `.ls-dropdown` 那一套。 */
.ls-comment-visibility-menu {
    position: fixed;
    z-index: 10020;
    width: 268px;
    padding: 10px;
    border-radius: 10px;
    background: var(--ls-card-bg, #fff);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    transform-origin: top left;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 翻到按钮上方时出场也要从下边缘长出来，否则动画方向和位置是反的。 */
.ls-comment-visibility-menu.is-above {
    transform: scale(0.96) translateY(4px);
    transform-origin: bottom left;
}

.ls-comment-visibility-menu.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ls-comment-visibility-menu .ls-cvm-hd {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-tiers,
.ls-comment-visibility-menu .ls-cvm-currency {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ls-comment-visibility-menu .ls-cvm-item,
.ls-comment-visibility-menu .ls-cvm-coin {
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--ls-bg-secondary, #f3f4f6);
    font-size: 12px;
    line-height: 18px;
    color: var(--ls-text-secondary, #4b5563);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ls-comment-visibility-menu .ls-cvm-item:hover,
.ls-comment-visibility-menu .ls-cvm-coin:hover {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
}

.ls-comment-visibility-menu .ls-cvm-item.is-active,
.ls-comment-visibility-menu .ls-cvm-coin.is-active {
    border-color: var(--ls-primary, #2563eb);
    background: var(--ls-primary, #2563eb);
    color: #fff;
}

/* 付费那一段：只在选中「付费可见」时展开，收起时整段不占位。 */
.ls-comment-visibility-menu .ls-cvm-pay {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ls-border, #eceef1);
}

/* **这一条不能省**：浏览器给 `[hidden]` 的是 `display: none`，
   而上面那条 `display: flex` 的选择器更具体，会把它盖掉 ——
   少了这一句，付费的货币与价钱在每一档下面都摆着。 */
.ls-comment-visibility-menu .ls-cvm-pay[hidden] {
    display: none;
}

.ls-comment-visibility-menu .ls-cvm-price {
    display: flex;
    align-items: center;
    height: 30px;
    padding-right: 10px;
    border: 1px solid var(--ls-border, #e5e6eb);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.ls-comment-visibility-menu .ls-cvm-price:focus-within {
    border-color: var(--ls-primary, #2563eb);
}

.ls-comment-visibility-menu .ls-cvm-amount {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: var(--ls-text, #18181b);
    outline: none;
}

.ls-comment-visibility-menu .ls-cvm-unit {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-rmb {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ls-text-tertiary, #9ca3af);
}

.ls-comment-visibility-menu .ls-cvm-imgonly {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ls-text-secondary, #4b5563);
    cursor: pointer;
}

/* 与付费那一段同理：`display: flex` 的选择器更具体，会盖掉 `[hidden]`。 */
.ls-comment-visibility-menu .ls-cvm-imgonly[hidden] {
    display: none;
}

.ls-comment-visibility-menu .ls-cvm-imgonly-input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--ls-primary, #2563eb);
    cursor: pointer;
}

/* 提交按钮 */
.ls-comment-submit {
    padding: 0 18px;
    height: 30px;
    border: none;
    border-radius: 15px;
    background: var(--ls-primary, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 30px;
}

.ls-comment-submit:hover {
    filter: brightness(1.08);
}

.ls-comment-submit.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* @用户列表 */
.ls-comment-at-box:empty {
    display: none;
}

.ls-comment-at-box {
    padding: 4px 14px 8px;
}

/* ---- 评论列表 ---- */
.ls-comment-list {
    display: flex;
    flex-direction: column;
}

/* ---- 评论项 ---- */
.ls-comment-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
}

.ls-comment-item > .ls-avatar .lsaf-avatar-hook {
    display: block;
    width: 100%;
    height: 100%;
}

.ls-comment-item > .ls-avatar .ls-avatar-frame {
    pointer-events: none;
}

.ls-comment-list > .ls-comment-item + .ls-comment-item {
    border-top: 1px solid #f4f4f5;
}

/* 闪烁 */
.ls-comment-item.fade {
    animation: ls-fade 1.2s ease;
}

/* 通知跳转高亮 */
.ls-comment-item.ls-comment-focus {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
    padding: 10px;
}

@keyframes ls-fade {
    0%, 40% { background: rgba(37, 99, 235, 0.04); }
    100% { background: transparent; }
}

/* 主体 */
.ls-ci-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 用户信息 */
.ls-ci-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ls-ci-user {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #18181b;
}

.ls-ci-user:hover {
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-nickname {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-header .ls-mark {
    font-size: 10px;
    padding: 0 4px;
    line-height: 16px;
    border-radius: 3px;
}

.ls-ci-header .ls-user-title {
    flex-shrink: 0;
}

.ls-ci-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ls-ci-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 3px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 10px;
    line-height: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.ls-ci-badge-author-engaged {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-badge-supporter {
    background: #fff7ed;
    color: #c2410c;
}

.ls-ci-badge-highlight {
    background: #f8fafc;
    color: #52525b;
}

.ls-ci-badge-part-author {
    color: var(--ls-theme-color, #2563eb);
}

.ls-ci-badge-part-supporter {
    color: #c2410c;
}

.ls-ci-badge-sep {
    margin: 0 4px;
    color: #a1a1aa;
}

/* 评论内容 */
.ls-ci-content {
    font-size: 14px;
    line-height: 1.7;
    color: #27272a;
    word-break: break-word;
}

.ls-ci-content .comment-sticky {
    display: inline-block;
    padding: 0 5px;
    font-size: 10px;
    line-height: 16px;
    color: #f43f5e;
    border: 1px solid #fda4af;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: text-bottom;
    font-weight: 500;
}

/* 引用回复 */
.ls-ci-reply-ref {
    background: #fafafa;
    border-left: 2px solid #e4e4e7;
    border-radius: 0 6px 6px 0;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #71717a;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-reply-ref:hover {
    background: #f4f4f5;
}

/* @用户 */
.ls-ci-at-list {
    display: inline;
}

.ls-ci-at {
    color: #2563eb;
    margin-right: 2px;
    font-size: inherit;
    font-weight: 500;
}

.ls-ci-at:hover {
    text-decoration: underline;
}

/* 评论图片 */
.ls-ci-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 280px;
    margin-top: 6px;
}

.ls-ci-images.img-1 {
    grid-template-columns: 1fr;
    max-width: 160px;
}

.ls-ci-images.img-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 220px;
}

.ls-ci-images a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.ls-ci-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.ls-ci-images a:hover img {
    transform: scale(1.03);
}

.ls-ci-images k.gif {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 评论中的位置行 */
.ls-ci-location-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin-top: 4px;
    color: #2563eb;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    vertical-align: top;
}

.ls-ci-location-line i {
    font-size: 15px;
    color: #3b82f6;
}

.ls-ci-location-line span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-location-line:hover {
    color: #1d4ed8;
}

/* 评论中的群聊卡片 */
.ls-ci-tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(340px, 100%);
    min-height: 68px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ls-ci-tool-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ls-ci-card-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0284c7;
}

.ls-ci-card-avatar {
    background: #eef2ff;
    color: #4f46e5;
}

.ls-ci-card-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-ci-card-info {
    min-width: 0;
    flex: 1;
}

.ls-ci-card-info strong,
.ls-ci-card-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ci-card-info strong {
    font-size: 14px;
    color: #111827;
}

.ls-ci-card-info span {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

/* ---- 操作栏 ---- */
.ls-ci-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.ls-ci-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a1a1aa;
}

.ls-ci-bar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ls-ci-bar-right > span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    color: #a1a1aa;
    transition: all 0.15s;
}

.ls-ci-bar-right > span:hover {
    background: #f4f4f5;
    color: #52525b;
}

.ls-ci-bar-right > span i {
    font-size: 14px;
}

.ls-ci-bar-right > span em {
    font-style: normal;
}

/* 点赞激活 */
.ls-ci-up.is-up {
    color: #f43f5e !important;
}

.ls-ci-up.is-up:hover {
    color: #f43f5e !important;
    background: #fff1f2 !important;
}

/* ---- 子评论 ---- */
.ls-ci-child-list {
    margin-top: 6px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 2px solid #f4f4f5;
}

.ls-ci-child-list:empty {
    display: none;
}

.ls-ci-child-list .ls-comment-item {
    padding: 10px 0;
}

/* 子评论头像缩小 */
.ls-ci-child-list .ls-avatar {
    width: 24px;
    height: 24px;
}

.ls-ci-child-list .ls-avatar img.avatar,
.ls-ci-child-list .ls-avatar > a > img {
    width: 24px;
    height: 24px;
}

.ls-ci-child-list .ls-avatar .ls-avatar-verify img {
    width: 12px;
    height: 12px;
}
.ls-ci-child-list .ls-avatar .ls-online-dot { width: 6px; height: 6px; }

.ls-ci-child-list .ls-ci-content {
    font-size: 13px;
}

/* 子评论操作按钮 */
.ls-ci-child-more {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.ls-ci-child-more span {
    font-size: 12px;
    color: var(--ls-theme-color, #2563eb);
    cursor: pointer;
    transition: opacity 0.15s;
}

.ls-ci-child-more span:hover {
    opacity: 0.7;
}

/* 「共 N 条回复」里的条数：em 是给 JS 定位用的，别让它斜体 */
.ls-ci-child-more em {
    font-style: normal;
}

.ls-ci-child-fold {
    color: #a1a1aa !important;
}

/* ---- 加载更多 ---- */
.ls-comment-load-more {
    text-align: center;
    padding: 8px 0 0;
}

.ls-comment-load-more span {
    font-size: 13px;
    color: var(--ls-theme-color, #2563eb);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: opacity 0.15s;
}

.ls-comment-load-more span:hover {
    opacity: 0.7;
}

.ls-comment-load-more span i {
    font-size: 16px;
}

/* 空状态 */
.ls-comment-empty {
    text-align: center;
    padding: 36px 0;
    color: #a1a1aa;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ls-comment-empty i {
    font-size: 32px;
    color: #d4d4d8;
}

/* 加载中 */
.ls-comment-loading {
    text-align: center;
    padding: 20px 0;
}

/* ---- 回复框 ---- */
.ls-comment-reply-form {
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    transition: border-color 0.15s;
}

.ls-comment-reply-form:focus-within {
    border-color: #a1a1aa;
}

.ls-comment-reply-form .ls-comment-textarea {
    width: 100%;
    padding: 10px 12px 4px;
    border: none;
    background: transparent;
    resize: none;
    height: 38px;
    max-height: 120px;
    font-size: 13px;
    line-height: 1.5;
    color: #18181b;
    outline: none;
}

.ls-comment-reply-form .ls-comment-toolbar {
    padding: 2px 6px 4px;
}

.ls-comment-reply-form .ls-comment-submit {
    height: 26px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 26px;
    border-radius: 13px;
}

.ls-comment-reply-form .tool-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
}

/* ---- LSEditor 编辑器 ---- */
.ls-editor {
    border: none;
    background: transparent;
}

/* 主评论框 LSEditor */
.ls-comment-form .ls-editor {
    min-height: 44px;
    max-height: 180px;
    padding: 12px 14px 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #18181b;
    outline: none;
    word-break: break-word;
    overflow-y: auto;
}

/* 回复框 LSEditor */
.ls-comment-reply-form .ls-editor {
    min-height: 38px;
    max-height: 120px;
    padding: 10px 12px 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #18181b;
    outline: none;
    word-break: break-word;
    overflow-y: auto;
}

.ls-editor:empty:not(:focus)::before {
    content: attr(data-placeholder);
    color: #a1a1aa;
    pointer-events: none;
}

.ls-editor .ls-emoji {
    width: auto;
    height: 1.4em;
    vertical-align: middle;
    margin: 0 1px;
}

/* ---- 语音条（评论列表） ---- */
.ls-ci-voice {
    --ls-voice-duration: 1;
    --ls-voice-width: clamp(82px, calc(82px + (var(--ls-voice-duration) - 1) * 3px), 180px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-width: 82px;
    width: var(--ls-voice-width);
    max-width: 180px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #bfd6ff;
    background: linear-gradient(90deg, #f3f8ff 0%, #e7f0ff 100%);
    color: #1d4ed8;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease;
}

.ls-ci-voice:hover {
    border-color: #93c5fd;
}

.ls-ci-voice em {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    color: #1e40af;
}

.ls-ci-voice-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.ls-ci-voice-wave i {
    display: block;
    width: 2px;
    border-radius: 999px;
    background: #60a5fa;
}

.ls-ci-voice-wave i:nth-child(1) { height: 5px; }
.ls-ci-voice-wave i:nth-child(2) { height: 9px; }
.ls-ci-voice-wave i:nth-child(3) { height: 7px; }
.ls-ci-voice-wave i:nth-child(4) { height: 10px; }
.ls-ci-voice-wave i:nth-child(5) { height: 6px; }

.ls-ci-voice.is-playing {
    border-color: #60a5fa;
    background: linear-gradient(90deg, #e7f1ff 0%, #dbeafe 100%);
}

.ls-ci-voice.is-playing .ls-ci-voice-wave i {
    animation: ls-ci-voice-playing .8s ease-in-out infinite;
}

.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(1) { animation-delay: .02s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(2) { animation-delay: .12s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(3) { animation-delay: .22s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(4) { animation-delay: .32s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(5) { animation-delay: .42s; }

@keyframes ls-ci-voice-playing {
    0%, 100% {
        transform: scaleY(.55);
        opacity: .55;
    }
    50% {
        transform: scaleY(1.35);
        opacity: 1;
    }
}

/* 群聊选择弹窗 */
.ls-comment-group-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-comment-group-tabs {
    display: flex;
    gap: 8px;
}

.ls-comment-group-tabs button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.ls-comment-group-tabs button:hover,
.ls-comment-group-tabs button.is-active {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
    background: #eff6ff;
}

.ls-comment-group-search {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #94a3b8;
    background: #f8fafc;
}

.ls-comment-group-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
}

.ls-comment-group-list {
    max-height: 360px;
    overflow-y: auto;
}

.ls-comment-group-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.ls-comment-group-item:hover {
    background: #f8fafc;
}

.ls-comment-group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2ff;
    color: #4f46e5;
}

.ls-comment-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-comment-group-main {
    min-width: 0;
    flex: 1;
}

.ls-comment-group-main strong,
.ls-comment-group-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-comment-group-main strong {
    font-size: 14px;
    color: #111827;
}

.ls-comment-group-main em {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    font-style: normal;
}

.ls-comment-group-empty,
.ls-comment-group-loading {
    padding: 32px 0;
    color: #94a3b8;
    text-align: center;
}

/**
 * @用户选择弹窗样式
 * 用于 SNS 首页快捷发布和评论区
 */

/* ========== 弹窗遮罩 ========== */
.ls-at-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10009;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.ls-at-overlay.show {
    opacity: 1;
}

/* ========== 弹窗主体 ========== */
.ls-at-modal {
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    max-height: 80dvh;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ls-at-overlay.show .ls-at-modal {
    transform: translateY(0) scale(1);
}

/* ========== 头部 ========== */
.ls-at-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
}

.ls-at-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.ls-at-title span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

.ls-at-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
}

.ls-at-close:hover {
    background: #e5e5e5;
    color: #333;
    transform: rotate(90deg);
}

/* ========== 搜索框 ========== */
.ls-at-search {
    padding: 0 20px 14px;
}

.ls-at-search-wrap {
    position: relative;
}

.ls-at-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.ls-at-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.ls-at-search input::placeholder {
    color: #aaa;
}

.ls-at-search input:focus {
    border-color: var(--ls-color-primary, #1890ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* ========== 用户列表区域 ========== */
.ls-at-body {
    flex: 1;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 12px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ls-at-body::-webkit-scrollbar {
    width: 5px;
}

.ls-at-body::-webkit-scrollbar-track {
    background: transparent;
}

.ls-at-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.ls-at-body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.ls-at-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ========== 用户项 ========== */
.ls-at-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    border: 1px solid transparent;
}

.ls-at-item:hover {
    border-color: #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ls-at-item.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ls-at-item-info {
    flex: 1;
    min-width: 0;
}

.ls-at-item-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-at-item-name .ls-avatar-verify {
    margin-left: 4px;
    vertical-align: middle;
}

.ls-at-item-id {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

.ls-at-item-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 11px;
}

.ls-at-item.selected .ls-at-item-check {
    background: var(--ls-color-primary, #1890ff);
    border-color: var(--ls-color-primary, #1890ff);
    color: #fff;
}

/* ========== 已选用户区域 ========== */
.ls-at-selected {
    padding: 14px 20px;
    background: #fff;
}

.ls-at-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ls-at-selected-title {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ls-at-selected-count {
    font-size: 11px;
    color: #fff;
    background: var(--ls-color-primary, #1890ff);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.ls-at-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 80px;
    min-height: 32px;
    overflow-y: auto;
    align-content: flex-start;
}

.ls-at-selected-list::-webkit-scrollbar {
    width: 3px;
}

.ls-at-selected-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.ls-at-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.15s;
    max-width: 140px;
}

.ls-at-selected-tag:hover {
    background: #fff;
    border-color: #ddd;
}

.ls-at-selected-tag-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ls-at-selected-tag-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-at-selected-tag-name {
    font-size: 12px;
    color: #333;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-at-selected-tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: #e8e8e8;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 10px;
    border-radius: 50%;
    transition: all 0.15s;
    margin-left: 2px;
    flex-shrink: 0;
}

.ls-at-selected-tag-remove:hover {
    background: #ffebee;
    color: #f44336;
}

.ls-at-selected-empty {
    color: #bbb;
    font-size: 12px;
    padding: 6px 0;
    text-align: center;
    width: 100%;
}

/* ========== 底部按钮 ========== */
.ls-at-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 16px;
}

.ls-at-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ls-at-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.ls-at-btn-cancel:hover {
    background: #e5e5e5;
    color: #333;
}

.ls-at-btn-confirm {
    background: var(--ls-color-primary, #1890ff);
    color: #fff;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.ls-at-btn-confirm:hover {
    filter: brightness(1.1);
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.ls-at-btn-confirm:active {
    transform: translateY(0);
}

/* ========== 空状态和加载状态 ========== */
.ls-at-empty,
.ls-at-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    padding: 40px 20px;
}

.ls-at-empty i,
.ls-at-loading i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #ddd;
}

.ls-at-empty span,
.ls-at-loading span {
    font-size: 13px;
}

/* ========== @用户标签（评论区/发布区展示） ========== */
.ls-at-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
}

.ls-at-tags:empty {
    display: none;
}

.ls-at-tags .at {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 3px;
    background: #f0f7ff;
    border: 1px solid #d6e8fa;
    border-radius: 14px;
    font-size: 12px;
    color: var(--ls-color-primary, #1890ff);
    cursor: pointer;
    transition: all 0.15s;
}

.ls-at-tags .at:hover {
    background: #ffebee;
    border-color: #ffcdd2;
    color: #f44336;
}

.ls-at-tags .at img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ls-at-tags .at .at-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 分组标题 ========== */
.ls-at-group-title {
    font-size: 11px;
    color: #999;
    padding: 8px 10px 4px;
    font-weight: 500;
}

.ls-at-group-title i {
    margin-right: 4px;
    font-size: 12px;
}

/**
 * LSMoveBBS - 移动帖子板块弹窗样式
 * 配合 pc/js/post-actions.js 使用
 */

.ls-move-bbs-modal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ls-move-bbs-modal-content-title {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ls-bg);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--ls-border-light);
}

.ls-move-bbs-current-name,.ls-move-bbs-target-name {
    color: var(--ls-primary);
}

.ls-move-bbs-search-wrap {
    position: relative;
}

.ls-move-bbs-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.ls-move-bbs-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--ls-border-light);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: var(--ls-bg);
    box-sizing: border-box;
}

.ls-move-bbs-search-wrap input::placeholder {
    color: var(--ls-text-muted);
}

.ls-move-bbs-search-wrap input:focus {
    border-color: var(--ls-color-primary, #1890ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.ls-move-bbs-modal-content-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-move-bbs-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    border: 1px solid transparent;
}

.ls-move-bbs-list-item:hover {
    border-color: #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ls-move-bbs-list-item.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ls-move-bbs-item-name {
    font-size: 14px;
}

.ls-move-bbs-item-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 12px;
}

.ls-move-bbs-list-item.selected .ls-move-bbs-item-check {
    background: var(--ls-color-primary, #1890ff);
    border-color: var(--ls-color-primary, #1890ff);
    color: #fff;
}
/**
 * Cloud File Picker - 云文件选择器样式
 *
 * @package LightSNS
 * @since 2026-02-08
 */

/* ===== 弹窗主体 ===== */
#ls-cloud-file {
    z-index: 10030;
}

#ls-cloud-file .ls-modal-content {
    height: 560px;
    max-height: 80vh;
    max-height: 80dvh;
}

#ls-cloud-file .ls-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== 文件网格 ===== */
.ls-cf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.ls-cf-grid::-webkit-scrollbar {
    width: 4px;
}

.ls-cf-grid::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 2px;
}

/* ===== 文件项 ===== */
.ls-cf-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--ls-bg, #f8fafc);
}

.ls-cf-item:hover {
    border-color: var(--ls-border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 选中态 */
.ls-cf-item.selected {
    border-color: var(--ls-primary, #3b82f6);
    box-shadow: 0 0 0 1px var(--ls-primary, #3b82f6);
}

.ls-cf-item.selected .ls-cf-check {
    opacity: 1;
}

/* 勾选图标 */
.ls-cf-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--ls-primary, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 3;
    pointer-events: none;
}

/* 后缀标签 */
.ls-cf-ext-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
}

/* ===== 缩略图区域 ===== */
.ls-cf-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-cf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.ls-cf-item:hover .ls-cf-thumb img {
    transform: scale(1.03);
}

/* 视频播放图标 */
.ls-cf-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    z-index: 2;
    transition: background 0.15s;
}

.ls-cf-item:hover .ls-cf-play {
    background: rgba(0, 0, 0, 0.7);
}

/* 非图片类型的图标展示 */
.ls-cf-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-cf-icon i {
    font-size: 28px;
    color: var(--ls-text-muted, #9ca3af);
}

/* ===== 文件信息 ===== */
.ls-cf-info {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 30px;
}

.ls-cf-name {
    font-size: 11px;
    color: var(--ls-text-secondary, #4b5563);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* 引用数 */
.ls-cf-biz {
    font-size: 10px;
    color: var(--ls-text-muted, #9ca3af);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ls-cf-biz i {
    font-size: 12px;
}

/* 删除按钮 */
.ls-cf-delete {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 3;
    cursor: pointer;
}

.ls-cf-item:hover .ls-cf-delete {
    opacity: 1;
}

.ls-cf-delete:hover {
    background: var(--ls-danger, #ef4444);
}

/* ===== 预览按钮（在缩略图内部右下角） ===== */
.ls-cf-preview {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 3;
    cursor: pointer;
}

.ls-cf-item:hover .ls-cf-preview {
    opacity: 1;
}

.ls-cf-preview:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== 底部栏 ===== */

/* 外层只留左右的 24px 水槽（与 `.ls-cf-grid` 对齐），纵向内边距和分隔线
   全部交给里面那一层 `.ls-cf-footer`。
   两件事必须一起做：
   - 外层 `.ls-modal-footer` 默认 `justify-content:flex-end`，`.ls-cf-footer`
     不撑满就只有内容那么宽，于是它自己的 `space-between` 等于没有 ——
     「已选择 x 个」被挤到右边贴着「确定」；
   - 外层默认还画一条 `border-top`，里层再画一条就是两条平行线。 */
#ls-cloud-file .ls-modal-footer {
    padding: 0 24px;
    border-top: none;
}

.ls-cf-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--ls-border, #e5e7eb);
    flex-shrink: 0;
}

/* 「已选择 x 个 / x」贴住左边缘：`margin-right:auto` 让它和右侧那一组
   之间的空白全部落在中间，而不是被 `space-between` 按内容宽度分。 */
.ls-cf-footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    gap: 12px;
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
}

.ls-cf-selected-count {
    color: var(--ls-primary, #3b82f6);
    font-weight: 500;
}

.ls-cf-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 分页 ===== */
.ls-cf-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.ls-cf-page-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 4px;
    background: #fff;
    color: var(--ls-text-secondary, #4b5563);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.ls-cf-page-btn:hover {
    border-color: var(--ls-primary, #3b82f6);
    color: var(--ls-primary, #3b82f6);
}

.ls-cf-page-btn.active {
    background: var(--ls-primary, #3b82f6);
    border-color: var(--ls-primary, #3b82f6);
    color: #fff;
}

.ls-cf-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 空状态 ===== */
.ls-cf-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 13px;
    gap: 8px;
}

.ls-cf-empty i {
    font-size: 40px;
    color: #d4d4d8;
}

/* ===== 加载状态 ===== */
.ls-cf-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* ===== 音频预览播放器 ===== */
.ls-cf-audio-player {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10031;
    min-width: 300px;
}

.ls-cf-audio-player audio {
    height: 32px;
    flex: 1;
}

.ls-cf-audio-close {
    cursor: pointer;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 16px;
    transition: color 0.15s;
}

.ls-cf-audio-close:hover {
    color: var(--ls-text, #1f2937);
}

/* ===== 视频预览弹窗 ===== */
.ls-cf-video-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10031;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.ls-cf-video-preview.show {
    opacity: 1;
}

.ls-cf-video-wrap {
    width: 70vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ls-cf-video-container {
    width: 100%;
    height: 100%;
}

.ls-cf-video-container video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ls-cf-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.15s;
}

.ls-cf-video-close:hover {
    color: #fff;
}


