/* 吾爱破解式论坛门户首页 */

.ls52-home {
    --ls52-max-width: 1400px;
    --ls52-cols: 4;
    --ls52-card-radius: 8px;
    --ls52-sticky-color: #e53935;
    --ls52-essence-color: #fb8c00;
    --ls52-today-color: #1e88e5;
    --ls52-row-hover: #f5f7fa;
    --ls52-gap: 16px;
    --ls52-border: rgba(0, 0, 0, 0.08);
    --ls52-text: #222;
    --ls52-muted: #888;
    --ls52-card-bg: #fff;
    --ls52-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

    box-sizing: border-box;
    width: 100%;
    max-width: var(--ls52-max-width);
    margin: 0 auto;
    padding: 16px 16px 10px;
    color: var(--ls52-text);
}

.ls52-home *,
.ls52-home *::before,
.ls52-home *::after {
    box-sizing: border-box;
}

/* ===== Banner ===== */
.ls52-banner {
    margin-bottom: 12px;
}

.ls52-banner-inner {
    position: relative;
    border-radius: var(--ls52-card-radius);
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid var(--ls52-border);
}

.ls52-banner-track {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 5;
    min-height: 120px;
    max-height: 220px;
}

.ls52-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-decoration: none;
}

.ls52-banner-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.ls52-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls52-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ls52-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

.ls52-banner-dot.is-active {
    background: #fff;
}

/* ===== 快捷入口 + 搜索（吾爱式 · 紧凑） ===== */
.ls52-shortcuts {
    margin-bottom: 10px;
}

.ls52-shortcuts-panel {
    background: linear-gradient(180deg, #f7fbfe 0%, #eef5fa 100%);
    border: 1px solid #d5e4ef;
    border-radius: var(--ls52-card-radius);
    box-shadow: var(--ls52-shadow);
    overflow: hidden;
}

.ls52-nav-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 28px;
    padding: 8px 12px 6px;
}

.ls52-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    padding: 2px 0;
}

.ls52-nav-group-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--ls-border-radius-btn, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    margin-top: 0;
}

.ls52-nav-group-icon .remix-icon,
.ls52-nav-group-icon i {
    font-size: inherit;
    line-height: 1;
}

.ls52-nav-group-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-auto-rows: min-content;
    column-gap: 14px;
    row-gap: 3px;
    min-width: 0;
    flex: 0 0 auto;
    align-content: center;
}

/* 链接较多时自动扩成 3 列（更接近吾爱分区密度） */
.ls52-nav-group-links.is-cols-3 {
    grid-template-columns: repeat(3, max-content);
}

.ls52-nav-group-links a {
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8.5em;
    padding: 0;
}

.ls52-nav-group-links a:hover {
    text-decoration: underline;
}

.ls52-nav-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 7px 12px 9px;
    border-top: 1px solid #d9e6f0;
    background: rgba(255, 255, 255, 0.55);
}

.ls52-nav-search-form {
    display: flex;
    align-items: stretch;
    flex: 1 1 280px;
    min-width: 200px;
    max-width: 480px;
    height: 30px;
}

.ls52-nav-search-input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #b8cfe0;
    border-right: none;
    border-radius: var(--ls-border-radius-btn, 3px) 0 0 var(--ls-border-radius-btn, 3px);
    background: #fff;
    font-size: 13px;
    color: #333;
    outline: none;
}

.ls52-nav-search-input:focus {
    border-color: #4a90c6;
}

.ls52-nav-search-btn {
    width: 38px;
    height: 30px;
    border: 1px solid #3a7eb0;
    border-radius: 0 var(--ls-border-radius-btn, 3px) var(--ls-border-radius-btn, 3px) 0;
    background: #4a90c6;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    padding: 0;
}

.ls52-nav-search-btn:hover {
    background: #3a7eb0;
}

.ls52-hot-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
    min-width: 0;
    flex: 1 1 180px;
    font-size: 12px;
    color: #888;
}

.ls52-hot-search-label {
    flex-shrink: 0;
    color: #666;
}

.ls52-hot-search a {
    color: #1a5fb4;
    text-decoration: none;
    white-space: nowrap;
}

.ls52-hot-search a:hover {
    text-decoration: underline;
    color: #e53935;
}

@media (max-width: 768px) {
    .ls52-nav-groups {
        gap: 8px 12px;
    }
    .ls52-nav-group {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
    .ls52-nav-group-links,
    .ls52-nav-group-links.is-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1;
    }
    .ls52-nav-group-links a {
        max-width: none;
    }
    .ls52-nav-search-form {
        max-width: none;
        flex: 1 1 100%;
    }
}

/* ===== 活跃榜 · 门户皮肤（仅 .ls52-rank-wrap，不改侧栏原样式/原逻辑） ===== */
.ls52-rank-wrap {
    margin: 14px 0 18px;
}

.ls52-rank-wrap.is-active {
    display: block;
}

.ls52-rank-zone {
    background: var(--ls52-card-bg);
    border: 1px solid var(--ls52-border);
    border-radius: var(--ls52-card-radius);
    overflow: hidden;
    box-shadow: var(--ls52-shadow);
}

.ls52-rank-zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #e8f4fc 0%, #d9eef9 100%);
    border-bottom: 1px solid #c5dde8;
    min-height: 36px;
}

.ls52-rank-zone-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ls52-rank-zone-left > i {
    font-size: 16px;
    color: #2a6f97;
    line-height: 1;
}

.ls52-rank-zone-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a5270;
    white-space: nowrap;
}

.ls52-rank-zone-mods {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
}

.ls52-rank-mount {
    padding: 0;
}

.ls52-rank-wrap .ls-sidebar-wrap,
.ls52-rank-wrap .ls-widget-card,
.ls52-rank-wrap .YXYH-pc-widget-active-rank {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* 顶栏工具条：奖金池 | Tab | 帮助 */
.ls52-rank-wrap .ls52-rank-skinned > .ls-widget-header {
    display: none !important;
}

.ls52-rank-wrap .ls52-rank-toolbar {
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: linear-gradient(90deg, #fff8e6 0%, #fff4dc 42%, #f3f8fc 100%);
    border-bottom: 1px solid #e6edf3;
    min-height: 44px;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-width: 180px;
    overflow: visible;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle::before {
    display: none !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle > i {
    color: #d48806;
    font-size: 16px;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-label {
    font-size: 12px;
    font-weight: 500;
    color: #8a6d3b;
    letter-spacing: 0;
    white-space: nowrap;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-left: 4px;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-amount b {
    font-size: 20px;
    font-weight: 800;
    color: #c47a00;
    line-height: 1;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-amount em,
.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-carry,
.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-subtitle .bonus-warmup-tip {
    font-size: 12px;
    color: #a08050;
    border-left: none;
    padding-left: 0;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-tabs {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    gap: 16px;
    border: none !important;
    background: transparent !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-tab {
    padding: 6px 2px !important;
    font-size: 13px;
}

.ls52-rank-wrap .ls52-rank-toolbar > .active-rank-help {
    flex: 0 0 auto;
    margin-left: 0;
    width: 22px;
    height: 22px;
    color: #6a8498;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #c9d9e6;
}

/* 主体舞台：左领奖台 + 右两列密排名单 */
.ls52-rank-wrap .ls52-rank-skinned .ls52-rank-stage {
    display: grid !important;
    grid-template-columns: 268px minmax(0, 1fr);
    align-items: stretch;
    min-height: 156px;
    background: #fff;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-panel {
    display: none !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-panel.is-active {
    display: block !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-podium {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0 !important;
    padding: 16px 8px !important;
    max-width: none !important;
    background: linear-gradient(180deg, #f4f9fd 0%, #eaf3f9 100%);
    border-right: 1px solid #dde8f0;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-col {
    flex: 1;
    min-width: 0;
    padding: 6px 2px !important;
    border-radius: 6px;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-col:hover {
    background: rgba(26, 82, 112, 0.05);
    transform: none;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-1 .podium-avatar-wrap {
    width: 50px !important;
    height: 50px !important;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-2 .podium-avatar-wrap,
.ls52-rank-wrap .ls52-rank-skinned .podium-3 .podium-avatar-wrap {
    width: 40px !important;
    height: 40px !important;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-avatar-wrap {
    margin-bottom: 6px !important;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-name {
    font-size: 12px;
    max-width: 78px;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-score {
    font-size: 11px;
}

.ls52-rank-wrap .ls52-rank-skinned .podium-bonus {
    margin-top: 2px;
    font-size: 11px;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-content: start;
    background: #fff;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-item {
    display: grid !important;
    grid-template-columns: 22px 30px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-item:hover {
    background: #f7fbfe !important;
    transform: none !important;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-no {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    color: #8a97a5;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-avatar .ls-avatar-sm {
    width: 28px !important;
    height: 28px !important;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-info {
    min-width: 0;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-name {
    font-size: 13px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-meta {
    font-size: 11px;
    color: #9aa3ad;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-value {
    flex-shrink: 0;
    white-space: nowrap;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-num {
    font-size: 13px;
    font-weight: 700;
    color: #1e88e5;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-unit {
    font-size: 11px;
    color: #9aa3ad;
}

.ls52-rank-wrap .ls52-rank-skinned .rank-delta {
    display: none;
}

/* 无领奖台时名单通栏 */
.ls52-rank-wrap .ls52-rank-skinned .ls52-rank-stage.is-list-only {
    grid-template-columns: 1fr;
}

.ls52-rank-wrap .ls52-rank-skinned .ls52-rank-stage.is-list-only .active-rank-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 底栏 */
.ls52-rank-wrap .ls52-rank-skinned .active-rank-countdown,
.ls52-rank-wrap .ls52-rank-skinned .active-rank-me,
.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-history {
    margin: 0 !important;
    border-radius: 0 !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-countdown {
    padding: 7px 14px !important;
    background: #fafbfc;
    border-top: 1px solid #eef1f4;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-me {
    margin: 8px 12px !important;
    border-radius: 6px !important;
}

.ls52-rank-wrap .ls52-rank-skinned .active-rank-bonus-history {
    border-top: 1px solid #eef1f4;
}

@media (max-width: 980px) {
    .ls52-rank-wrap .ls52-rank-skinned .ls52-rank-stage {
        grid-template-columns: 1fr;
    }

    .ls52-rank-wrap .ls52-rank-skinned .active-rank-podium {
        border-right: none;
        border-bottom: 1px solid #dde8f0;
        padding: 12px 8px !important;
    }

    .ls52-rank-wrap .ls52-rank-skinned .active-rank-list,
    .ls52-rank-wrap .ls52-rank-skinned .ls52-rank-stage.is-list-only .active-rank-list {
        grid-template-columns: 1fr !important;
    }

    .ls52-rank-zone-mods {
        max-width: 40%;
    }

    .ls52-banner-track {
        aspect-ratio: 16 / 6;
        max-height: 160px;
    }
}

@media (max-width: 900px) {
    .ls52-banner-track {
        aspect-ratio: 16 / 6;
        max-height: 160px;
    }
}

/* ===== 公告（已并入统计条，旧样式保留兼容） ===== */
.ls52-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff8e1 0%, #fff3e0 100%);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: var(--ls52-card-radius);
    overflow: hidden;
    min-height: 42px;
}

.ls52-notice-icon {
    flex-shrink: 0;
    color: #f57c00;
    font-size: 18px;
    line-height: 1;
}

.ls52-notice-track {
    flex: 1;
    position: relative;
    height: 22px;
    overflow: hidden;
}

.ls52-notice-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #5d4037;
    text-decoration: none;
}

.ls52-notice-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.ls52-notice-item:hover {
    color: #e65100;
}

/* ===== 分区标题 ===== */
.ls52-zone-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ls52-today-color);
}

.ls52-zone-title-icon {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    color: var(--ls52-today-color);
    line-height: 1;
}

.ls52-zone-title-icon img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.ls52-zone-title-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ls52-text);
}

.ls52-zone-title-desc {
    font-size: 13px;
    color: var(--ls52-muted);
    font-weight: 400;
}

/* ===== 方块网格 ===== */
.ls52-block-grid {
    display: grid;
    grid-template-columns: repeat(var(--ls52-cols), 1fr);
    gap: var(--ls52-gap);
    margin-bottom: 28px;
}

.ls52-content-zone {
    margin-bottom: 8px;
}

/* ===== 吾爱式版块分区 ===== */
.ls52-forums {
    margin: 8px 0 20px;
}

.ls52-forum-zone {
    margin-bottom: 18px;
    background: var(--ls52-card-bg);
    border: 1px solid var(--ls52-border);
    border-radius: var(--ls52-card-radius);
    overflow: hidden;
    box-shadow: var(--ls52-shadow);
}

.ls52-forum-zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #e8f4fc 0%, #d9eef9 100%);
    border-bottom: 1px solid #c5dde8;
    min-height: 36px;
}

.ls52-forum-zone-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ls52-forum-zone-icon {
    display: inline-flex;
    font-size: 16px;
    color: #2a6f97;
    line-height: 1;
}

.ls52-forum-zone-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a5270;
    white-space: nowrap;
}

.ls52-forum-zone-mods {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

.ls52-bbs-list {
    display: flex;
    flex-direction: column;
}

.ls52-bbs-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 110px minmax(160px, 22%);
    gap: 10px 14px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.12s ease;
}

.ls52-bbs-row:last-child {
    border-bottom: none;
}

.ls52-bbs-row:hover {
    background: #f7fbfe;
}

.ls52-bbs-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ls52-bbs-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ls52-bbs-icon i {
    font-size: 28px;
    color: #c0c0c0;
    line-height: 1;
}

.ls52-bbs-row.has-new .ls52-bbs-icon i {
    color: #f0ad4e;
}

.ls52-bbs-info {
    min-width: 0;
}

.ls52-bbs-title-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 2px;
}

.ls52-bbs-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a5fb4;
    text-decoration: none;
    line-height: 1.35;
}

.ls52-bbs-name:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.ls52-bbs-name.has-custom-color:hover {
    /* 内联 color 已压过默认 hover 色，仅微调明暗 */
    filter: brightness(0.88);
}

/* 渐变文字：color 无法直接写 linear-gradient */
.ls52-bbs-name.is-gradient {
    color: transparent !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ls52-bbs-name.is-gradient:hover {
    filter: brightness(1.08);
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.ls52-bbs-today {
    font-size: 13px;
    /* font-weight: 700; */
    color: #e53935;
}

.ls52-bbs-today[hidden] {
    display: none !important;
}

.ls52-bbs-today.is-live-bump {
    animation: ls52TodayBump 0.7s ease;
}

@keyframes ls52TodayBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); color: #c62828; }
    100% { transform: scale(1); }
}

.ls52-bbs-desc {
    font-size: 12px;
    /* color: #8a5a2b; */
    line-height: 1.45;
    margin: 2px 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls52-bbs-mods {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.ls52-bbs-mods a {
    color: #555;
    text-decoration: none;
}

.ls52-bbs-mods a:hover {
    color: #1a5fb4;
    text-decoration: underline;
}

.ls52-bbs-counts {
    text-align: center;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.ls52-bbs-latest {
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

.ls52-bbs-latest-title {
    display: block;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.ls52-bbs-latest-title:hover {
    color: #1a5fb4;
    text-decoration: underline;
}

.ls52-bbs-latest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #999;
}

.ls52-bbs-latest-author {
    color: #777;
}

.ls52-bbs-latest-empty {
    color: #bbb;
}

/* ===== 方块卡片（内容推荐区） ===== */
.ls52-block-card {
    display: flex;
    flex-direction: column;
    background: var(--ls52-card-bg);
    border: 1px solid var(--ls52-border);
    border-radius: var(--ls52-card-radius);
    box-shadow: var(--ls52-shadow);
    overflow: hidden;
    min-height: 0;
}

.ls52-block-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ls52-block-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ls52-border);
    background: #f5f5f5;
    position: relative;
}

.ls52-block-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    font-size: 14px;
    color: var(--ls52-today-color);
    line-height: 1;
}

.ls52-block-head-icon img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.ls52-block-head-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ls52-block-more-inline {
    font-size: 12px;
    color: #e53935;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;
}

.ls52-block-more-inline:hover {
    text-decoration: underline;
}

.ls52-block-head-stats {
    display: none;
}

/* 周活跃榜方块：标题旁奖金池 + 仅昵称列表 */
.ls52-rank-pool-inline {
    font-size: 12px;
    color: #a06710;
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.ls52-rank-pool-inline[hidden] {
    display: none !important;
}

.ls52-rank-pool-inline.is-live-bump {
    animation: ls52TodayBump 0.7s ease;
}

.ls52-block-card-rank.is-rank-live-flash .ls52-rank-name-list {
    animation: ls52LiveIn 0.9s ease;
}

.ls52-rank-pool-inline b {
    font-size: 14px;
    font-weight: 800;
    color: #4a90d9;
    margin: 0 2px;
    font-feature-settings: "tnum";
}

.ls52-rank-pool-inline em {
    font-style: normal;
    font-size: 11px;
    color: #b8860b;
}

.ls52-rank-name-list {
    padding: 2px 0 4px;
}

.ls52-rank-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
    padding: 0 10px 0 30px;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.12s ease;
    min-width: 0;
    height: 28px;
    box-sizing: border-box;
    line-height: 28px;
    background-color: transparent;
    background-image: none !important;
    border-bottom: none !important;
    overflow: visible;
}

.ls52-rank-name-row:link,
.ls52-rank-name-row:visited,
.ls52-rank-name-row:hover,
.ls52-rank-name-row:active {
    text-decoration: none !important;
}

/* 通栏虚线：画在行底，左右顶满卡片 */
.ls52-rank-name-row:not(:last-child)::after,
.ls52-post-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 1px;
    border: 0;
    border-bottom: 1px dashed #CDCDCD;
    pointer-events: none;
    z-index: 2;
}

.ls52-rank-name-row:hover {
    background-color: var(--ls52-row-hover, #f5f7fa);
}

.ls52-rank-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}

/* 前三名：金 / 银 / 铜，颜色拉开差异 */
.ls52-block-card-rank a.ls52-rank-name-row.is-top1 .ls52-rank-name {
    /* color: #e6a200 !important; */
    color: #e84040 !important;
}

.ls52-block-card-rank a.ls52-rank-name-row.is-top2 .ls52-rank-name {
    color: #6b7f92 !important;
}

.ls52-block-card-rank a.ls52-rank-name-row.is-top3 .ls52-rank-name {
    color: #c87828 !important;
}

.ls52-rank-name-row:hover .ls52-rank-name {
    text-decoration: underline;
}

.ls52-rank-bonus {
    flex: 0 0 auto;
    font-size: 12px;
    color: #c9a227;
    font-feature-settings: "tnum";
    white-space: nowrap;
    line-height: 1;
}

.ls52-rank-bonus.is-empty {
    display: none;
}

.ls52-rank-posts {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 400;
    color: #9aa3ad;
    white-space: nowrap;
    font-feature-settings: "tnum";
    line-height: 1;
}

.ls52-block-card-rank a.ls52-rank-name-row.is-top1 .ls52-rank-bonus {
    /* color: #e6a200; */
    color: #ef4444;
}

.ls52-block-card-rank a.ls52-rank-name-row.is-top2 .ls52-rank-bonus {
    color: #6b7f92;
}

.ls52-block-card-rank a.ls52-rank-name-row.is-top3 .ls52-rank-bonus {
    color: #c87828;
}

/* ===== 帖子列表 ===== */
.ls52-post-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0;
    min-height: 80px;
    width: 100%;
}

.ls52-post-row {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 100%;
    align-self: stretch;
    padding: 0 10px 0 26px;
    border-bottom: none !important;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.12s ease;
    height: 28px;
    box-sizing: border-box;
    line-height: 28px;
    overflow: visible;
    background-color: transparent;
    background-image: none !important;
}

.ls52-post-row.is-live-new {
    animation: ls52LiveIn 0.9s ease;
}

@keyframes ls52LiveIn {
    0% { background-color: rgba(30, 136, 229, 0.16); }
    100% { background-color: transparent; }
}

.ls52-post-row:link,
.ls52-post-row:visited,
.ls52-post-row:hover,
.ls52-post-row:active {
    text-decoration: none !important;
}

.ls52-post-row:hover {
    background-color: var(--ls52-row-hover);
}

/* 吾爱式序号精灵图（隐藏原彩色数字方块） */
.ls52-bullet {
    display: none !important;
}

/* 序号挂在 ::before；与昵称垂直居中对齐 */
.ls52-post-row::before,
.ls52-rank-name-row::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 18px;
    height: 14px;
    margin-top: 0;
    transform: translateY(-50%);
    background-image: url(assets/list_bg_7ree.gif);
    background-repeat: no-repeat;
    background-position: 0 -5px;
    pointer-events: none;
    z-index: 1;
}

/* 每行对应序号：步进 23px，对准数字本体（避开格底短虚线） */
.ls52-post-list > .ls52-post-row:nth-child(1)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(1)::before { background-position: 0 -5px; }
.ls52-post-list > .ls52-post-row:nth-child(2)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(2)::before { background-position: 0 -28px; }
.ls52-post-list > .ls52-post-row:nth-child(3)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(3)::before { background-position: 0 -51px; }
.ls52-post-list > .ls52-post-row:nth-child(4)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(4)::before { background-position: 0 -74px; }
.ls52-post-list > .ls52-post-row:nth-child(5)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(5)::before { background-position: 0 -97px; }
.ls52-post-list > .ls52-post-row:nth-child(6)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(6)::before { background-position: 0 -120px; }
.ls52-post-list > .ls52-post-row:nth-child(7)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(7)::before { background-position: 0 -143px; }
.ls52-post-list > .ls52-post-row:nth-child(8)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(8)::before { background-position: 0 -166px; }
.ls52-post-list > .ls52-post-row:nth-child(9)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(9)::before { background-position: 0 -189px; }
.ls52-post-list > .ls52-post-row:nth-child(10)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(10)::before { background-position: 0 -212px; }
.ls52-post-list > .ls52-post-row:nth-child(11)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(11)::before { background-position: 0 -234px; }
.ls52-post-list > .ls52-post-row:nth-child(n+12)::before,
.ls52-rank-name-list > .ls52-rank-name-row:nth-child(n+12)::before { background-position: 0 -234px; }

.ls52-post-row.is-today .ls52-post-title {
    font-weight: 400;
    color: var(--ls52-today-color);
}

.ls52-post-row.is-essence .ls52-post-title {
    color: #c62828;
    font-weight: 400;
}

.ls52-post-tags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ls52-tag-sticky,
.ls52-tag-essence,
.ls52-tag-new {
    display: inline-block;
    padding: 0 5px;
    font-size: 11px;
    line-height: 18px;
    border-radius: 2px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.ls52-tag-new {
    background: #e53935;
    flex-shrink: 0;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    border-radius: 2px;
}
}

.ls52-tag-sticky {
    background: var(--ls52-sticky-color);
}

.ls52-tag-essence {
    background: var(--ls52-essence-color);
}

.ls52-post-title {
    flex: 1;
    min-width: 0;
    margin-left: 5px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ls52-text);
}

.ls52-post-row:hover .ls52-post-title {
    /* color: var(--ls52-today-color); */
    text-decoration: none !important;
}

/* 吾爱式标题悬停提示（挂 body，避免卡片 overflow 裁剪） */
.ls52-post-tipbox {
    position: fixed;
    z-index: 10050;
    min-width: 160px;
    max-width: 240px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(208, 213, 221, 0.9);
    border-radius: var(--ls-border-radius-btn, 4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    color: #222;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.ls52-post-tipbox[hidden] {
    display: none !important;
}

.ls52-post-tip-title {
    font-size: 13px;
    font-weight: 400;
    color: #111;
    margin-bottom: 6px;
    word-break: break-word;
    white-space: normal;
}

.ls52-post-tipbox.is-today .ls52-post-tip-title {
    color: var(--ls52-today-color, #e53935);
}

.ls52-post-tip-line {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls52-post-tip-label {
    color: #888;
}

.ls52-post-tip-val {
    color: #222;
}

.ls52-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ls52-muted);
    max-width: 48%;
}

.ls52-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.ls52-post-meta-item img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.ls52-post-empty {
    padding: 24px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--ls52-muted);
}

.ls52-block-more {
    display: block;
    padding: 8px 14px 12px;
    text-align: right;
    font-size: 13px;
    color: var(--ls52-today-color);
    text-decoration: none;
    border-top: 1px solid var(--ls52-border);
}

.ls52-block-more:hover {
    text-decoration: underline;
}

.ls52-block-more {
    display: none;
}

/* ===== 顶部统计条（吾爱式） ===== */
.ls52-stats-bar {
    display: block;
    margin-bottom: 10px;
    padding: 8px 4px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.ls52-stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ls52-stats-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    min-width: 0;
}

.ls52-stats-bar-left em {
    font-style: normal;
    color: #1a5fb4;
    /* font-weight: 600; */
    margin: 0 2px;
}

.ls52-stats-sep {
    margin: 0 8px;
    color: #ccc;
}

.ls52-stats-new,
a.ls52-stats-new {
    color: #1a5fb4;
    /* font-weight: 600; */
    text-decoration: none;
    font-style: normal;
}

a.ls52-stats-new:hover {
    text-decoration: underline;
}

.ls52-stats-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 48%;
}

.ls52-stats-notice-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.ls52-stats-notice-item {
    display: none;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-width: 0;
    opacity: 0;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.ls52-stats-notice-item.is-active {
    display: inline-flex;
    opacity: 1;
}

.ls52-stats-notice-item .ls52-stats-notice-icon {
    flex-shrink: 0;
    color: #f57c00;
    font-size: 14px;
    line-height: 1;
}

.ls52-stats-notice-item .ls52-stats-notice-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #1a5fb4;
}

.ls52-stats-notice-item .ls52-stats-notice-date {
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 11px;
    color: #999;
    font-feature-settings: "tnum";
}

.ls52-stats-notice-item:hover .ls52-stats-notice-text {
    text-decoration: underline;
}

.ls52-stats-bar-right > a {
    color: #1a5fb4;
    text-decoration: none;
    white-space: nowrap;
}

.ls52-stats-bar-right > a:hover {
    text-decoration: underline;
}

/* 独立黄条公告已废弃 */
.ls52-notice {
    display: none !important;
}

/* 旧底部统计卡片样式废弃 */
.ls52-stats:not(.ls52-stats-bar) {
    display: none !important;
}

/* ===== 响应式（列数由 module.js 按 data-cols + 视口写入 --ls52-cols） ===== */
@media (max-width: 900px) {
    .ls52-bbs-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px 10px;
    }

    .ls52-bbs-counts,
    .ls52-bbs-latest {
        grid-column: 2;
    }

    .ls52-bbs-counts {
        text-align: left;
        font-size: 12px;
    }

    .ls52-forum-zone-mods {
        display: none;
    }
}

@media (max-width: 768px) {
    .ls52-home {
        padding: 12px 10px 32px;
    }

    .ls52-post-meta {
        max-width: 42%;
    }

    .ls52-post-meta-item {
        max-width: 72px;
    }

    .ls52-stats-item {
        min-width: 64px;
    }
}
