/* wan38.com lightweight social-blog tuning */
:root {
    --ls-header-height: 94px;
}

body.lightsns {
    --ls-header-height: 94px;
}

.ls-header-inner {
    position: relative;
    /* 高于同级论坛公告条，确保发布/通知/头像下拉菜单可见且可点击。 */
    z-index: 3;
    height: 64px;
}

.ls-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    height: 30px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(90deg, #0f172a 0%, #1f2937 52%, #164e63 100%);
    pointer-events: none;
}

.ls-forum-ticker {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    height: 30px;
    z-index: 2;
    display: block;
    /* 公告条只展示论坛文案，不能截断头部下拉菜单的 hover/click。 */
    pointer-events: none;
}

.ls-forum-ticker-inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ls-forum-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    font-size: 12px;
    font-weight: 600;
}

.ls-forum-ticker-track {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.ls-forum-ticker-run {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 30px;
    animation: ls-forum-ticker-scroll 48s linear infinite;
}

.ls-forum-ticker-run span,
.ls-forum-ticker-run a {
    position: relative;
    color: #f8fafc;
}

.ls-forum-ticker-run a {
    pointer-events: auto;
    text-decoration: none;
}

.ls-forum-ticker-run a:hover {
    color: #bae6fd;
}

.ls-forum-ticker-run span::after,
.ls-forum-ticker-run a::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.85;
}

@keyframes ls-forum-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-forum-ticker-run {
        animation: none;
    }
}

.ls-sns-page {
    width: min(1280px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 16px 0 28px;
}

.ls-sns-main {
    flex: 0 1 900px;
    max-width: 900px;
    margin: 0;
}

.ls-sns-page > .ls-sidebar-left {
    flex: 0 0 220px;
    width: 220px;
}

.ls-sns-page > .ls-sidebar-right {
    flex: 0 0 360px;
    width: 360px;
}

.ls-publish {
    overflow: hidden;
}

.ls-publish .ls-input-wrap {
    min-height: 44px;
}

.ls-publish.ls-active .ls-publish-editor-body {
    min-height: 84px;
}

.ls-publish.ls-active .ls-publish-textarea,
.ls-publish.ls-active .ls-editor-content {
    min-height: 72px;
    max-height: 150px;
    overflow-y: auto;
}

.ls-submit-btn,
.ls-publish-submit .ls-submit-btn {
    min-width: 72px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    body.lightsns {
        --ls-header-height: 64px;
    }

    .ls-header::before,
    .ls-forum-ticker {
        display: none;
    }

    .ls-sns-page {
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .ls-sns-main {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

.ls-mobile .ls-pw-page {
    background: #fff;
}

.ls-mobile .ls-pw-body {
    padding: 0 14px 8px;
}

.ls-mobile .ls-pw-user {
    padding: 10px 0 4px;
}

.ls-mobile .ls-pw-editor {
    padding: 0;
}

.ls-mobile .ls-pw-textarea {
    min-height: 64px;
    max-height: 150px;
    line-height: 1.55;
    overflow-y: auto;
}

.ls-mobile .ls-pw-count {
    padding-bottom: 4px;
}

.ls-mobile .ls-pw-toolbar {
    height: 44px;
    padding-top: 6px;
}

.ls-mobile .ls-pw-tool-btn {
    width: 34px;
    height: 34px;
}

.ls-mobile .ls-pw-submit-btn {
    min-width: 58px;
    padding: 0 14px;
    border-radius: 8px;
}
