/* 市场帖：出售展示页 + 卖家隐私 */

.ls-article-detail-page.is-market-privacy .ls-article-author.is-market-privacy-author .ls-article-author-name > a,
.ls-article-detail-page.is-market-privacy .ls-article-author.is-market-privacy-author .ls-avatar a {
    pointer-events: none;
}

.ls-article-detail-page.is-market-privacy .ls-article-author.is-market-privacy-author .ls-article-follow-btn,
.ls-article-detail-page.is-market-privacy .ls-article-author.is-market-privacy-author .ls-online-dot {
    display: none !important;
}

.ls-article-detail-page.is-market-privacy .ls-article-copyright-author {
    color: #8f959e;
}

.ls-comment-item[data-market-privacy="1"] .ls-ci-nickname a,
.ls-comment-item[data-market-privacy="1"] .ls-avatar a {
    pointer-events: none;
    cursor: default;
    color: inherit;
    text-decoration: none;
}

.ls-comment-item[data-market-privacy="1"] .ls-avatar {
    cursor: default;
}

/* ===== 出售展示布局 ===== */
.ls-article-detail-page.is-market-sell .fl-sell-origin-header {
    display: none !important;
}

.ls-article-detail-page.is-market-sell .ls-article-at-list {
    display: none !important;
}

/* 出售页去除右侧栏，主内容水平居中 */
.ls-article-detail-page.is-market-sell .ls-sidebar-right,
.ls-article-detail-page.is-market-sell #sidebar_content_article_right {
    display: none !important;
}

.ls-article-detail-page.is-market-sell {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
    width: var(--ls-width, 1200px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.ls-article-detail-page.is-market-sell .ls-article-detail-main {
    flex: 0 1 900px;
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.fl-sell-hero {
    padding: 0 !important;
    overflow: hidden;
    width: 100%;
}

.fl-sell-gallery {
    width: 100%;
    background: #f5f6f8;
}

.fl-sell-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    background: #eef0f3;
    overflow: hidden;
}

.fl-sell-main-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.fl-sell-gallery-empty .fl-sell-stage {
    min-height: 220px;
}

.fl-sell-empty {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b0b6bf;
    font-size: 13px;
}

.fl-sell-empty i {
    font-size: 40px;
    opacity: 0.85;
}

.fl-sell-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s ease;
}

.fl-sell-gallery:hover .fl-sell-nav {
    opacity: 1;
}

.fl-sell-prev { left: 12px; }
.fl-sell-next { right: 12px; }

.fl-sell-nav i { font-size: 20px; }

.fl-sell-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px 0;
    overflow-x: auto;
}

.fl-sell-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.fl-sell-thumb.is-on {
    border-color: var(--fl-primary, #3b82f6);
}

.fl-sell-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fl-sell-summary {
    padding: 18px 20px 20px;
}

.fl-sell-crumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8f959e;
}

.fl-sell-crumb a {
    color: #8f959e;
    text-decoration: none;
}

.fl-sell-crumb a:hover {
    color: var(--fl-primary, #3b82f6);
}

.fl-sell-crumb i {
    font-size: 14px;
}

.fl-sell-badges-slot .ls-article-badges {
    margin-bottom: 8px;
}

.fl-sell-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
    color: #1f2329;
    letter-spacing: -0.01em;
}

.fl-sell-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #8f959e;
}

.fl-sell-meta i {
    margin-right: 3px;
    font-size: 14px;
}

.fl-sell-alias {
    display: inline-flex;
    align-items: center;
    color: #646a73;
}

.fl-sell-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fl-sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fl-sell-btn i {
    font-size: 16px;
}

.fl-sell-btn-primary {
    background: var(--fl-primary, #3b82f6);
    color: #fff;
}

.fl-sell-btn-primary:hover {
    filter: brightness(1.05);
}

.fl-sell-btn-ghost {
    background: #fff;
    border-color: #d0d3d9;
    color: #1f2329;
}

.fl-sell-btn-ghost:hover,
.fl-sell-btn-ghost.is-on {
    border-color: var(--fl-primary, #3b82f6);
    color: var(--fl-primary, #3b82f6);
}

.fl-sell-more-slot .ls-post-more {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #d0d3d9;
    cursor: pointer;
    color: #646a73;
}

.fl-sell-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f7f8fa;
    border: 1px solid #e8eaed;
    font-size: 13px;
    line-height: 1.5;
    color: #646a73;
}

.fl-sell-tip i {
    flex-shrink: 0;
    margin-top: 1px;
    color: #52c41a;
    font-size: 16px;
}

.fl-sell-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
}

.fl-sell-section-label i {
    color: #8f959e;
    font-size: 16px;
}

/* 出售页弱化打赏/送礼，突出收藏与内容 */
.ls-article-detail-page.is-market-sell .ls-article-act-reward,
.ls-article-detail-page.is-market-sell .ls-article-act-gift {
    opacity: 0.72;
}

@media (max-width: 768px) {
    .fl-sell-summary {
        padding: 14px 14px 16px;
    }

    .fl-sell-title {
        font-size: 18px;
    }

    .fl-sell-stage {
        max-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .fl-sell-actions {
        gap: 8px;
    }

    .fl-sell-btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .fl-sell-more-slot {
        flex: 0 0 auto;
    }
}
