/**
 * words-detail.css - 动态详情页样式（小红书风格）
 */

/* ========== 页面容器 ========== */
.ls-words-detail {
    background: var(--ls-bg-card);
    min-height: 100%;
    padding-bottom: 0;
}

/* ========== 导航栏作者信息 ========== */
.ls-wd-navbar-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.ls-wd-navbar-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}

.ls-wd-navbar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ls-wd-navbar-avatar .ls-avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.ls-wd-navbar-avatar .ls-online-dot { width: 7px; height: 7px; }

/* 认证标识（头像右下角） */
.ls-wd-navbar-verify {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    line-height: 1;
}

.ls-wd-navbar-verify img,
.ls-wd-navbar-verify i {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.ls-wd-navbar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ls-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 导航栏内的关注按钮 */
.ls-page-navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-wd-follow-btn {
    flex-shrink: 0;
    height: 26px;
    padding: 0 14px;
    border: none;
    border-radius: 14px;
    background: var(--ls-primary, #ff2442);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ls-wd-follow-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.ls-wd-follow-btn.is-follow,
.ls-wd-follow-btn.is-mutual,
.ls-wd-follow-btn.had {
    background: var(--ls-bg-hover, #f5f5f5);
    color: var(--ls-text-tertiary);
}

/* ========== 图片画廊 ========== */
.ls-wd-gallery {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.ls-wd-gallery-scroll {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    touch-action: pan-y;
}

.ls-wd-gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.ls-wd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* 避免图片解码阻塞滑动 */
    content-visibility: auto;
}

.ls-wd-gallery-item.ls-img-locked img {
    filter: blur(20px);
}

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

.ls-wd-img-lock i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
}

/* 小圆点指示器 */
.ls-wd-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
}

.ls-wd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ls-border-light, #ddd);
    transition: all 0.3s;
}

.ls-wd-dot.ls-active {
    background: var(--ls-primary);
    width: 16px;
    border-radius: 3px;
}

/* ========== 内容区域 ========== */
.ls-wd-body {
    padding: 0 16px;
}

/* 状态提示条 */
.ls-wd-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    margin: 12px 0 0;
    border-radius: 8px;
    background: var(--ls-warning-light, #fff8e6);
    color: var(--ls-warning, #e6a23c);
    font-size: 13px;
}

/* ========== 头像通用 ========== */
.ls-avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-primary-light);
    color: var(--ls-primary);
    font-weight: 600;
    font-size: 14px;
}

/* ========== 正文内容 ========== */
.ls-wd-content {
    padding: 14px 0 4px;
}

.ls-wd-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ls-text-primary);
    line-height: 1.5;
    margin: 0 0 8px;
}

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

.ls-wd-at-list .ls-at-link {
    color: var(--ls-primary);
    font-size: 14px;
    text-decoration: none;
}

.ls-wd-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ls-text-primary);
    word-break: break-word;
}

.ls-wd-text img {
    max-width: 100%;
    border-radius: 6px;
}

/* ========== 权限锁定提示 ========== */
.ls-wd-power-lock {
    margin: 12px 0;
    padding: 20px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef9f0 0%, #fdf2e4 100%);
    text-align: center;
}

.ls-wd-power-icon {
    margin-bottom: 8px;
}

.ls-wd-power-icon i {
    font-size: 28px;
    color: var(--ls-warning, #e6a23c);
}

.ls-wd-power-text {
    font-size: 14px;
    color: var(--ls-text-secondary);
    margin-bottom: 12px;
}

.ls-wd-power-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ls-wd-power-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--ls-primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ls-wd-power-action:active {
    opacity: 0.8;
}

.ls-wd-power-unlock-count {
    font-size: 12px;
    color: var(--ls-text-tertiary);
    margin-top: 8px;
}

/* ========== 隐藏内容（已解锁） ========== */
.ls-wd-hidden-content {
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--ls-bg-body);
    border: 1px dashed var(--ls-border-light);
}

.ls-wd-hidden-label {
    font-size: 12px;
    color: var(--ls-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ls-wd-hidden-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ls-text-primary);
}

/* ========== 附件列表 ========== */
.ls-wd-files {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-wd-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ls-bg-body);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.ls-wd-file-item:active {
    background: var(--ls-bg-hover);
}

.ls-wd-file-item > i:first-child {
    font-size: 20px;
    color: var(--ls-primary);
    flex-shrink: 0;
}

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

.ls-wd-file-name {
    display: block;
    font-size: 14px;
    color: var(--ls-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-wd-file-meta {
    display: block;
    font-size: 12px;
    color: var(--ls-text-tertiary);
    margin-top: 2px;
}

.ls-wd-file-item > i:last-child {
    font-size: 18px;
    color: var(--ls-text-tertiary);
    flex-shrink: 0;
}

.ls-wd-file-locked {
    opacity: 0.6;
}

.ls-wd-file-locked > i:first-child {
    color: var(--ls-text-tertiary);
}

/* 附件/网盘链接检测 / 提取码复制按钮 */
.ls-file-check-btn,
.ls-netdisk-check-btn,
.ls-netdisk-copy-pwd {
    font-size: 16px;
    color: var(--ls-text-tertiary);
    flex-shrink: 0;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.ls-file-check-btn:active,
.ls-netdisk-check-btn:active,
.ls-netdisk-copy-pwd:active {
    color: var(--ls-primary);
}
.ls-file-check-btn.ls-checking,
.ls-netdisk-check-btn.ls-checking {
    opacity: 0.5;
    pointer-events: none;
}

/* ========== 代码块 ========== */
.ls-words-detail .ls-post-code {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ls-bg-secondary);
    border: 1px solid var(--ls-border-light);
}

.ls-words-detail .ls-post-code-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--ls-border-light);
    font-size: 11px;
    color: var(--ls-text-tertiary);
}

.ls-words-detail .ls-post-code-header > i { font-size: 14px; }
.ls-words-detail .ls-post-code-lang { text-transform: uppercase; font-weight: 500; font-size: 10px; }
.ls-words-detail .ls-post-code-lock-badge { color: var(--ls-warning); font-size: 11px; }

.ls-words-detail .ls-post-code-body {
    padding: 10px 12px;
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

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

.ls-words-detail .ls-post-code-body code {
    font-family: 'SF Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ls-text);
}

.ls-words-detail .ls-post-code.ls-post-code-locked {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed var(--ls-border);
    font-size: 13px;
    color: var(--ls-text-tertiary);
}

.ls-words-detail .ls-post-code.ls-post-code-locked i { font-size: 18px; color: var(--ls-warning); }

/* ========== 时间 + 来源行 ========== */
.ls-wd-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
    font-size: 12px;
    color: var(--ls-text-tertiary);
}

/* ========== 位置信息（跟在时间来源后面） ========== */
.ls-wd-meta-loc {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--ls-text-tertiary);
}

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

/* ========== 标签 ========== */
.ls-wd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.ls-wd-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--ls-primary-light);
    color: var(--ls-primary);
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ls-wd-tag:active {
    opacity: 0.7;
}

.ls-wd-tag span {
    margin-right: 2px;
    font-weight: 500;
}

/* ========== 板块信息 ========== */
.ls-wd-board {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 8px;
    background: var(--ls-bg-body);
    cursor: pointer;
}

.ls-wd-board:active {
    background: var(--ls-bg-hover);
}

.ls-wd-board-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.ls-wd-board-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text-primary);
}

.ls-wd-board-count {
    font-size: 12px;
    color: var(--ls-text-tertiary);
}

/* ========== 互动统计 ========== */
.ls-wd-stats {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 12px;
    color: var(--ls-text-tertiary);
}

.ls-wd-stats span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ls-wd-stats span i {
    font-size: 13px;
}

.ls-wd-stats-hot {
    color: #ff6b35;
}

.ls-wd-stats-hot i {
    color: #ff6b35;
}

/* ========== 赞过的用户 ========== */
.ls-wd-like-users {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.ls-wd-like-avatars {
    display: flex;
}

.ls-wd-like-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--ls-bg-card);
    object-fit: cover;
    margin-left: -6px;
    cursor: pointer;
}

.ls-wd-like-avatar:first-child {
    margin-left: 0;
}

.ls-wd-like-text {
    font-size: 13px;
    color: var(--ls-text-tertiary);
}

/* ========== 评论区（内页列表） ========== */
.ls-avatar {
    position: relative;
    overflow: visible;
}

.ls-avatar .ls-avatar-verify {
    position: absolute;
    display: block;
    z-index: 2;
}

.ls-wd-comment-section {
    padding: 0 16px 12px;
 
    border-top: 1px solid var(--ls-border-light);
}



.ls-wd-comment-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ls-text-primary);
}

.ls-wd-comment-count {
    font-weight: 400;
    color: #999;
    font-size: 13px;
}

.ls-wd-comment-closed {
    font-size: 13px;
    color: var(--ls-text-tertiary);
}

.ls-wd-comment-list {
    min-height: 20px;
}

.ls-wd-comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    color: var(--ls-text-tertiary);
}

.ls-wd-comment-empty i {
    font-size: 40px;
    opacity: 0.4;
    margin-bottom: 8px;
}

.ls-wd-comment-empty p {
    font-size: 13px;
    margin: 0;
}

.ls-wd-comment-more {
    text-align: center;
    padding: 4px 0 calc(50px + var(--ls-safe-bottom, 0px));
}

.ls-wd-comment-more.is-comment-end-spacer {
    min-height: calc(50px + var(--ls-safe-bottom, 0px));
    padding: 0;
}

.ls-wd-comment-list > .ls-comment-item.is-comment-collapsed {
    display: none !important;
}

.ls-wd-comment-more .btBox {
    padding: 4px 0;
}

.ls-wd-comment-more .bt1 {
    margin: 0 10px;
    overflow: hidden;
}

.ls-wd-comment-more .bt1 a {
    width: 100%;
    box-sizing: border-box;
    float: left;
    border: 1px solid #dbdbdb;
    box-shadow: 0 0 2px 0 #f6f7f8 inset;
    display: block;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #555;
    text-shadow: 2px 2px rgba(255,255,255,0.3);
    background: linear-gradient(to bottom, #fff, #f1f3f6);
}

.ls-wd-comment-loading {
    text-align: center;
    padding: 16px 0;
}

/* 固定底部操作栏会叠在内容上方，占位需要把 safe-area 一起算进去。 */
.ls-wd-bottom-spacer {
    height: calc(72px + var(--ls-safe-bottom));
}

/* ========== 底部操作栏 ========== */
.ls-wd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    z-index: 50;
}

.ls-wd-input-fake {
    flex: 1;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    background:#f5f5f5;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-wd-bar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* 横向布局：图标 + 数量水平排列 */
.ls-wd-bar-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform 0.15s;
}

.ls-wd-bar-btn:active {
    transform: scale(0.9);
}

.ls-wd-bar-btn i {
    font-size: 22px;
    color: #666;
    transition: color 0.2s;
}

.ls-wd-bar-btn span {
    font-size: 13px;
    color: #333;
    line-height: 1;
}

.ls-wd-bar-collect i,
.ls-wd-bar-like i,
.ls-wd-bar-comment i {
    font-size: 22px;
}


/* ========== 评论弹窗 ========== */
.ls-popup-mask {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 200;
}

.ls-ps-mask {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,.4);
    z-index: 98;
}
.ls-ps-mask.active { display: block; }
.ls-ps-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    display: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.22s ease;
}
.ls-ps-sheet.active { display: block; }

.ls-comment-more-sheet .ls-ps-sheet-body {
    padding: 8px 0 12px;
}

.ls-comment-more-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    font-size: 15px;
    color: #222;
    border-top: 1px solid #f3f4f6;
}

.ls-comment-more-action:first-child {
    border-top: 0;
}

.ls-comment-more-action .remix-icon {
    font-size: 18px;
    color: #666;
}

.ls-popup-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ls-popup-panel,
.ls-modal {
    width: 100%;
    max-width: 720px;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(0%);
    transition: transform 0.22s ease;
    overflow: hidden;
}

.ls-popup-mask.ls-emoji-popup .ls-popup-panel {
    height: 50%;
    display: flex;
    flex-direction: column;
}

.ls-popup-mask.ls-emoji-popup .ls-popup-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ls-emoji-popup-body {
    height: 100%;
    overflow: hidden;
}

.ls-emoji-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ls-emoji-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    flex: 0 0 auto;
}

.ls-emoji-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    font-size: 20px;
}

/* active tab style removed per request */

.ls-emoji-tab img {
    width: 22px;
    height: 22px;
    display: block;
}

.ls-emoji-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 12px;
}

.ls-emoji-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    align-content: start;
}

.ls-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

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

.ls-popup-mask.is-open .ls-popup-panel {
    transform: translateY(0);
}

.ls-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f3f3;
}

.ls-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.ls-popup-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.ls-popup-body {
    min-height: 10px;
}

/* ========== 评论更多菜单 ========== */
.ls-comment-more-menu {
    position: fixed;
    z-index: 210;
    min-width: 180px;
}

.ls-comment-more-menu-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.ls-comment-more-item {
    padding: 14px 16px;
    font-size: 14px;
    color: #222;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
}

.ls-comment-more-item:last-child {
    border-bottom: none;
}

.ls-comment-more-item:active {
    background: #f7f7f7;
}

/* ========== 举报弹窗 ========== */
.ls-report-sheet {
    height: 78vh;
    max-height: 78vh;
    overflow: hidden;
    touch-action: pan-y;
}

.ls-report-sheet .ls-popup-header {
    justify-content: flex-start;
    gap: 10px;
    flex: 0 0 auto;
}

.ls-report-sheet .ls-popup-title {
    flex: 1;
}

.ls-report-body,
.ls-report-sheet .ls-ps-sheet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    pointer-events: auto;
}

.ls-report-body {
    padding-bottom: 12px;
}

.ls-report-body .ls-mb-report {
    max-height: none;
    overflow: visible;
}

.ls-report-sheet .ls-mb-report {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100%;
}

.ls-reward-sheet {
    border-radius: 0;
    box-shadow: 0 -10px 28px rgba(0,0,0,.16);
}
.ls-reward-sheet .ls-popup-header {
    height: 52px;
    box-sizing: border-box;
}
.ls-reward-body {
    padding: 16px;
    box-sizing: border-box;
}
.ls-reward-field {
    display: block;
}
.ls-reward-field span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}
.ls-reward-input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 16px;
    color: #222;
    outline: none;
    background: #fff;
}
.ls-reward-input:focus {
    border-color: #4485c4;
}
.ls-reward-tip {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}
.ls-reward-preview {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}
.ls-reward-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.ls-reward-btn {
    flex: 1;
    height: 42px;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.ls-reward-btn-cancel {
    background: #f3f4f6;
    color: #555;
}
.ls-reward-btn-submit {
    background: #4485c4;
    color: #fff;
}
.ls-reward-btn:disabled {
    opacity: .65;
    cursor: default;
}

.ls-mb-report {
    padding: 16px 16px 12px;
    box-sizing: border-box;
    width: 100%;
}

.ls-mb-report-target,
.ls-mb-report-tip,
.ls-mb-report-detail,
.ls-mb-report-reason,
.ls-mb-report-btn {
    border-radius: 6px;
}

.ls-mb-report-target {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px;
    background: #f8f9fb;
}

.ls-mb-report-target-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ef4444;
    font-size: 20px;
}

.ls-mb-report-target-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.ls-mb-report-target-desc {
    font-size: 12px;
    color: #888;
}

.ls-mb-report-section {
    margin-top: 14px;
}

.ls-mb-report-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.ls-mb-report-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ls-mb-report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ececec;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ls-mb-report-reason.is-active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.ls-mb-report-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    flex: 0 0 14px;
    position: relative;
}

.ls-mb-report-reason.is-active .ls-mb-report-radio {
    border-color: #ef4444;
}

.ls-mb-report-reason.is-active .ls-mb-report-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #ef4444;
}

.ls-mb-report-reason-text {
    font-size: 13px;
    color: #222;
}

.ls-mb-report-detail {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #ececec;
    outline: none;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.ls-mb-report-count {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    text-align: right;
}

.ls-mb-report-tip {
    padding: 12px 14px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
}

.ls-mb-report-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), #fff 40%);
}

.ls-mb-report-btn {
    flex: 1;
    height: 40px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.ls-mb-report-cancel { background: #f3f4f6; color: #333; }
.ls-mb-report-submit { background: #ef4444; color: #fff; }
.ls-mb-report-submit:disabled { opacity: 0.5; cursor: not-allowed; }



.ls-comment-input-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-comment-input-wrap {
    border: 1px solid #eee;
    background: #fafafa;
    overflow: hidden;
}

.ls-comment-editor {
    min-height: 96px;
    padding: 12px 14px;
    outline: none;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}

.ls-comment-editor:empty::before {
    content: attr(data-placeholder);
    color: #b3b3b3;
}

.ls-comment-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 16px;
}

.ls-comment-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #666;
    flex: 0 0 38px;
}

.ls-comment-tool-btn i {
    font-size: 19px;
}

.ls-comment-send-btn {
    margin-left: auto;
    padding: 0 14px;
    height: 34px;
    line-height: 34px;
    border-radius: 17px;
    background: #ff2442;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ls-comment-reply-hint,
.ls-comment-at-tags,
.ls-comment-img-preview {
    display: none;
}

.ls-comment-emoji-inline {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    object-fit: contain;
}

.ls-ci-content img[src*="/public/j8/settings/emoticon/"] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    object-fit: contain;
}

.ls-popup-mask#ls-at-popup .ls-popup-panel {
    height: 70%;
    display: flex;
    flex-direction: column;
}

.ls-popup-mask#ls-at-popup .ls-popup-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

.ls-at-popup-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ls-comment-empty {
    padding: 18px 12px;
    text-align: center;
    color: var(--ls-text-tertiary);
}

.ls-at-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ls-border-light);
    border-radius: 12px;
    background: var(--ls-bg);
}

.ls-at-search-input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    font-size: 14px;
    color: var(--ls-text);
}

.ls-at-user-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
	padding: 10px 12px;
}

.ls-at-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
}

.ls-at-user-item.selected {
    background: rgba(0,0,0,0.03);
}

.ls-at-user-name {
    flex: 1;
}

.ls-at-user-item .ls-avatar-sm,
.ls-at-user-item .ls-avatar-sm img {
    width: 38px;
    height: 38px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ls-at-check {
    color: #999;
    font-size: 22px;
    line-height: 1;
}

.ls-at-user-item.selected .ls-at-check {
    color: #111;
}

.ls-at-selected-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--ls-border-light);
}

.ls-at-selected-bar[style*="display: none"] {
    display: none !important;
}

.ls-at-selected-bar[style*="display: flex"] {
    display: flex !important;
}

.ls-at-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 34px;
    line-height: 34px;
    border-radius: 17px;
    background: #ff2442;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* 点赞激活 */
.ls-wd-bar-like.ls-liked i {
    color: #3b82f6;
}

.ls-wd-bar-like.ls-liked span {
    color: #3b82f6;
}

/* 收藏激活 */
.ls-wd-bar-collect.ls-active i {
    color: #f59e0b;
}

.ls-wd-bar-collect.ls-active span {
    color: #f59e0b;
}

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

@keyframes ls-like-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.25); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 爱心粒子飘散 */
.ls-wd-bar-like .ls-like-particle {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    color: var(--ls-danger, #ff2442);
    animation: ls-like-float 0.5s ease-out forwards;
    z-index: 10;
}

.ls-wd-bar-like .ls-like-particle i {
    font-size: 14px;
    display: block;
    transform: scale(var(--s, 1));
}

@keyframes ls-like-float {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--x, 0), var(--y, -30px)) scale(0.3); }
}


/*表情*/


.ls-emoji-popup .ls-popup-body {
  padding:0;
}
.ls-emoji-panel {
  border-top:1px solid var(--ls-border-light);
  background:var(--ls-bg-card);
  flex-shrink:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.ls-emoji-tabs {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px 8px;
  flex:0 0 auto;
  border-bottom:1px solid var(--ls-border-light);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.ls-emoji-tab {
  padding:6px 8px;
  flex-shrink:0;
  opacity:0.5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
}
.ls-emoji-tab i,
.ls-emoji-tab img {
  width:24px;
  height:24px;
  font-size:24px;
}
.ls-emoji-tab span {
  display:inline-block;
  white-space:nowrap;
  writing-mode:horizontal-tb;
  line-height:1;
}
/* emoji popup fixed height layout */
.ls-popup-mask.ls-emoji-popup .ls-popup-panel {
    height: 50%;
    display: flex;
    flex-direction: column;
}

.ls-popup-mask.ls-emoji-popup .ls-popup-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ls-emoji-popup-body {
    height: 100%;
    overflow: hidden;
}

.ls-emoji-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ls-emoji-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
    flex: 0 0 auto;
}

.ls-emoji-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
}

.ls-emoji-tab.active {
    color: #333;
    opacity: 1;
}

.ls-emoji-tab img {
    width: 18px;
    height: 18px;
    display: block;
}

.ls-emoji-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 12px;
}

.ls-emoji-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    align-content: start;
}

.ls-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.ls-emoji-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ls-emoji-group {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(36px,1fr));
  gap:2px;
}
.ls-emoji-group[data-type="text"] {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.ls-emoji-item {
  display:flex;
  align-items:center;
  justify-content:center;
  height:36px;
  border-radius:6px;
}
.ls-emoji-item:active {
  background:var(--ls-bg-secondary);
}
.ls-emoji-item img {
  width:28px;
  height:28px;
}
.ls-emoji-text {
  font-size:14px;
  width:auto;
  height:auto;
  padding:4px 10px;
  background:var(--ls-bg-secondary,#f5f5f5);
  border-radius:14px;
}
/*评论区（内页列表）*/
.ls-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0px 0px;
	border-top: 1px solid #f5f5f5;
}

.ls-comment-list > .ls-comment-item { border-bottom: 0.5px solid var(--ls-border-light); }
.ls-comment-list > .ls-comment-item:last-child { border-bottom: none; }

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

/* 一级评论头像 32px */
.ls-comment-list > .ls-comment-item > .ls-avatar { width: 32px; height: 32px; position: relative; overflow: visible; }
.ls-comment-list > .ls-comment-item > .ls-avatar .ls-avatar-verify { position: absolute; z-index: 3; }
.ls-ci-child-item > .ls-avatar { position: relative; overflow: visible; }
.ls-comment-list > .ls-comment-item > .ls-avatar .ls-avatar-verify img { width: 12px; height: 12px; }
.ls-comment-list > .ls-comment-item > .ls-avatar .ls-online-dot { width: 8px; height: 8px; }

/* 评论锚点高亮：用于从 userinfo 跳转后定位评论 */
.ls-comment-hash-highlight {
    background: rgba(255, 244, 196, .75);
    border-radius: 8px;
    transition: background .3s ease;
}

/* ========== 全局轻量级居中弹窗 ========== */
/*
 * 用途：统一承载用户空间、关注确认、成功/失败提示等轻量反馈。
 * 结构：
 *   .ls-ui-mask  -> 全屏半透明遮罩
 *   .ls-ui-sheet -> 居中内容卡片
 *   .ls-ui-head  -> 标题区
 *   .ls-ui-body  -> 内容区
 *   .ls-ui-footer -> 底部操作区
 * 说明：保持轻量、短文案、居中展示，避免整页跳转。
 */
/* userinfo/fans 二次提示弹窗（与 userinfo 页一致的样式） */
.userinfo-tip-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 102;
    display: none;
}
.userinfo-tip-mask.active { display: block; }
.userinfo-tip-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    width: min(280px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    z-index: 103;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.userinfo-tip-sheet.active { display: block; }
.userinfo-tip-body {
    padding: 22px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.userinfo-tip-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}
.userinfo-tip-btn {
    flex: 1;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: #4485c4;
    font-size: 14px;
    cursor: pointer;
}


.ls-ui-mask {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, .35);
    z-index: 300;
}

.ls-ui-mask.active {
    display: block;
}

.ls-ui-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    width: min(320px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: none;
    z-index: 301;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.ls-ui-sheet.active {
    display: block;
}

.ls-ui-head {
    padding: 16px 16px 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.ls-ui-body {
    padding: 1px 16px 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.ls-ui-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.ls-ui-btn {
    flex: 1;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.ls-ui-btn + .ls-ui-btn {
    border-left: 1px solid #f0f0f0;
}

.ls-ui-btn.primary {
    color: #4485c4;
    font-weight: 700;
}

/* 评论主体本身可点击回复，具体链接/图片/按钮由 JS 排除。 */
.ls-ci-main { flex: 1; min-width: 0; cursor: pointer; }

.ls-ci-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: -2px;
}

.ls-ci-nickname {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.ls-ci-nickname a,
.ls-ci-nickname a:visited,
.ls-ci-nickname a:hover,
.ls-ci-nickname a:active {
    color: #333;
    text-decoration: none;
}

.ls-ci-author-tag {
    font-size: 10px;
    padding: 0 4px;
    background: var(--ls-primary-light);
    color: var(--ls-primary);
    border-radius: 3px;
    line-height: 16px;
}

.ls-ci-content { margin-bottom: 4px; }

.ls-ci-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ls-text);
    word-break: break-word;
}

.ls-at-user-link,
.ls-ci-content .label-primary {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.ls-at-user-link:hover,
.ls-at-user-link:active {
    color: #3b82f6;
    text-decoration: none;
}

.ls-ci-content .con,
.ls-ci-main > .con {
    background: #fff;
    border-radius: 2px;
    line-height: 24px;
    padding: 5px 8px;
    border: 1px solid #E7E7E7;
    color: #808080;
    font-size: 14px;
    margin-bottom: 5px;
}

.ls-ci-reply-ref {
    font-size: 12px;
    color: #999;
    background: #f2f3f5;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.ls-ci-sticky {
    display: inline-block;
    font-size: 10px;
    padding: 0 4px;
    background: var(--ls-danger-light);
    color: var(--ls-danger);
    border-radius: 3px;
    margin-right: 4px;
    line-height: 16px;
}

.ls-ci-at-list { font-size: 13px; }
.ls-ci-at { color: var(--ls-primary); text-decoration: none; }

/* 评论图片 */
.ls-ci-images {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.ls-ci-img-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* 评论语音 */
.ls-ci-voice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--ls-primary-light);
    border-radius: 16px;
    margin-bottom: 4px;
}

.ls-ci-voice-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 16px;
}

.ls-ci-voice-wave i {
    width: 2px;
    height: 8px;
    background: var(--ls-primary);
    border-radius: 1px;
}

.ls-ci-voice em { font-size: 12px; color: var(--ls-primary); font-style: normal; }

/* 语音播放动画 */
.ls-ci-voice.is-playing .ls-ci-voice-wave i {
    animation: ls-ci-voice-wave 0.8s ease-in-out infinite;
}

.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(1) { animation-delay: 0s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(2) { animation-delay: 0.15s; }
.ls-ci-voice.is-playing .ls-ci-voice-wave i:nth-child(3) { animation-delay: 0.3s; }

@keyframes ls-ci-voice-wave {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

/* 评论操作栏 */
.ls-ci-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ls-text-quaternary);
    margin-top: 4px;
}

.ls-ci-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ls-ci-up {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--ls-text-quaternary);
}

.ls-ci-up i { font-size: 15px; }

.ls-ci-up.is-up,
.ls-ci-up.is-active,
.ls-wd-bar-like.is-active,
.ls-wd-bar-like.ls-liked {
    color: #3b82f6 !important;
}

.ls-ci-up.is-up i,
.ls-ci-up.is-active i,
.ls-wd-bar-like.is-active i,
.ls-wd-bar-like.ls-liked i {
    color: #3b82f6 !important;
}

.ls-wd-bar-collect.is-active,
.ls-wd-bar-collect.is-collected {
    color: #ef4444 !important;
}

.ls-wd-bar-collect.is-active i,
.ls-wd-bar-collect.is-collected i {
    color: #ef4444 !important;
}

.ls-wd-bar-collect.is-active span,
.ls-wd-bar-collect.is-collected span {
    color: #ef4444 !important;
}

.ls-ci-up em { font-style: normal; }

.ls-ci-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: var(--ls-text-quaternary);
}

.ls-ci-more i { font-size: 15px; }

/* ==================== 子评论 ==================== */
.ls-ci-child-list {
    margin-top: 1px;
}

.ls-ci-child-item.is-child-collapsed {
    display: none !important;
}

.ls-ci-child-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    padding: 8px 0;
    color: #3b82f6;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.ls-ci-child-toggle i {
    font-size: 15px;
    line-height: 1;
}

.ls-ci-child-toggle:active {
    opacity: .75;
}

/* 子评论项：更紧凑 */

.ls-ci-child-item:last-child,
.ls-ci-child-more + .ls-ci-child-item:last-child { border-bottom: none; }

.ls-ci-child-list > .ls-ci-child-item:last-child { border-bottom: none; }

/* 子评论头像 24px */
.ls-ci-child-item > .ls-avatar { width: 40px; height: 40px; }
.ls-ci-child-item > .ls-avatar .ls-avatar-verify img { width: 10px; height: 10px; }
.ls-ci-child-item > .ls-avatar .ls-online-dot { width: 6px; height: 6px; }

.ls-ci-child-item .ls-ci-nickname { font-size: 15px; }
.ls-ci-child-item .ls-ci-text { font-size: 13px; line-height: 1.5; }
.ls-ci-child-item .ls-ci-content { margin-bottom: 2px; }
.ls-ci-child-item .ls-ci-reply-ref {
    padding: 4px 8px;
    border-radius: 4px;
    margin: 8px 0;
}
.ls-ci-child-item .ls-ci-bar { font-size: 10px; margin-top: 2px; }
.ls-ci-child-item .ls-ci-images { margin-bottom: 2px; }
.ls-ci-child-item .ls-ci-img-item { width: 60px; height: 60px; border-radius: 6px; }

.ls-ci-child-more {
    font-size: 12px;
    color: var(--ls-primary);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 2px;
    border-bottom: 0.5px solid var(--ls-border-light);
}

.ls-ci-child-more:last-child { border-bottom: none; }

.ls-ci-child-more i { font-size: 14px; }

/* ==================== 打赏评论样式 ==================== */
.ls-reward-comment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--ls-radius-lg, 8px);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}
.ls-reward-comment i {
    font-size: 16px;
    color: #f59e0b;
}
.ls-reward-comment b {
    font-weight: 600;
}
.ls-reward-comment-msg {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ls-text-secondary, #666);
    font-style: italic;
}

/* 暗色模式 */
[data-theme="dark"] .ls-reward-comment {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.15), rgba(253, 230, 138, 0.15));
    color: #fcd34d;
}
[data-theme="dark"] .ls-reward-comment i {
    color: #fbbf24;
}
[data-theme="dark"] .ls-reward-comment-msg {
    color: var(--ls-text-tertiary);
}

/* ==================== 送礼评论样式 ==================== */
.ls-gift-comment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 4px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    font-size: 12px;
    color: #9a3412;
    line-height: 20px;
    vertical-align: middle;
}
.ls-gift-comment-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}
.ls-gift-comment-icon {
    font-size: 14px;
    color: #ea580c;
    flex-shrink: 0;
}
.ls-gift-comment-text {
    white-space: nowrap;
}
.ls-gift-comment-text b {
    color: #c2410c;
    font-weight: 500;
}

/*头像*/
/* 头像 */
.ls-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    background: var(--ls-bg-secondary);
    border: 1px solid #fff;
    box-sizing: border-box;
}

.ls-avatar img,
.ls-avatar>a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.ls-avatar-sm {
    width: 32px;
    height: 32px;
}

.ls-avatar-lg {
    width: 56px;
    height: 56px;
}
.ls-avatar-lg .ls-online-dot { width: 14px; height: 14px; }
/*评论区切换*/
.ls-comment-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--ls-border-light);
    flex-shrink: 0;
    margin-left: auto;
}
.ls-comment-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 20px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
    width: 30%;
    margin: auto;
}

.share-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.share-area .ls-wd-like-users {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0 !important;
}

.share-area .ls-wd-like-avatars {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.share-area .ls-wd-like-text {
    white-space: nowrap;
}

.share-area .fav-link,
.share-area .bbs-more {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ls-comment-tab {
    padding: 10px 20px 10px 0;
    font-size: 13px;
    color: var(--ls-text-tertiary);
    position: relative;
}

.ls-comment-tab.active {
    color: var(--ls-text);
    font-weight: 600;
}

.ls-comment-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 20px;
    bottom: -1px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
    width: 30%;
    margin: auto;
}

.ls-wd-comment-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1px 1px;
    box-sizing: border-box;
}

.bbscontent .thread-ubb-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 6px;
}

.bbscontent .thread-ubb-code {
    position: relative;
    margin: 10px 0;
    background: #171a21;
    border: 1px solid #2b303b;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.bbscontent .thread-ubb-code pre {
    margin: 0;
    height: 128px;
    max-height: 128px;
    overflow-y: auto;
    overflow-x: auto;
    padding: 34px 12px 12px;
    background: #171a21;
    color: #d7dae0;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.bbscontent .thread-ubb-code pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.bbscontent .thread-ubb-code pre::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .35);
    border-radius: 8px;
}

.bbscontent .thread-ubb-code code {
    color: inherit;
    font-family: Consolas, Monaco, monospace;
    font-size: inherit;
    line-height: inherit;
    background: transparent;
}

.bbscontent .thread-ubb-code-copy {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    background: rgba(96, 104, 118, .55);
    color: #fff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bbscontent .thread-ubb-code-copy i {
    font-size: 16px;
    line-height: 1;
}

.bbscontent .thread-ubb-code .tok-keyword { color: #c586f5; }
.bbscontent .thread-ubb-code .tok-string { color: #ce9178; }
.bbscontent .thread-ubb-code .tok-number { color: #f3d17c; }
.bbscontent .thread-ubb-code .tok-comment { color: #7f8794; }
.bbscontent .thread-ubb-code .tok-tag { color: #7dd3fc; }
.bbscontent .thread-ubb-code .tok-attr { color: #93c5fd; }
.bbscontent .thread-ubb-code .tok-fn { color: #8bd5ff; }
.bbscontent .thread-ubb-code .tok-var { color: #e5e7eb; }
