/**
 * 动态详情页样式 - V2 全新设计
 * 浅色系 · 社交动态风格
 */

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

.wd-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

/* ==================== 内容卡片 ==================== */
.wd-content-card {
    padding: 24px;
}

/* ==================== 作者信息 ==================== */
.wd-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.wd-author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}

.wd-author-name a {
    color: #1a1a2e;
    text-decoration: none;
}

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

.wd-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
}

.wd-badge-lv {
    background: #eef2ff;
    color: #5b7ff5;
}

.wd-badge-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.wd-author-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.wd-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.wd-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ls-post-more {
    cursor: pointer;
}

/* ==================== 关注按钮 ==================== */
.wd-follow-btn {
    padding: 5px 16px;
    border-radius: 20px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ls-primary);
    color: #fff;
    white-space: nowrap;
}

.wd-follow-btn:hover {
    opacity: 0.88;
}

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

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

/* ==================== 板块卡片（底部） ==================== */
.wd-bbs-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.15s;
    margin-bottom: 16px;
}

.wd-bbs-card:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.wd-bbs-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.wd-bbs-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.wd-bbs-card-body {
    flex: 1;
    min-width: 0;
}

.wd-bbs-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

.wd-bbs-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 11px;
    color: #94a3b8;
}

.wd-bbs-follow-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--ls-border);
    background: #fff;
    font-size: 12px;
    color: var(--ls-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.wd-bbs-follow-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.wd-bbs-follow-btn.ls-followed {
    color: #94a3b8;
    border-color: #f1f5f9;
    background: #f8fafc;
}
.wd-bbs-follow-btn.ls-followed:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.wd-bbs-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.wd-bbs-tag:hover {
    background: #e2e8f0;
    color: #475569;
}

.wd-bbs-tag img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ==================== 徽章行 ==================== */
.wd-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wd-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.wd-label i {
    font-size: 12px;
}

.wd-label-sticky {
    background: #fff7ed;
    color: #ea580c;
}

.wd-label-private {
    background: #f3e5f5;
    color: #7b1fa2;
}

.wd-label-recommend {
    background: #f0fdf4;
    color: #16a34a;
}

.wd-label-hot {
    background: #fef2f2;
    color: #dc2626;
}

.wd-label-view {
    background: #f8fafc;
    color: #94a3b8;
}

/* ==================== 正文 ==================== */
.wd-body {
    margin-bottom: 16px;
}

.wd-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.wd-at-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

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

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

.wd-text {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}

.wd-text a {
    color: #5b7ff5;
}

/* ==================== 图片区域 ==================== */
.wd-images {
    margin-bottom: 16px;
}

.wd-img-switch {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    margin-bottom: 8px;
}

.wd-img-switch i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}

.wd-img-switch i:hover {
    background: #f1f5f9;
    color: #64748b;
}

.wd-img-switch i.ls-on {
    color: #5b7ff5;
    background: #eef2ff;
}

.wd-img-grid {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

.wd-img-grid.one { grid-template-columns: 1fr; }
.wd-img-grid.two { grid-template-columns: 1fr 1fr; }
.wd-img-grid.three { grid-template-columns: 1fr 1fr 1fr; }

.wd-img-item {
    position: relative;
    overflow: hidden;
}

.wd-img-item a {
    display: block;
}

.wd-img-grid.one {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wd-img-grid.one .wd-img-item {
    width: 70%;
    display: flex;
    justify-content: center;
}

.wd-img-grid.one .wd-img-item a {
    display: inline-block;
    max-width: 100%;
    position: relative;
    vertical-align: top;
}

.wd-img-grid.one .wd-img-item img {
    max-width: 100%;
    width: auto;
    max-height: none;
    height: auto;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
}

.wd-img-grid:not(.one) .wd-img-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.2s;
}

.wd-img-grid:not(.one) .wd-img-item:hover img {
    transform: scale(1.03);
}

/* 锁定图片 */
.wd-img-item.wd-img-locked {
    cursor: default;
}

.wd-img-item.wd-img-locked a {
    cursor: default;
}

.wd-img-item.wd-img-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.wd-img-grid.one .wd-img-item.wd-img-locked::after {
    display: none;
}

.wd-img-grid.one .wd-img-item.wd-img-locked a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.wd-img-item.wd-img-locked .ls-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

.wd-img-item.wd-img-locked:hover img {
    transform: none;
}

.wd-gif-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==================== 代码块 ==================== */
.wd-code {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.wd-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.wd-code-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-weight: 500;
}

.wd-code-lang i {
    font-size: 15px;
}

.wd-code-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.15s;
}

.wd-code-copy:hover {
    background: #e2e8f0;
    color: #475569;
}

.wd-code-copy i {
    font-size: 14px;
}

.wd-code-body {
    padding: 14px 16px;
    overflow-x: auto;
    background: #fafbfc;
}

.wd-code-body pre {
    margin: 0;
}

.wd-code-body code {
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
    color: #334155;
}

/* ==================== 附件 ==================== */
.wd-files {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.wd-files-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

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

.wd-files-header em {
    font-style: normal;
    margin-left: auto;
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}

.wd-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #334155;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.wd-file-item:last-child {
    border-bottom: none;
}

.wd-file-item:hover {
    background: #f8fafc;
}

.wd-file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    flex-shrink: 0;
}

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

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

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

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

.wd-file-dl {
    font-size: 17px;
    color: #5b7ff5;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.wd-file-item:hover .wd-file-dl {
    transform: translateY(1px);
}

.wd-file-lock {
    font-size: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}

.wd-file-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.wd-file-locked:hover {
    background: transparent;
}

/* 附件链接检测按钮 */
.ls-file-check-btn {
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 4px;
    transition: color 0.15s;
}
.ls-file-check-btn:hover { color: var(--ls-primary, #1a73e8); }
.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;
    transition: color 0.15s;
}
.ls-netdisk-check-btn:hover,
.ls-netdisk-copy-pwd:hover { color: var(--ls-primary, #1a73e8); }
.ls-netdisk-check-btn.ls-checking { opacity: 0.5; pointer-events: none; }

/* 网盘附件外链按钮 */
.wd-netdisk-item .wd-file-dl {
    display: flex;
    align-items: center;
    color: var(--ls-primary, #1a73e8);
    font-size: 16px;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.wd-netdisk-item .wd-file-dl:hover { opacity: 0.7; }

/* 网盘附件锁定状态 */
.wd-netdisk-locked {
    opacity: 0.55;
    cursor: not-allowed;
}
.wd-netdisk-locked:hover { background: transparent; }

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

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

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

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

.wd-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;
}
.wd-power-card-quota {
    width: 100%;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

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

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

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

.wd-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;
}

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

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

.wd-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;
}

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

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

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

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

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

.wd-hidden-unlocked {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.wd-hidden-unlocked .wd-hidden-bar {
    color: #16a34a;
}

.wd-hidden-tag-ok {
    background: #dcfce7;
    color: #16a34a;
}

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

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

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

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

.wd-hidden-body a {
    color: var(--ls-primary);
    text-decoration: none;
}

.wd-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;
}

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

.wd-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;
}

.wd-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;
}

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

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

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

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

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

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

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

.wd-hidden-locked {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.wd-hidden-locked .wd-hidden-bar {
    color: #94a3b8;
}

.wd-hidden-power {
    padding: 0 16px 12px;
}

.wd-hidden-power .wd-power-header {
    justify-content: flex-start;
    margin: 2px 0 10px;
}

.wd-hidden-power .wd-power-cards {
    justify-content: flex-start;
}

.wd-hidden-power .wd-power-card {
    flex: 1 1 220px;
    max-width: none;
    padding: 9px 12px;
}

.wd-hidden-power .wd-power-footer {
    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 10px;
}

.wd-hidden-tag-no {
    background: #f1f5f9;
    color: #94a3b8;
}

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

/* ==================== 位置 ==================== */
.wd-location-wrap {
    margin-bottom: 12px;
}

.wd-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;
}

.wd-location:hover {
    background: #e2e8f0;
    color: #475569;
}

.wd-location i {
    font-size: 14px;
    color: #ef4444;
}

/* ==================== 标签 ==================== */
.wd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

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

.wd-tag:hover {
    background: #dbeafe;
    color: #4f46e5;
}

/* ==================== 互动栏 ==================== */
.wd-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
}

.wd-act-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.wd-act-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

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

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

.wd-act-like.ls-liked:hover {
    background: #fee2e2;
}

/* 点赞弹跳 */
.wd-act-like.ls-like-bounce {
    animation: ls-like-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.wd-act-collect.ls-on:hover {
    background: #fef3c7;
}

/* ==================== 互动详情 Tab ==================== */
.wd-interact {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.wd-interact-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.wd-interact-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

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

.wd-interact-tab.ls-on {
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
}

.wd-interact-tab i {
    font-size: 14px;
}

.wd-interact-tab[data-tab="likes"] i { color: #ef4444; }
.wd-interact-tab[data-tab="gifts"] i { color: #f59e0b; }
.wd-interact-tab[data-tab="rewards"] i { color: #8b5cf6; }

.wd-interact-tab em {
    font-style: normal;
    font-size: 11px;
    color: #94a3b8;
}

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

.wd-interact-panel {
    display: none;
}

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

/* 赞面板 */
.wd-interact-panel[data-panel="likes"] {
    display: none;
}

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

.wd-interact-panel .wd-likes-faces {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}

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

.wd-interact-panel .wd-likes-faces a:first-child {
    margin-left: 0;
}

.wd-interact-panel .wd-likes-faces a:hover {
    transform: scale(1.15);
    z-index: 1;
}

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

.wd-interact-panel .wd-likes-text {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

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

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

.wd-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;
}

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

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

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

/* ==================== 侧边栏：相关推荐 ==================== */
.wd-related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: opacity 0.15s;
}

.wd-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wd-related-item:first-of-type {
    padding-top: 0;
}

.wd-related-item:hover {
    opacity: 0.8;
}

.wd-ri-text {
    flex: 1;
    min-width: 0;
}

.wd-ri-title {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.wd-ri-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #94a3b8;
}

.wd-ri-meta i {
    font-size: 12px;
}

.wd-ri-cover {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ==================== 状态提示 ==================== */
.wd-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;
}

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

/* ==================== 代码锁定 ==================== */
.wd-code-locked {
    min-height: 80px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-code-locked-mask {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: #94a3b8;
}

.wd-code-locked-mask i {
    font-size: 24px;
}

.wd-code-locked-mask span {
    font-size: 13px;
}

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

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

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

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

.wd-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;
}

.wd-bbs-locked-btn:hover {
    opacity: 0.88;
}

.wd-bbs-locked-btn i {
    font-size: 16px;
}

.wd-bbs-locked-footer {
    padding-top: 0;
    border-top: 1px solid #f1f5f9;
}

.wd-bbs-locked-footer .wd-bbs-card {
    margin-bottom: 0;
    border: none;
    background: transparent;
}

/* ==================== 红包卡 / 引用卡 ====================
   红包内容与转发也走这一页，正文区里按 post_type 多出一张卡。
   卡片本体的样式不在这里：红包卡在 redbag.css，引用卡在 post-list.css，
   与列表里那两张是同一份。这里只管它们在这一页里的间距，
   以及红包行已经不在时那块占位。 */

.wd-redbag,
.wd-quote {
    margin-bottom: 16px;
}

.wd-redbag .ls-redbag-card-receivers {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.wd-redbag .ls-redbag-card-receivers img {
    width: 24px;
    height: 24px;
    border-radius: var(--ls-radius-full);
    object-fit: cover;
    border: 1px solid var(--ls-border-light);
}

.wd-redbag .ls-redbag-card-receivers-more,
.wd-redbag .ls-redbag-card-receivers-text {
    font-size: 12px;
    color: var(--ls-text-muted);
}

.wd-redbag-gone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 0;
    border-radius: var(--ls-radius-xl);
    background: var(--ls-bg-light);
    color: var(--ls-text-muted);
    font-size: 14px;
}

/**
 * PC 音乐详情页 - 沉浸式播放器
 * md- 前缀命名，对齐视频详情页的全屏体验。
 */

.md-page {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    overflow: hidden;
    background: #05080c;
    color: #fff;
}

.md-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #05080c;
}

.md-bg img {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(46px) brightness(0.42) saturate(0.82);
    transform: scale(1.04);
}

.md-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.8) 0%, rgba(5, 8, 12, 0.42) 54%, rgba(5, 8, 12, 0.88) 100%),
        linear-gradient(180deg, rgba(5, 8, 12, 0.42) 0%, rgba(5, 8, 12, 0.08) 45%, rgba(5, 8, 12, 0.84) 100%);
}

.md-left {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.md-side {
    position: relative;
    z-index: 4;
    flex: 0 0 420px;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 22, 0.78);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: width 0.2s ease, min-width 0.2s ease, max-width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease;
}

.md-page.md-side-collapsed .md-side {
    flex-basis: 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    border-left-color: transparent;
    pointer-events: none;
}

.md-toolbar-left {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.md-tool-btn,
.md-ctrl-btn,
.md-play-toggle,
.md-follow-btn,
.md-side-tabs button,
.md-power-card-btn {
    appearance: none;
    border: 0;
    background: none;
    font: inherit;
}

.md-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.md-tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.md-tool-btn:active {
    transform: scale(0.96);
}

.md-tool-power {
    color: #93c5fd;
}

.md-stage {
    position: absolute;
    inset: 0 0 104px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(360px, 560px);
    gap: clamp(96px, 9vw, 150px);
    align-items: center;
    justify-content: center;
    padding: 92px 72px 40px 116px;
}

.md-stage-cover-only {
    grid-template-columns: minmax(280px, 520px);
    padding-left: 72px;
}

.md-stage-cover-only .md-artwork-panel {
    justify-self: center;
}

.md-stage-cover-only .md-artwork {
    width: min(520px, 36vw);
}

.md-artwork-panel {
    min-width: 0;
}

.md-artwork {
    position: relative;
    width: min(420px, 32vw);
    min-width: 280px;
    aspect-ratio: 1;
    overflow: visible;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.md-artwork img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.md-vinyl {
    position: absolute;
    top: 8%;
    right: -18%;
    z-index: 1;
    width: 84%;
    height: 84%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #d1d5db 0 5%, #111827 6% 14%, #020617 15% 17%, #111827 18% 35%, #020617 36% 38%, #111827 39% 56%, #020617 57% 59%, #111827 60% 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    opacity: 0.78;
}

.md-artwork-lock {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 23px;
    backdrop-filter: blur(10px);
}

.md-track-meta {
    position: relative;
    z-index: 3;
    margin-top: 28px;
}

.md-track-meta h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.16;
    letter-spacing: 0;
}

.md-track-meta p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 17px;
}

.md-track-meta .md-track-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: min(420px, 80vw);
    font-size: 14px;
    line-height: 1.4;
}

.md-track-meta .md-track-location i {
    font-size: 15px;
}

.md-info-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 360px;
    margin-left: clamp(18px, 2vw, 38px);
    color: rgba(255, 255, 255, 0.82);
}

.md-info-panel-empty {
    justify-content: center;
}

.md-post-title {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 18px;
    font-weight: 800;
}

.md-lyric-title {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 18px;
    font-weight: 800;
}

.md-lyric-content {
    height: min(52vh, 560px);
    height: min(52dvh, 560px);
    min-height: 360px;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0 14px 0 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: clamp(20px, 1.75vw, 28px);
    font-weight: 800;
    line-height: 1.55;
    scroll-behavior: smooth;
}

.md-lyric-content::before,
.md-lyric-content::after {
    content: "";
    display: block;
    height: 42%;
    min-height: 132px;
}

.md-lyric-line {
    margin: 0 0 18px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.42);
    overflow-wrap: anywhere;
    word-break: break-word;
    transform: translateX(0);
    transform-origin: left center;
    transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease, font-size 0.22s ease;
}

.md-lyric-line.is-past {
    color: rgba(255, 255, 255, 0.28);
}

.md-lyric-line.is-active {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(22px, 2vw, 32px);
    transform: translateX(2px);
}

.md-lyric-content a {
    color: #93c5fd;
}

.md-lyric-content::-webkit-scrollbar,
.md-side-panel::-webkit-scrollbar,
.md-comment-panel::-webkit-scrollbar {
    width: 6px;
}

.md-lyric-content::-webkit-scrollbar-thumb,
.md-side-panel::-webkit-scrollbar-thumb,
.md-comment-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.md-power {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(18px);
}

.md-power-header,
.md-power-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
}

.md-power-header {
    margin-bottom: 14px;
    font-weight: 800;
}

.md-power-header i {
    color: #93c5fd;
}

.md-power-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.md-power-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
}

.md-power-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-size: 20px;
}

.md-power-card-body {
    min-width: 0;
    flex: 1;
}

.md-power-card-text {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-power-card-btn {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.md-power-card-quota {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.md-power-footer {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.46);
}

.md-info-dialog-modal {
    width: min(640px, calc(100vw - 32px));
    min-width: 0;
    overflow: hidden;
}

.md-info-dialog-modal .ls-dialog-body {
    max-height: min(62vh, 520px);
    max-height: min(62dvh, 520px);
    overflow-y: auto;
}

.md-info-dialog-panel {
    color: var(--ls-text-secondary);
}

.md-info-dialog-author-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.md-info-dialog-author-body {
    min-width: 0;
    flex: 1;
}

.md-info-dialog-author-name,
.md-info-dialog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.md-info-dialog-author-name {
    gap: 5px;
    line-height: 1.3;
}

.md-info-dialog-author-name a {
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    color: var(--ls-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-info-dialog-author-name .ls-mark {
    flex: 0 0 auto;
}

.md-info-dialog-author-name > em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--ls-bg);
    color: var(--ls-text-muted);
    font-size: 12px;
    font-style: normal;
}

.md-info-dialog-meta {
    gap: 7px;
    margin-top: 4px;
    color: var(--ls-text-muted);
    font-size: 12px;
}

.md-info-dialog-meta em {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ls-text-muted);
    opacity: 0.5;
}

.md-info-dialog-content {
    color: var(--ls-text-secondary);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.md-info-dialog-content p {
    margin: 0 0 12px;
}

.md-info-dialog-content p:last-child {
    margin-bottom: 0;
}

.md-info-dialog-content a {
    color: var(--ls-primary);
}

@media (max-width: 560px) {
    .md-info-dialog-author-name a {
        max-width: calc(100vw - 170px);
    }
}

.md-control-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(420px, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 18px 26px 16px;
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.16), rgba(5, 8, 12, 0.72));
    backdrop-filter: blur(16px);
}

.md-progress {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    touch-action: none;
    user-select: none;
    transition: height 0.15s ease;
}

.md-progress::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    bottom: 0;
    left: 0;
}

.md-progress:hover,
.md-progress.is-dragging {
    height: 6px;
}

.md-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 0 3px 3px 0;
    background: #10b981;
}

.md-progress-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.38);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
}

.md-progress:hover .md-progress-dot,
.md-progress.is-dragging .md-progress-dot {
    transform: translate(-50%, -50%) scale(1);
}

.md-now {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.md-now img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.md-now div {
    min-width: 0;
}

.md-now strong,
.md-now span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-now strong {
    color: #fff;
    font-size: 14px;
}

.md-now span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
}

.md-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.md-ctrl-btn,
.md-play-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.md-ctrl-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 21px;
}

.md-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.md-play-toggle {
    width: 72px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #111827;
    font-size: 28px;
}

.md-play-toggle:hover {
    background: #fff;
}

.md-play-toggle.is-disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.md-ctrl-btn:active,
.md-play-toggle:active {
    transform: scale(0.96);
}

.md-extra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.md-volume-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 38px;
}

.md-volume-range {
    width: 0;
    height: 4px;
    opacity: 0;
    accent-color: #fff;
    cursor: pointer;
    transition: width 0.18s ease, opacity 0.18s ease;
}

.md-volume-control:hover .md-volume-range,
.md-volume-control:focus-within .md-volume-range {
    width: 72px;
    opacity: 1;
}

.md-play-mode-btn.is-single,
.md-play-mode-btn.is-random,
.md-side-toggle.is-expanded,
.md-info-toggle.is-expanded {
    color: #93c5fd;
}

.md-time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
}

.md-time b,
.md-time em {
    font-style: normal;
    font-weight: 500;
}

.md-act-like.ls-liked {
    color: #fb7185;
}

.md-act-collect.ls-on {
    color: #fbbf24;
}

.md-ctrl-btn span {
    margin-left: 5px;
    font-size: 12px;
}

.md-audio {
    display: none;
}

.md-side-tabs {
    display: flex;
    align-items: center;
    height: 46px;
    gap: 24px;
    flex-shrink: 0;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.md-side-tabs button {
    position: relative;
    height: 46px;
    padding: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 500;
    line-height: 46px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.md-side-tabs button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.md-side-tabs button.ls-on {
    color: #fff;
    font-weight: 600;
}

.md-side-tabs button.ls-on::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #fe2c55;
    transform: translateX(-50%);
}

.md-side-body {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.md-side-panel {
    display: none;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 14px;
    box-sizing: border-box;
}

.md-side-panel.ls-on {
    display: block;
}

.md-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
}

.md-playlist-cover {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08);
}

.md-playlist-item img {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: cover;
}

.md-playlist-state {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.md-equalizer {
    display: none;
    align-items: flex-end;
    gap: 2px;
    width: 20px;
    height: 18px;
}

.md-equalizer span {
    display: block;
    width: 3px;
    height: 35%;
    border-radius: 999px;
    animation: md-eq-bar 1s ease-in-out infinite;
}

.md-equalizer span:nth-child(1) { animation-delay: 0s; }
.md-equalizer span:nth-child(2) { animation-delay: 0.15s; }
.md-equalizer span:nth-child(3) { animation-delay: 0.3s; }
.md-equalizer span:nth-child(4) { animation-delay: 0.45s; }

.md-equalizer-green span {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.38);
}

.md-playlist-state-playing .md-equalizer {
    display: flex;
}

.md-playlist-item.ls-on {
    background: rgba(255, 255, 255, 0.06);
}

.md-playlist-item.is-playing {
    background: rgba(52, 211, 153, 0.08);
}

.md-playlist-item.is-pending {
    background: rgba(59, 130, 246, 0.1);
}

.md-playlist-item.is-pending .md-equalizer-green span {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.38);
}

.md-playlist-item div {
    min-width: 0;
    flex: 1;
}

.md-playlist-item > div > strong,
.md-playlist-item > div > span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-playlist-item > div > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.md-playlist-title-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-playlist-power-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 0 0 auto;
}

.md-playlist-power-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.md-playlist-power-badge i {
    font-size: 16px;
}

.md-playlist-power-badge-private {
    color: rgba(255, 255, 255, 0.84);
}

.md-playlist-item > div > span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.md-playlist-item {
    color: inherit;
    cursor: pointer;
    transition: background 0.16s ease;
}

.md-playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.md-playlist-go {
    color: rgba(255, 255, 255, 0.32);
    font-size: 20px;
    transition: color 0.16s ease, transform 0.16s ease;
}

.md-playlist-item:hover .md-playlist-go {
    color: #fff;
    transform: scale(1.08);
}

.md-playlist-item.is-playing .md-playlist-go {
    color: #34d399;
}

.md-side-panel[data-panel="author"] {
    overflow: hidden;
    padding: 0;
}

.md-author-music-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.md-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    flex: 0 0 auto;
}

.md-author-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
}

.md-author-avatar > img,
.md-author-avatar > a > img,
.md-author-avatar img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.md-author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
}

.md-author-name a {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.md-author-sub {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.md-author-follow {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.md-author-follow.had,
.md-author-follow.followed {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
}

.md-author-music-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 14px 18px;
}

@keyframes md-eq-bar {
    0%, 100% { height: 22%; }
    25% { height: 82%; }
    50% { height: 44%; }
    75% { height: 100%; }
}

.md-side-loading,
.md-side-empty {
    padding: 24px 8px;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    font-size: 13px;
}

.md-comment-panel {
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    overflow: auto;
}

.md-comment-panel .ls-comment-box,
.md-comment-panel .ls-comment-menu,
.md-comment-panel .ls-comment-form,
.md-comment-panel .ls-comment-list {
    background: transparent !important;
}

.md-comment-panel .ls-comment-box {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.md-comment-panel .ls-comment-menu {
    padding: 4px 2px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.md-comment-panel .ls-comment-item,
.md-comment-panel .ls-comment-form {
    color: rgba(255, 255, 255, 0.82);
}

.md-comment-panel .ls-comment-count,
.md-comment-panel .ls-comment-count em {
    color: rgba(255, 255, 255, 0.82);
}

.md-comment-panel .ls-comment-tabs {
    background: transparent !important;
}

.md-comment-panel .ls-comment-tabs .tab-item {
    color: rgba(255, 255, 255, 0.46) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.md-comment-panel .ls-comment-tabs .tab-item:hover,
.md-comment-panel .ls-comment-tabs .tab-item.on {
    color: #fff !important;
}

.md-comment-panel .ls-comment-form {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05) !important;
}

.md-comment-panel .ls-comment-reply-form .ls-comment-toolbar {
    padding: 5px 10px 10px;
}

.md-comment-panel .ls-comment-textarea,
.md-comment-panel .ls-comment-form .ls-editor,
.md-comment-panel .ls-comment-reply-form .ls-editor {
    min-height: 74px;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.md-comment-panel .ls-comment-textarea::placeholder,
.md-comment-panel .ls-comment-form .ls-editor:empty:not(:focus)::before,
.md-comment-panel .ls-comment-reply-form .ls-editor:empty:not(:focus)::before {
    color: rgba(255, 255, 255, 0.34) !important;
}

.md-comment-panel .ls-comment-toolbar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0 !important;
    background: transparent !important;
}

.md-comment-panel .ls-comment-toolbar .tool-btn {
    color: rgba(255, 255, 255, 0.48);
    width: 22px;
}

.md-comment-panel .ls-comment-toolbar .tool-btn:hover {
    color: rgba(255, 255, 255, 0.82);
    background: #ffffff00;
}

.md-comment-panel .ls-comment-toolbar .tool-btn .remix-icon {
    font-size: 16px;
}

.md-comment-panel .ls-comment-submit {
    border: 0 !important;
    border-radius: 999px;
    background: #3b82f6 !important;
    color: #fff !important;
}

.md-comment-panel .ls-comment-list {
    padding: 14px 0 0;
}

.md-comment-panel .ls-comment-item {
    align-items: flex-start;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
}

.md-comment-panel .ls-comment-list > .ls-comment-item + .ls-comment-item {
    border-top: 0 !important;
}

.md-comment-panel .ls-comment-reply-form {
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
}

.md-comment-panel .ls-comment-reply-form .ls-comment-textarea,
.md-comment-panel .ls-comment-reply-form .ls-editor {
    min-height: 54px;
    max-height: 132px;
    color: rgba(255, 255, 255, 0.88) !important;
}

.md-comment-panel .ls-ci-reply-ref,
.md-comment-panel .ls-ci-quote {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.52) !important;
}

.md-comment-panel .ls-ci-child-load-more,
.md-comment-panel .ls-ci-child-fold {
    color: #93c5fd !important;
}

.md-comment-panel .ls-ci-child-list {
    position: relative;
    border-left: 0 !important;
    padding: 0;
    margin: 0;
}

.md-comment-panel .ls-ci-child-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 12px;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.md-comment-panel .ls-ci-child-list .ls-comment-item {
    position: relative;
}

.md-comment-panel .ls-ci-user,
.md-comment-panel .ls-ci-user a,
.md-comment-panel .ls-ci-header .ls-ci-name,
.md-comment-panel .ls-ci-header .ls-ci-name a {
    color: rgba(255, 255, 255, 0.86) !important;
}

.md-comment-panel .ls-ci-content {
    color: rgba(255, 255, 255, 0.78);
}

.md-comment-panel .ls-ci-bar {
    justify-content: flex-end;
}

.md-comment-panel .ls-ci-bar-left {
    font-size: 11px;
}

.md-comment-panel .ls-ci-bar-left span,
.md-comment-panel .ls-ci-bar-left .ls-ci-time {
    color: rgba(255, 255, 255, 0.36) !important;
}

.md-comment-panel .ls-ci-bar .ls-ci-action,
.md-comment-panel .ls-ci-bar-right > span {
    color: rgba(255, 255, 255, 0.46) !important;
}

.md-comment-panel .ls-ci-bar .ls-ci-action:hover,
.md-comment-panel .ls-ci-bar-right > span:hover {
    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.md-comment-panel .ls-comment-empty,
.md-comment-panel .ls-comment-load-more {
    color: rgba(255, 255, 255, 0.42) !important;
}

.md-page-error {
    align-items: center;
    justify-content: center;
}

.md-page-error .md-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-page-error .ls-empty {
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1280px) {
    .md-side {
        flex-basis: 420px;
        width: 420px;
        min-width: 420px;
        max-width: 420px;
    }

    .md-stage {
        grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr);
        gap: 84px;
        padding-left: 102px;
    }

    .md-artwork {
        width: min(360px, 32vw);
    }
}

@media (max-width: 1024px) {
    .md-page {
        flex-direction: column;
        overflow: auto;
    }

    .md-left {
        flex: 0 0 auto;
        height: auto;
        min-height: 100vh;
    }

    .md-side {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 460px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .md-page.md-side-collapsed .md-side {
        display: none;
    }

    .md-stage {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 96px 28px 230px 92px;
    }

    .md-artwork {
        width: min(340px, 72vw);
    }

    .md-info-panel {
        margin-left: 0;
    }

    .md-lyric-content {
        height: min(46vh, 480px);
        height: min(46dvh, 480px);
        min-height: 300px;
    }

    .md-control-bar {
        grid-template-columns: 1fr;
        position: absolute;
        justify-items: center;
    }

    .md-now,
    .md-extra {
        width: 100%;
        justify-content: center;
    }

    .md-power-cards {
        grid-template-columns: 1fr;
    }
}

/**
 * 内容列表样式
 * 扁平化设计，简洁标识
 */

/* ==================== 列表容器 ==================== */
.ls-post-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100vh - 200px);
}

/* ==================== 单条内容卡片 ==================== */
.ls-post-item {
    position: relative;
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-radius, 12px);
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.ls-post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== 内容头部 ==================== */
.ls-post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ls-post-user-info {
    flex: 1;
    min-width: 0;
}

.ls-post-user-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.ls-post-user-name .ls-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ls-text, #1f1f1f);
}

.ls-post-user-name .ls-name:hover {
    color: var(--ls-primary, #1a73e8);
}

/* 用户标识 - 简洁设计 */
.ls-post-user-name .ls-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.ls-post-user-name .ls-badge.ls-level {
    background: var(--ls-primary, #1a73e8);
    color: #fff;
}

.ls-post-user-name .ls-badge.ls-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #7a5c00;
}

.ls-post-user-name .ls-badge.ls-verify {
    background: var(--ls-success, #1e8e3e);
    color: #fff;
}

.ls-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
}

.ls-post-meta .ls-dot {
    width: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 50%;
}

/* ==================== 置顶标识与内容角标 ==================== */
.ls-sticky-badge,
.ls-post-corner-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    margin: -16px -16px 12px;
    padding: 0 16px;
    border-radius: var(--ls-radius, 12px) var(--ls-radius, 12px) 0 0;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.ls-sticky-badge i,
.ls-post-corner-badge i {
    font-size: 14px;
}

.ls-sticky-badge {
    background: linear-gradient(90deg,
        rgba(var(--ls-primary-rgb), 0.18) 0%,
        rgba(var(--ls-primary-rgb), 0.08) 45%,
        rgba(var(--ls-primary-rgb), 0.02) 100%);
    color: var(--ls-primary);
}

.ls-post-corner-badge {
    --ls-corner-badge-color: var(--ls-primary);
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--ls-corner-badge-color) 18%, transparent) 0%,
        color-mix(in srgb, var(--ls-corner-badge-color) 8%, transparent) 45%,
        color-mix(in srgb, var(--ls-corner-badge-color) 2%, transparent) 100%);
    color: var(--ls-corner-badge-color);
}

.ls-post-corner-badge > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-post-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-text-muted, #909090);
    cursor: pointer;
    flex-shrink: 0;
}

.ls-post-more:hover {
    background: var(--ls-bg, #f5f6f7);
    color: var(--ls-text, #1f1f1f);
}

.ls-post-more i {
    font-size: 18px;
}

/* ==================== 内容正文 ==================== */
.ls-post-content {
    margin-bottom: 12px;
}

/* 内容标题 */
.ls-post-content .ls-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ls-text, #1f1f1f);
    margin-bottom: 8px;
    cursor: pointer;
    line-height: 1.4;
}

.ls-post-content .ls-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ls-text, #1f1f1f);
    word-break: break-word;
    cursor: pointer;
}

/* 折叠状态 - max-height 方案，支持富文本和表情 */
.ls-post-content.ls-fold .ls-text {
    max-height: var(--ls-post-fold-height, 120px);
    overflow: hidden;
    position: relative;
}

/* 底部渐变遮罩 */
.ls-post-content.ls-fold .ls-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--ls-card-bg, #fff));
    pointer-events: none;
}

/* 展开后移除限制 */
.ls-post-content.ls-expanded .ls-text {
    max-height: none;
    overflow: visible;
}

.ls-post-content.ls-expanded .ls-text::after {
    display: none;
}

.ls-post-content .ls-expand-btn {
    display: inline-block;
    color: var(--ls-primary, #1a73e8);
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    user-select: none;
}

.ls-post-content .ls-expand-btn:hover {
    text-decoration: underline;
}

/* ==================== 图片展示 ==================== */
.ls-post-images {
    margin-bottom: 12px;
}

/* 单张图片 */
.ls-post-images.ls-single .ls-img-item {
    aspect-ratio: unset;
    position: relative;
    overflow: visible;
    display: inline-block;
    max-width: 100%;
}

/* 单张锁定图片 */
.ls-post-images.ls-single .ls-img-item.ls-img-locked {
    overflow: hidden;
    border-radius: 12px;
}

.ls-post-images.ls-single .ls-img-item img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    object-fit: contain;
    display: block;
}

/* 锁住的单图按原图尺寸摆，解锁前后不漂移。

   打码图本身只有 48 px，`width:auto` 跟着它走就会把整个格子缩成一个小方块。
   模板把原图宽高下发成 `--ow` / `--oh` 两个数，宽度在这里算出来：
   `min(原图宽, 被 max-height 压回来之后的宽)` —— 那个 400 与上面那条
   `max-height` 是同一个数，留在 CSS 里，服务端不必知道它。

   **不能改成给绝对宽度**（`width` 属性或内联 px）：一给绝对值，
   `max-width` 与 `max-height` 就各自独立生效、不再等比，1200×900 的图会摆成
   600×400 而公开时是 533×400。量过六种形状，只有这一条逐像素对得上。

   高度按 `--ow`/`--oh` 而不是打码图的固有比例：打码图长边缩到 48 时短边要取整，
   2000×400 那种很扁的图上，那点误差会变成 5 px 的高度差。

   存量图库里没写过宽高时两个变量都不出，`width:auto` 原样生效 —— 退回打码图
   自己的尺寸，底色兜着。 */
.ls-post-images.ls-single .ls-img-item.ls-img-locked img {
    --shown: min(calc(var(--ow) * 1px), calc(400px * var(--ow) / var(--oh)));
    width: var(--shown);
    aspect-ratio: var(--ow) / var(--oh);
    height: auto;
    /* 半径跟着宽度走，判据见下面那一段。 */
    filter: blur(calc(var(--shown) / 100));
}

/* 锁住的图再叠一层**薄**虚化。

   打码图只有 48 px，放到页面上要放大好几倍，浏览器插值会留下块状边缘 ——
   「看着劣质」是那个块状造成的，跟图本身多小没关系（试过 96 px，一样有）。
   抹掉它需要的半径约等于放大倍数的一半，也就是 `显示宽度 ÷ 100`：
   九宫格 190 px 用 2 px，评论 90 px 用 1 px，单图按算出来的宽度现算。

   **不能再狠了**：半径超过这个量级就开始吃轮廓，而「看得出画的是什么」正是
   这张图存在的理由。安全不靠这一层 —— 服务端发的本来就只有 48 px 那份。 */
.ls-post-images.ls-grid .ls-img-item.ls-img-locked img {
    filter: blur(2px);
}

.ls-post-images.ls-single .ls-img-item img:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

.ls-post-images.ls-grid {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

.ls-post-images.ls-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ls-post-images.ls-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ls-post-images.ls-grid-4 { grid-template-columns: repeat(2, 1fr); }
.ls-post-images.ls-grid-5,
.ls-post-images.ls-grid-6 { grid-template-columns: repeat(3, 1fr); }
.ls-post-images.ls-grid-7,
.ls-post-images.ls-grid-8,
.ls-post-images.ls-grid-9 { grid-template-columns: repeat(3, 1fr); }

.ls-post-images.ls-single .ls-img-item > a {
    display: inline-block;
    max-width: 100%;
    height: auto;
    position: relative;
    vertical-align: top;
}

/* 网格图片项 */
.ls-post-images.ls-grid .ls-img-item > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ls-post-images.ls-grid .ls-img-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.ls-post-images.ls-grid .ls-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s, filter 0.2s;
}

.ls-post-images.ls-grid .ls-img-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.ls-post-images .ls-img-item .ls-gif-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
}

.ls-post-images .ls-img-item .ls-more-count {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

/* ==================== 视频展示 ==================== */
.ls-post-video {
    position: relative;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ls-bg-light, #f8fafc);
}

/* 同一张封面放大模糊后垫在底层，填满 contain 留出的空白 */
.ls-post-video .ls-video-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    filter: blur(24px) saturate(1.4) brightness(0.92);
    transition: transform 0.2s, filter 0.2s;
    pointer-events: none;
}

.ls-post-video .ls-video-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    transition: filter 0.2s;
}

.ls-post-video:hover .ls-video-cover {
    filter: brightness(0.95);
}

.ls-post-video:hover .ls-video-blur {
    transform: scale(1.2);
}

.ls-post-video .ls-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

/* hover 不改变播放按钮背景色 */

.ls-post-video .ls-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

/* 视频锁定状态 */
.ls-post-video.ls-video-locked {
    cursor: default;
}

.ls-post-video.ls-video-locked .ls-video-cover {
    filter: brightness(0.3) blur(8px);
    transform: scale(1.05);
}

.ls-post-video.ls-video-locked .ls-video-blur {
    filter: blur(24px) saturate(1.4) brightness(0.3);
}

.ls-post-video.ls-video-locked:hover .ls-video-cover {
    filter: brightness(0.25) blur(8px);
    transform: scale(1.07);
}

.ls-post-video.ls-video-locked:hover .ls-video-blur {
    transform: scale(1.15);
    filter: blur(24px) saturate(1.4) brightness(0.25);
}

/* 视频内嵌权限覆盖层 */
.ls-video-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.ls-video-hidden-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 13px;
}

.ls-video-hidden-lock i {
    font-size: 16px;
}

/* 视频内的权限遮罩 - 覆盖默认样式，采用暗色风格 */
.ls-video-locked-overlay .ls-post-power-mask {
    margin: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    width: 100%;
}

.ls-video-locked-overlay .ls-power-header {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.ls-video-locked-overlay .ls-power-header > i {
    font-size: 22px;
    opacity: 0.9;
}

.ls-video-locked-overlay .ls-power-cards {
    flex-direction: column;
    width: 100%;
}

.ls-video-locked-overlay .ls-power-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: none;
}

.ls-video-locked-overlay .ls-power-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.ls-video-locked-overlay .ls-power-card .ls-power-card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.ls-video-locked-overlay .ls-power-card .ls-power-card-icon i {
    color: #fff;
}

.ls-video-locked-overlay .ls-power-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.ls-video-locked-overlay .ls-power-card .ls-power-card-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.ls-video-locked-overlay .ls-power-card .ls-power-card-btn:hover {
    background: #fff;
    opacity: 1;
    transform: scale(1.03);
    box-shadow: none;
}

.ls-video-locked-overlay .ls-power-card .ls-power-card-btn:active {
    transform: scale(0.97);
}


.ls-video-locked-overlay .ls-power-footer {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 长文卡片 ==================== */
.ls-post-article {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--ls-bg, #f5f6f7);
    border-radius: 12px;
    cursor: pointer;
}

.ls-post-article:hover {
    background: #ecedef;
}

.ls-post-article .ls-article-info {
    min-width: 0;
}

.ls-post-article .ls-article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ls-text, #1f1f1f);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ls-post-article .ls-article-desc {
    font-size: 13px;
    color: var(--ls-text-muted, #909090);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 1图：左文右图 */
.ls-post-article.ls-article-img-1 {
    display: flex;
    gap: 12px;
}

.ls-post-article.ls-article-img-1 .ls-article-info {
    flex: 1;
}

.ls-post-article.ls-article-img-1 .ls-article-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 0图：纯文字 */
.ls-post-article.ls-article-img-0 .ls-article-title {
    -webkit-line-clamp: 1;
}

.ls-post-article.ls-article-img-0 .ls-article-desc {
    -webkit-line-clamp: 3;
}

/* 2图/3图：上文下图 */
.ls-article-thumbs {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.ls-article-thumb-item {
    flex: 1;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.ls-article-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 单图封面盒：包住封面图，便于在其上叠加视频播放角标 */
.ls-post-article.ls-article-img-1 .ls-article-cover-box {
    position: relative;
    flex-shrink: 0;
}

/* 视频缩略图中央播放角标（与详情页一致，列表里缩小） */
.ls-article-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    padding-left: 2px;
    pointer-events: none;
}

.ls-post-article.ls-article-img-2 .ls-article-title,
.ls-post-article.ls-article-img-3 .ls-article-title {
    -webkit-line-clamp: 1;
}

.ls-post-article.ls-article-img-2 .ls-article-desc,
.ls-post-article.ls-article-img-3 .ls-article-desc {
    -webkit-line-clamp: 1;
}

/* ==================== 转发/引用卡片 ==================== */
.ls-post-quote {
    margin-bottom: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    cursor: pointer;
}

.ls-post-quote:hover {
    background: #f6f8fb;
}

.ls-post-quote .ls-quote-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ls-post-quote .ls-quote-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ls-post-quote .ls-quote-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ls-post-quote .ls-quote-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text, #1f1f1f);
}

.ls-post-quote .ls-quote-content {
    margin-top: 5px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-post-quote .ls-quote-media {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.ls-post-quote .ls-quote-media img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.ls-quote-music-card {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 10px;
    min-height: 58px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
}

.ls-quote-music-cover {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 9px;
    background: #e8edf3;
}

.ls-quote-music-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ls-quote-music-cover span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(15, 23, 42, 0.24);
}

.ls-quote-music-cover i {
    font-size: 17px;
}

.ls-quote-music-info {
    flex: 1;
    min-width: 0;
}

.ls-quote-music-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--ls-text, #1f1f1f);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-quote-music-meta {
    margin-top: 2px;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-quote-music-action {
    flex-shrink: 0;
    color: var(--ls-primary, #1a73e8);
    font-size: 21px;
}

.ls-quote-power-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
    margin-bottom: 5px;
}

.ls-quote-power-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    padding: 2px 7px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}

.ls-quote-power-badge i {
    font-size: 13px;
}

.ls-quote-music-card.ls-quote-music-locked {
    background: #fff;
}

.ls-quote-music-card.ls-quote-music-locked .ls-quote-music-cover span {
    background: rgba(15, 23, 42, 0.45);
}

.ls-quote-music-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #fff;
    background: #64748b;
    border-radius: 50%;
}

.ls-quote-music-lock i {
    font-size: 15px;
}

.ls-quote-voice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 10px;
    min-height: 48px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.ls-quote-voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    height: 28px;
    overflow: hidden;
}

.ls-quote-voice-wave i {
    display: block;
    width: 3px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7fb0ff 0%, #bcd4ff 100%);
}

.ls-quote-voice-wave i:nth-child(2),
.ls-quote-voice-wave i:nth-child(4n) {
    height: 16px;
}

.ls-quote-voice-wave i:nth-child(3n) {
    height: 22px;
}

.ls-quote-voice-wave i:nth-child(5n) {
    height: 14px;
}

.ls-quote-voice-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14);
}

.ls-quote-voice-time i {
    color: var(--ls-primary, #1a73e8);
    font-size: 14px;
}

.ls-quote-voice-card.ls-quote-voice-locked {
    background: #fff;
}

.ls-quote-voice-card.ls-quote-voice-locked .ls-quote-voice-wave i {
    background: #cbd5e1;
}

/* ==================== 合集入口 ==================== */
.ls-post-collection {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: var(--ls-bg, #f5f6f7);
    font-size: 12px;
    color: var(--ls-text, #666);
    text-decoration: none;
    transition: background .2s;
}
.ls-post-collection:hover {
    background: var(--ls-primary-light, #e6f7ff);
    color: var(--ls-primary, #1890ff);
}
.ls-post-collection i {
    font-size: 14px;
    color: var(--ls-primary, #1890ff);
}
.ls-post-collection span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-post-collection-count {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--ls-text, #999);
    font-size: 11px;
}

/* ==================== 话题标签 ==================== */
.ls-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ls-post-tags .ls-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--ls-primary, #1a73e8);
    border-radius: 4px;
    font-size: 12px;
    color: var(--ls-primary, #1a73e8);
    text-decoration: none;
    transition: all 0.2s;
}

.ls-post-tags .ls-tag-item::before {
    content: '#';
    font-weight: 500;
}

.ls-post-tags .ls-tag-item:hover {
    background: var(--ls-primary, #1a73e8);
    color: #fff;
}

/* ==================== 位置信息 ==================== */
.ls-post-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
}

.ls-post-location:hover {
    color: var(--ls-primary, #1a73e8);
}

/* 不写就吃 .remix-icon 的 20px，在 12px 的文字旁边大出一圈 */
.ls-post-location .remix-icon {
    font-size: 14px;
}

/* ==================== 底部操作栏 ==================== */
.ls-post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ls-bg, #f5f6f7);
}

.ls-post-footer .ls-board-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--ls-bg, #f5f6f7);
    border-radius: 14px;
    font-size: 12px;
    color: var(--ls-text-secondary, #606060);
}

.ls-post-footer .ls-board-link:hover {
    background: #ecedef;
}

.ls-post-footer .ls-board-link img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.ls-post-footer .ls-spacer {
    flex: 1;
}

.ls-post-footer .ls-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ls-post-footer .ls-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    color: var(--ls-text-secondary, #606060);
    cursor: pointer;
}

.ls-post-footer .ls-action-btn:hover {
    background: var(--ls-bg, #f5f6f7);
    color: var(--ls-text, #1f1f1f);
}

.ls-post-footer .ls-action-btn i {
    font-size: 18px;
}

.ls-post-footer .ls-action-btn.ls-liked {
    color: var(--ls-danger, #d93025);
}

.ls-post-footer .ls-action-btn.ls-liked:hover {
    background: #ffebee;
}

/* ==================== 板块无访问权限 ==================== */
.ls-post-item.ls-bbs-locked {
    opacity: 0.85;
}

.ls-post-bbs-locked-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    margin: 12px 0;
    background: var(--ls-bg, #f5f6f7);
    border-radius: 12px;
    text-align: center;
}

.ls-bbs-locked-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ls-bg-2, #ecedef);
    color: var(--ls-text, #999);
    font-size: 20px;
}

.ls-bbs-locked-msg {
    font-size: 13px;
    color: var(--ls-text, #999);
    line-height: 1.5;
}

.ls-bbs-locked-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    color: var(--ls-primary, #1e80ff);
    background: var(--ls-primary-light, rgba(30, 128, 255, 0.08));
    transition: all 0.15s;
    text-decoration: none;
}

.ls-bbs-locked-btn:hover {
    background: var(--ls-primary-light-2, rgba(30, 128, 255, 0.15));
    color: var(--ls-primary, #1e80ff);
}

.ls-post-footer.ls-footer-disabled .ls-actions .ls-action-btn {
    pointer-events: none;
    opacity: 0.35;
}

/* ==================== 红包卡片 ==================== */
.ls-post-redpack {
    margin-bottom: 12px;
}

.ls-redpack-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
    border-radius: 12px;
    cursor: pointer;
}

.ls-redpack-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ls-redpack-icon i {
    font-size: 28px;
    color: #fff;
}

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

.ls-redpack-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.ls-redpack-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.ls-redpack-btn {
    padding: 10px 20px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #f44336;
}

.ls-redpack-btn:hover {
    background: #fff9c4;
}

.ls-redpack-users {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
}

.ls-redpack-users img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: -6px;
    border: 2px solid #fff;
}

.ls-redpack-users img:first-child {
    margin-left: 0;
}

/* ==================== 音乐卡片 ==================== */
.ls-post-music {
    margin-bottom: 12px;
}

.ls-music-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ls-bg, #f5f6f7);
    border-radius: 12px;
    cursor: pointer;
}

.ls-music-card:hover {
    background: #ecedef;
}

.ls-music-cover {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ls-music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-music-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-music-card:hover .ls-music-play {
    background: rgba(0, 0, 0, 0.4);
}

.ls-music-play i {
    font-size: 20px;
    color: #fff;
}

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

.ls-music-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ls-text, #1f1f1f);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-music-artist {
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
}

.ls-music-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px 6px 10px;
    border-radius: 20px;
    background: var(--ls-primary, #1a73e8);
    flex-shrink: 0;
    transition: background 0.2s;
}

.ls-music-card:hover .ls-music-action {
    background: var(--ls-primary-hover, #1557b0);
}

.ls-music-action i {
    font-size: 14px;
    color: #fff;
    margin-left: 1px;
}

.ls-music-action span {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    line-height: 1;
}

.ls-music-card:hover .ls-music-action i {
    color: #fff;
}

.ls-post-music.ls-music-locked .ls-music-card {
    cursor: default;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ls-post-music.ls-music-locked .ls-music-card:hover {
    background: #f8fafc;
}

.ls-post-music.ls-music-locked .ls-music-play {
    background: rgba(15, 23, 42, 0.46);
}

.ls-music-action-locked {
    background: #64748b;
}

.ls-music-card:hover .ls-music-action-locked {
    background: #475569;
}

.ls-music-locked-overlay {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
}

.ls-music-locked-overlay .ls-post-power-mask {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* ==================== 空状态 ==================== */
.ls-post-empty {
    padding: 60px 20px;
    text-align: center;
}

.ls-post-empty i {
    font-size: 48px;
    color: var(--ls-text-muted, #909090);
    margin-bottom: 16px;
}

.ls-post-empty .ls-title {
    font-size: 16px;
    color: var(--ls-text-secondary, #606060);
    margin-bottom: 8px;
}

.ls-post-empty .ls-desc {
    font-size: 14px;
    color: var(--ls-text-muted, #909090);
}

/* ==================== 加载骨架 ==================== */
.ls-post-skeleton {
    padding: 16px;
}

.ls-post-skeleton .ls-skeleton-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ls-post-skeleton .ls-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ls-skeleton 1.5s infinite;
}

.ls-post-skeleton .ls-skeleton-info {
    flex: 1;
}

.ls-post-skeleton .ls-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ls-skeleton 1.5s infinite;
    margin-bottom: 8px;
}

.ls-post-skeleton .ls-skeleton-line.ls-short { width: 40%; }
.ls-post-skeleton .ls-skeleton-line.ls-medium { width: 70%; }
.ls-post-skeleton .ls-skeleton-line.ls-long { width: 100%; }

.ls-post-skeleton .ls-skeleton-image {
    height: 200px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ls-skeleton 1.5s infinite;
}

@keyframes ls-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== 简洁动画 ==================== */
.ls-post-item,
.ls-action-btn,
.ls-tag-item,
.ls-post-quote,
.ls-post-article {
    transition: background 0.15s;
}

.ls-play-btn {
    transition: background 0.15s;
}

/* ==================== 内联@用户样式 ==================== */
.ls-post-content .ls-text a.ls-at-link {
    color: var(--ls-primary, #1a73e8);
    text-decoration: none;
    font-weight: 500;
}

.ls-post-content .ls-text a.ls-at-link:hover {
    text-decoration: underline;
}

/* ==================== 加载动画 ==================== */
.ls-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.ls-loading-spinner {
    width: 36px;
    height: 28px;
    display: flex;
}

.ls-loading-spinner > div {
    width: 3px;
    height: 28px;
    margin: 2px;
    border-radius: 0;
    background-color: var(--ls-primary, #1a73e8);
    animation: ls-line-scale 1.2s infinite ease;
}

.ls-loading-spinner > div:nth-child(1) { animation-delay: -1.2s; }
.ls-loading-spinner > div:nth-child(2) { animation-delay: -1.1s; }
.ls-loading-spinner > div:nth-child(3) { animation-delay: -1s; }
.ls-loading-spinner > div:nth-child(4) { animation-delay: -0.9s; }
.ls-loading-spinner > div:nth-child(5) { animation-delay: -0.8s; }

@keyframes ls-line-scale {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

.ls-loading-text {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ls-text-muted, #909090);
}

/* 覆盖式加载动画 */
.ls-loading.ls-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--ls-radius, 12px);
    z-index: 10;
    justify-content: flex-start;
    padding-top: 60px;
}

/* ==================== 空状态样式 ==================== */
.ls-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--ls-text-muted, #909090);
    font-size: 14px;
    gap: 8px;
}

.ls-empty > i {
    font-size: 36px;
    opacity: 0.35;
}

.ls-empty > p,
.ls-empty > span {
    margin: 0;
}

/* ==================== 加载更多 ==================== */
.ls-load-more {
    padding: 24px 16px;
    text-align: center;
}

.ls-load-more .ls-load-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 32px;
    background: var(--ls-card-bg, #fff);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ls-load-more .ls-load-btn:hover {
    background: var(--ls-primary-light);
    color: var(--ls-primary);
}

.ls-load-more .ls-load-btn i {
    font-size: 14px;
}

/* ========== 内容权限 ========== */

/* 权限徽章 */
.ls-power-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.4;
}

.ls-power-badge i {
    font-size: 12px;
}

/* 付费 - 橙色 */
.ls-power-badge-pay {
    background: #fff3e0;
    color: #e65100;
}

/* 登录 - 紫色 */
.ls-power-badge-login {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 评论 - 青色 */
.ls-power-badge-comment {
    background: #e0f7fa;
    color: #00838f;
}

/* 关注 - 粉红 */
.ls-power-badge-fans {
    background: #fce4ec;
    color: #c62828;
}

/* VIP - 金色 */
.ls-power-badge-vip {
    background: #fff8e1;
    color: #f57f17;
}

/* 认证 - 蓝色 */
.ls-power-badge-verify {
    background: #e3f2fd;
    color: #1565c0;
}

/* 密码 - 深灰 */
.ls-power-badge-password {
    background: #efebe9;
    color: #4e342e;
}

/* 私密 - 紫色 */
.ls-power-badge-private {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 经验值 - 绿色 */
.ls-power-badge-exp {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 广告解锁 - 靛蓝 */
.ls-power-badge-ad {
    background: #e8eaf6;
    color: #283593;
}

/* 解锁人数（meta 区域） */
.ls-unlock-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--ls-text, #999);
}

.ls-unlock-count i {
    font-size: 13px;
}

/* 锁定图片 */
.ls-img-item.ls-img-locked {
    position: relative;
}

.ls-img-item.ls-img-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.ls-img-item.ls-img-locked .ls-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
}

/* ========== 权限遮罩区域 ========== */

.ls-post-power-mask {
    margin: 0 16px;
    padding: 20px 16px;
}

/* 顶部：锁图标 + 关系提示 */
.ls-power-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--ls-text, #999);
    font-size: 13px;
}

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

/* 卡片容器 */
.ls-power-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 单个权限卡片 */
.ls-power-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ls-bg, #fff);
    border-radius: 10px;
    border: 1px solid var(--ls-border, rgba(0, 0, 0, 0.06));
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
    max-width: 380px;
    flex-wrap: wrap;
}
.ls-power-card-quota {
    width: 100%;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.ls-power-card:hover {
    border-color: rgba(var(--ls-primary-rgb, 26, 115, 232), 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 卡片图标 */
.ls-power-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* 卡片文案 */
.ls-power-card-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--ls-text, #666);
    line-height: 1.4;
    text-align: left;
}

/* 卡片按钮 */
.ls-power-card-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: #fff;
    background: var(--ls-primary, #1a73e8);
}

.ls-power-card-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ls-power-card-btn:active {
    transform: translateY(0);
}

/* 各类型卡片配色（与发布页统一） */
/* 付费 - 橙色 */
.ls-power-card-pay .ls-power-card-icon {
    background: #fff3e0;
    color: #e65100;
}
.ls-power-card-pay .ls-power-card-btn {
    background: #e65100;
}

/* VIP - 金色 */
.ls-power-card-vip .ls-power-card-icon {
    background: #fff8e1;
    color: #f57f17;
}
.ls-power-card-vip .ls-power-card-btn {
    background: #f57f17;
    color: #fff;
}

/* 认证 - 蓝色 */
.ls-power-card-verify .ls-power-card-icon {
    background: #e3f2fd;
    color: #1565c0;
}

/* 经验值 - 绿色 */
.ls-power-card-exp .ls-power-card-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 登录 - 紫色 */
.ls-power-card-login .ls-power-card-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 评论 - 青色 */
.ls-power-card-comment .ls-power-card-icon {
    background: #e0f7fa;
    color: #00838f;
}
.ls-power-card-comment .ls-power-card-btn {
    background: #00838f;
}

/* 关注 - 粉红 */
.ls-power-card-follow .ls-power-card-icon {
    background: #fce4ec;
    color: #c62828;
}
.ls-power-card-follow .ls-power-card-btn {
    background: #c62828;
}

/* 密码 - 深灰 */
.ls-power-card-password .ls-power-card-icon {
    background: #efebe9;
    color: #4e342e;
}
.ls-power-card-password .ls-power-card-btn {
    background: #4e342e;
}

/* 广告解锁 - 靛蓝 */
.ls-power-card-ad .ls-power-card-icon {
    background: #e8eaf6;
    color: #283593;
}
.ls-power-card-ad .ls-power-card-btn {
    background: #283593;
}

/* 解锁人数 */
.ls-power-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--ls-border, #eee);
    font-size: 12px;
    color: var(--ls-text, #999);
}

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

/* 隐藏内容展示 */
.ls-post-hidden-content {
    margin: 12px 0 12px;
    border-radius: 10px;
    overflow: hidden;
}

/* 已解锁状态 */
.ls-hidden-unlocked {
    background: var(--ls-bg, #f9fafb);
    border: 1px solid var(--ls-border, #e5e7eb);
}
.ls-hidden-unlocked .ls-hidden-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--ls-border, #e5e7eb);
}
.ls-hidden-unlocked .ls-hidden-header > .remix-icon {
    font-size: 15px;
    color: #10b981;
}
.ls-hidden-unlocked .ls-hidden-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text, #374151);
}
.ls-hidden-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: auto;
    line-height: 18px;
}
.ls-hidden-tag-unlocked {
    color: #10b981;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.ls-hidden-body {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ls-text, #374151);
    line-height: 1.7;
    word-break: break-word;
}
.ls-hidden-body p { min-height: 1em; }
.ls-hidden-body .ls-emoji {
    vertical-align: middle;
}

/* 未解锁状态 */
.ls-hidden-locked {
    background: #fafafa;
    border: 1px dashed #d1d5db;
}
.ls-hidden-locked .ls-hidden-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ls-hidden-locked .ls-hidden-header > .remix-icon {
    font-size: 15px;
    color: #9ca3af;
}
.ls-hidden-locked .ls-hidden-title {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.ls-hidden-power {
    padding: 0 14px 10px;
}
.ls-hidden-power .ls-post-power-mask {
    margin: 0;
    padding: 0;
}
.ls-hidden-power .ls-power-header {
    justify-content: flex-start;
    margin-bottom: 10px;
}
.ls-hidden-power .ls-power-cards {
    justify-content: flex-start;
}
.ls-hidden-power .ls-power-card {
    flex: 1 1 220px;
    max-width: none;
}
.ls-hidden-power .ls-power-footer {
    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 10px;
}
.ls-hidden-tag-locked {
    color: #9ca3af;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.ls-hidden-tip {
    padding: 0 14px 10px;
    font-size: 12px;
    color: #9ca3af;
}

/* --- 兼容旧版 --- */
.ls-power-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ls-power-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.ls-power-icon.ls-power-pay {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    color: var(--ls-warning);
}

.ls-power-icon.ls-power-login {
    background: linear-gradient(135deg, rgba(var(--ls-primary-rgb, 26, 115, 232), 0.15), rgba(var(--ls-primary-rgb, 26, 115, 232), 0.05));
    color: var(--ls-primary);
}

.ls-power-icon.ls-power-comment {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    color: var(--ls-success);
}

.ls-power-icon.ls-power-follow {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    color: var(--ls-info);
}

.ls-power-text {
    font-size: 13px;
    color: var(--ls-text);
    line-height: 1.4;
}

.ls-power-btn {
    padding: 6px 20px;
    border-radius: 18px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ls-power-btn:hover {
    opacity: 0.85;
}

.ls-power-btn.ls-btn-pay {
    background: var(--ls-warning);
    color: #fff;
}

.ls-power-btn.ls-btn-login {
    background: var(--ls-primary);
    color: #fff;
}

.ls-power-btn.ls-btn-comment {
    background: var(--ls-success);
    color: #fff;
}

.ls-power-btn.ls-btn-follow {
    background: var(--ls-info);
    color: #fff;
}

/* ==================== 附件列表（内容列表中） ==================== */
.post-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.post-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--ls-bg, #f5f6f7);
    transition: background 0.15s;
    text-decoration: none;
    cursor: pointer;
}

.post-file-item:hover {
    background: var(--ls-bg-2, #ecedef);
}

.post-file-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.post-file-icon em {
    font-size: 24px;
    font-style: normal;
}

.post-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-file-name {
    font-size: 13px;
    color: var(--ls-text, #1f1f1f);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-file-size {
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
    flex-shrink: 0;
}

.post-file-lock-icon {
    font-size: 14px;
    color: var(--ls-warning, #f5a623);
    flex-shrink: 0;
}

.post-file-dl-icon {
    font-size: 16px;
    color: var(--ls-text-muted, #909090);
    flex-shrink: 0;
    transition: color 0.15s;
}

.post-file-item:not(.ls-locked):hover .post-file-dl-icon {
    color: var(--ls-primary, #1a73e8);
}

.post-file-item.ls-locked {
    opacity: 0.7;
    cursor: default;
}

.post-file-item.ls-locked .post-file-name {
    color: var(--ls-text-muted, #909090);
}

/* 附件链接检测 / 提取码复制按钮（通用） */
.ls-file-check-btn,
.ls-netdisk-check-btn,
.ls-netdisk-copy-pwd {
    font-size: 14px;
    color: var(--ls-text-muted, #94a3b8);
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 4px;
    transition: color 0.15s;
}
.ls-file-check-btn:hover,
.ls-netdisk-check-btn:hover,
.ls-netdisk-copy-pwd:hover { color: var(--ls-primary, #1a73e8); }
.ls-file-check-btn.ls-checking,
.ls-netdisk-check-btn.ls-checking { opacity: 0.5; pointer-events: none; }

/* ==================== 代码块（内容列表中） ==================== */
.ls-post-code {
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ls-bg, #f5f6f7);
    border: 1px solid var(--ls-border, #e8e8e8);
}

.ls-post-code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--ls-bg-2, #ecedef);
    font-size: 12px;
    color: var(--ls-text, #999);
}

.ls-post-code-header > i {
    font-size: 14px;
}

.ls-post-code-lang {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 11px;
}

.ls-post-code-lock-badge {
    color: var(--ls-warning, #f5a623);
    font-size: 12px;
}

.ls-post-code-copy {
    margin-left: auto;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.ls-post-code-copy:hover {
    background: var(--ls-bg-hover, #e0e0e0);
    color: var(--ls-text);
}

.ls-post-code-body {
    padding: 10px 14px;
    max-height: 200px;
    overflow: auto;
}

.ls-post-code-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.ls-post-code-body code {
    font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ls-text, #1f1f1f);
}

/* 代码锁定状态 */
.ls-post-code.ls-post-code-locked {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--ls-border, #d0d0d0);
}

.ls-post-code-locked-mask {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ls-text, #999);
    font-size: 13px;
    padding: 14px 0;
}

.ls-post-code-locked-mask i {
    font-size: 18px;
    color: var(--ls-warning, #f5a623);
}


.ls-power-card-vip {
    cursor: pointer;
}

/* ==================== 语音卡片（内容列表中） ==================== */
.ls-post-voice {
    margin: 12px 0;
}

.ls-voice-card {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #edf3ff;
    border-radius: 15px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ls-voice-card:hover {
    border-color: #d8e6ff;
    background: linear-gradient(180deg, #fbfdff 0%, #eff6ff 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .07);
}

.ls-voice-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--ls-primary, #3b82f6) 45%, transparent);
    outline-offset: 3px;
}

.ls-voice-card.is-playing {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f5f9ff 0%, #eef6ff 100%);
}

.ls-voice-progress {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.ls-voice-progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    opacity: 1;
    border-radius: 15px 0 0 15px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 42%),
        linear-gradient(90deg, rgba(96, 165, 250, .22) 0%, rgba(56, 189, 248, .18) 35%, rgba(129, 140, 248, .22) 68%, rgba(96, 165, 250, .22) 100%);
    background-size: 100% 100%, 260% 100%;
    box-shadow: inset -24px 0 30px rgba(59, 130, 246, .08);
    transition: width .18s linear, opacity .24s ease;
}

.ls-voice-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    border-radius: 999px;
    background: rgba(59, 130, 246, .42);
    box-shadow: 0 0 10px rgba(59, 130, 246, .24);
    pointer-events: none;
}

.ls-voice-wave {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    height: 34px;
    overflow: hidden;
}

.ls-voice-wave i {
    display: block;
    width: 3px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7fb0ff 0%, #bcd4ff 100%);
    animation: lsPostVoiceWave 1.05s ease-in-out infinite;
    animation-play-state: paused;
}

.ls-voice-wave i:nth-child(2),
.ls-voice-wave i:nth-child(4n) {
    height: 18px;
    animation-delay: .08s;
}

.ls-voice-wave i:nth-child(3n) {
    height: 26px;
    animation-delay: .16s;
}

.ls-voice-wave i:nth-child(5n) {
    height: 16px;
    animation-delay: .32s;
}

.ls-voice-card.is-playing .ls-voice-wave i {
    animation-play-state: running;
}

.ls-voice-card.is-playing .ls-voice-progress-fill {
    animation: lsPostVoiceFlowMove 1.25s linear infinite;
}

.ls-voice-card.is-progress-ending .ls-voice-progress-fill {
    opacity: 0;
    transition: opacity .24s ease;
}

.ls-voice-card.is-progress-resetting .ls-voice-progress-fill {
    opacity: 0;
    transition: none !important;
}

.ls-voice-time {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #64748b;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14);
}

.ls-voice-time > i:not(.remix-icon) {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ls-voice-time .remix-icon {
    font-size: 14px;
}

.ls-voice-current,
.ls-voice-duration,
.ls-voice-meta {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.ls-post-voice.ls-voice-locked .ls-voice-card {
    border-color: var(--ls-border, #e5e7eb);
    background: var(--ls-bg, #f8fafc);
    cursor: default;
}

.ls-post-voice.ls-voice-locked .ls-voice-wave i {
    background: #cbd5e1;
}

@keyframes lsPostVoiceWave {
    0%, 100% {
        transform: scaleY(.55);
        opacity: .55;
    }
    50% {
        transform: scaleY(1.12);
        opacity: 1;
    }
}

@keyframes lsPostVoiceFlowMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 260% 0; }
}

/* ---- 表情面板（通用组件，配合 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;
}


