/* lume.0816y.com_copyright_protected */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: #243241;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
}

body.theme-dark {
    background: #10161d;
    color: #d7e0ea;
}

body.theme-dark .site-header,
body.theme-dark .card,
body.theme-dark .footer,
body.theme-dark .footer-friend-links-row,
body.theme-dark .footer-nav-row,
body.theme-dark .footer-friend-links,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: #151f29;
    color: #d7e0ea;
    border-color: #273646;
}

body.theme-dark .footer-nav-row a {
    color: #5a7a96;
}

body.theme-dark .footer-nav-row a:hover {
    color: #7bc4ff;
}

body.theme-dark .footer-icp {
    color: #5a7a96;
}

body.theme-dark .footer-friend-links,
body.theme-dark .footer-friend-links a {
    color: #5a7a96;
}

body.theme-dark .reply {
    border-bottom-color: #273646;
}

body.theme-dark .reply-avatar img {
    border-color: #273646;
}

body.theme-dark .reply .content {
    color: #d7e0ea;
}

body.theme-dark .reply .post-meta {
    color: #a8b7c6;
}

body.theme-dark .post-nickname {
    color: #7bc4ff;
}

body.theme-dark .post-nickname:hover {
    color: #9dd5ff;
}

body.theme-dark .op-badge {
    background: #1a2d3d;
    color: #6db3d8;
    border-color: #2a4a60;
}

body.theme-dark .floor-label {
    color: #5a7a96;
}

body.theme-dark .post-signature {
    border-top-color: #273646;
    color: #5a7a96;
}

body.theme-dark .quote-block {
    background: #151f29;
    border-color: #273646;
    color: #b8c7d6;
}

body.theme-dark .quote-block-header {
    color: #5a7a96;
    border-bottom-color: #273646;
}

body.theme-dark .floor-reply-quote-block {
    background: #151f29;
    border-color: #273646;
    color: #b8c7d6;
}

body.theme-dark .floor-reply-quote-header {
    color: #5a7a96;
    border-bottom-color: #273646;
}

body.theme-dark .quote-author-link {
    color: #7bc4ff;
}

body.theme-dark .floor-reply-modal {
    background: #1a2a38;
    color: #d7e0ea;
}

body.theme-dark .floor-reply-modal-header {
    border-bottom-color: #273646;
}

body.theme-dark .floor-reply-modal-header h3 {
    color: #f3f7fb;
}

body.theme-dark .floor-reply-toolbar {
    border-bottom-color: #273646;
}

body.theme-dark .floor-reply-toolbar button:hover {
    background: #1f3344;
}

body.theme-dark .floor-reply-toolbar button svg {
    stroke: #5a7a96;
}

body.theme-dark .floor-reply-toolbar button:hover svg {
    stroke: #7bc4ff;
}

body.theme-dark .floor-reply-modal .qf-visual-editor {
    background: #151f29;
    color: #d7e0ea;
    border-color: #273646;
}

body.theme-dark .floor-reply-modal .muted {
    color: #5a7a96;
}

body.theme-dark .floor-reply-upload-btn {
    background: #151f29;
    border-color: #273646;
}

body.theme-dark .floor-reply-upload-btn svg {
    stroke: #5a7a96;
}

body.theme-dark .floor-reply-upload-btn:hover {
    background: #1f3344;
    border-color: #7bc4ff;
}

body.theme-dark .floor-reply-upload-btn:hover svg {
    stroke: #7bc4ff;
}

body.theme-dark .brand,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark .section-title {
    color: #f3f7fb;
}

body.theme-dark a,
body.theme-dark .btn-light {
    color: #7bc4ff;
}

body.theme-dark .btn {
    background: #2e8fd0;
}

body.theme-cool-ocean .btn,
body.theme-cool-ocean .image-badge { background: #146c94; }
body.theme-cool-ocean a,
body.theme-cool-ocean .brand { color: #0f5f82; }
body.theme-cool-ocean { background: #f4fbfd; }

body.theme-cool-mint .btn,
body.theme-cool-mint .image-badge { background: #16876d; }
body.theme-cool-mint a,
body.theme-cool-mint .brand { color: #136f5b; }
body.theme-cool-mint { background: #f5fcf9; }

body.theme-cool-slate .btn,
body.theme-cool-slate .image-badge { background: #4b6478; }
body.theme-cool-slate a,
body.theme-cool-slate .brand { color: #40586c; }
body.theme-cool-slate { background: #f6f8fa; }

body.theme-warm-sand .btn,
body.theme-warm-sand .image-badge { background: #b7793b; }
body.theme-warm-sand a,
body.theme-warm-sand .brand { color: #9a642e; }
body.theme-warm-sand { background: #fffaf3; }

body.theme-warm-rose .btn,
body.theme-warm-rose .image-badge { background: #b45d72; }
body.theme-warm-rose a,
body.theme-warm-rose .brand { color: #9c4d62; }
body.theme-warm-rose { background: #fff7f8; }

body.theme-warm-amber .btn,
body.theme-warm-amber .image-badge { background: #c18417; }
body.theme-warm-amber a,
body.theme-warm-amber .brand { color: #95630e; }
body.theme-warm-amber { background: #fff9ed; }

a {
    color: #2274a5;
    text-decoration: none;
}

a:hover {
    color: #155c85;
}

.wrap {
    width: 1120px;
    max-width: 94%;
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    min-height: 62px;
    padding: 14px 0;
}

.nav::after {
    content: "";
    display: table;
    clear: both;
}

.brand {
    float: left;
    font-size: 26px;
    line-height: 34px;
    font-weight: 800;
    color: #12344d;
}

.nav nav {
    float: right;
    line-height: 34px;
}

.nav nav a {
    margin-left: 18px;
    color: #435466;
}

.signin-form {
    display: inline-block;
    margin: 0 0 0 14px;
}

.signin-form button,
.signin-done {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #cfe0eb;
    border-radius: 999px;
    color: #2274a5;
    background: #f3f9fd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.signin-done {
    color: #7a8793;
    background: #f5f7f9;
    cursor: default;
}

.signin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18, 52, 77, .22);
}

.signin-modal-box {
    width: 520px;
    max-width: 94vw;
    max-height: 82vh;
    overflow: auto;
    padding: 20px;
    border: 1px solid #d8e3ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 52, 77, .2);
}

.signin-modal-box h2 {
    margin: 0 0 8px;
    color: #12344d;
}

.signin-rank-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}

.signin-rank-mini h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #12344d;
}

.signin-rank-mini ol {
    margin: 0;
    padding-left: 18px;
    color: #6f7f8f;
    font-size: 13px;
    line-height: 1.8;
}

.btn-signin-later {
    background: #edf2f7;
    color: #435466;
    border-color: #d8e3ec;
}

.btn-signin-later:hover {
    background: #dfe7f0;
}

body.theme-dark .btn-signin-later {
    background: #243241;
    color: #a8b7c6;
    border-color: #273646;
}

body.theme-dark .btn-signin-later:hover {
    background: #2d3e50;
}

body.theme-dark .signin-modal-box {
    background: #1a2632;
    border-color: #273646;
}

body.theme-dark .signin-modal-box h2 {
    color: #d0d8e0;
}

.signin-modal-box p {
    color: #435466;
}

body.theme-dark .signin-modal-box p {
    color: #a8b7c6;
}

.user-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.user-mini-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.user-mini-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 100px;
    z-index: 200;
    padding: 4px 0;
}

.user-mini-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #243241;
    text-decoration: none;
    white-space: nowrap;
}

.user-mini-dropdown-menu a:hover {
    background: #f0f4f8;
    color: #2274a5;
}

.user-mini-dropdown:hover .user-mini-dropdown-menu,
.user-mini-dropdown-menu.show {
    display: block;
}

body.theme-dark .user-mini-dropdown-menu {
    background: #1a2d3d;
    border-color: #273646;
}

body.theme-dark .user-mini-dropdown-menu a {
    color: #c0ced8;
}

body.theme-dark .user-mini-dropdown-menu a:hover {
    background: #1f3345;
    color: #5ba4cf;
}

.notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-link {
    font-size: 19px;
    line-height: 1;
}

.bell-icon {
    display: inline-block;
    transform-origin: 50% 0;
    animation: qfBellShake .85s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(229, 57, 53, .25));
}

@keyframes qfBellShake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(16deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
}

/* 用户资料页面 */
.user-profile-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.user-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #e5e9ef;
    object-fit: cover;
    display: block;
}

.user-profile-info h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1a2632;
}

.user-profile-meta {
    font-size: 13px;
    color: #7a8b9e;
}

.user-profile-actions {
    margin-left: auto;
}

.user-profile-stats {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid #edf2f7;
    border-radius: 6px;
}

.user-profile-stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid #edf2f7;
    background: #fafbfc;
}

.user-profile-stat:last-child {
    border-right: 0;
}

.user-profile-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #1a2632;
    line-height: 1.3;
}

.user-profile-stat-label {
    font-size: 12px;
    color: #7a8b9e;
    margin-top: 2px;
}

.user-profile-section-title {
    font-size: 15px;
    color: #1a2632;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.user-profile-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-profile-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f2f5f9;
}

.user-profile-label {
    flex: 0 0 80px;
    color: #7a8b9e;
    font-size: 13px;
}

.user-profile-value {
    color: #243241;
    font-size: 14px;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

body.theme-dark .user-profile-header {
    border-bottom-color: #273646;
}

body.theme-dark .user-profile-info h1 {
    color: #f3f7fb;
}

body.theme-dark .user-profile-meta {
    color: #5a7a96;
}

body.theme-dark .user-profile-avatar img {
    border-color: #273646;
}

body.theme-dark .user-profile-row {
    border-bottom-color: #1f3244;
}

body.theme-dark .user-profile-label {
    color: #5a7a96;
}

body.theme-dark .user-profile-value {
    color: #d7e0ea;
}

body.theme-dark .user-profile-stats {
    border-color: #273646;
}

body.theme-dark .user-profile-stat {
    border-right-color: #273646;
    background: #141f29;
}

body.theme-dark .user-profile-stat-num {
    color: #f3f7fb;
}

body.theme-dark .user-profile-stat-label {
    color: #5a7a96;
}

/* 金币规则弹窗遮罩层 */
.coin-rules-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}
.coin-rules-overlay.show {
    display: flex;
}
.coin-rules-popup-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px 24px 20px;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    animation: coinRulesIn 0.2s ease-out;
}
@keyframes coinRulesIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.coin-rules-popup-close {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.coin-rules-popup-close:hover {
    color: #333;
}
.coin-rules-popup-title {
    font-weight: 700;
    font-size: 17px;
    color: #1a2632;
    margin-bottom: 6px;
}
.coin-rules-popup-desc {
    font-size: 13px;
    color: #7a8b9e;
    margin-bottom: 14px;
    line-height: 1.5;
}
.coin-rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #333;
}
.coin-rules-table th {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
    font-weight: 600;
    color: #555;
    background: #f5f7fa;
}
.coin-rules-table th:nth-child(2),
.coin-rules-table th:nth-child(3) {
    text-align: center;
}
.coin-rules-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f3f6;
}
.coin-rules-table td:nth-child(2),
.coin-rules-table td:nth-child(3) {
    text-align: center;
}
.coin-rules-table tr:nth-child(even) td {
    background: #fafbfc;
}
.coin-rules-table .coin-plus {
    color: #2e7d32;
    font-weight: 600;
}
.coin-rules-table .coin-minus {
    color: #c62828;
    font-weight: 600;
}
.coin-rules-trigger {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
body.theme-dark .coin-rules-popup-panel {
    background: #1a2d3d;
    color: #c0ced8;
}
body.theme-dark .coin-rules-popup-title {
    color: #e0e8ef;
}
body.theme-dark .coin-rules-popup-desc {
    color: #7a90a4;
}
body.theme-dark .coin-rules-popup-close {
    color: #6a7f92;
}
body.theme-dark .coin-rules-popup-close:hover {
    color: #c0ced8;
}
body.theme-dark .coin-rules-table th {
    background: #1f3345;
    border-bottom-color: #273646;
    color: #8a9fb0;
}
body.theme-dark .coin-rules-table td {
    border-bottom-color: #1f3345;
    color: #c0ced8;
}
body.theme-dark .coin-rules-table tr:nth-child(even) td {
    background: #1a2d3d;
}
body.theme-dark .coin-rules-table tr:nth-child(odd) td {
    background: #1e3245;
}
@media (max-width: 860px) {
    .coin-rules-overlay {
        padding: 12px;
    }
    .coin-rules-popup-panel {
        padding: 20px 16px 16px;
        max-height: 85vh;
    }
    .coin-rules-table {
        font-size: 12px;
    }
    .coin-rules-table th,
    .coin-rules-table td {
        padding: 7px 6px;
    }
}

body.theme-dark .user-profile-section-title {
    color: #f3f7fb;
    border-bottom-color: #273646;
}

.user-profile-medals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.user-profile-medal-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    transition: transform 0.15s;
}

.user-profile-medal-icon:hover {
    transform: scale(1.3);
}

/* 个人主页全部称号列表 */
.user-medal-all-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.user-medal-all-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #a0aec0;
}
.user-medal-all-row.earned {
    color: #d69e2e;
    font-weight: 600;
    background: #fffbeb;
}
.user-medal-all-name {
    flex: 1;
}
.user-medal-all-hours {
    color: #cbd5e0;
    font-size: 12px;
}
.user-medal-all-row.earned .user-medal-all-hours {
    color: #b7791f;
}
.user-medal-all-check {
    color: #48bb78;
    font-size: 12px;
    font-weight: 600;
}
body.theme-dark .user-medal-all-row {
    color: #718096;
}
body.theme-dark .user-medal-all-row.earned {
    color: #f6ad55;
    background: #3d3520;
}
body.theme-dark .user-medal-all-hours {
    color: #4a5568;
}
body.theme-dark .user-medal-all-row.earned .user-medal-all-hours {
    color: #d69e2e;
}

/* 个人资料页勋章称号预览 */
.medal-preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.medal-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #718096;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}
.medal-preview-badge.earned {
    color: #b7791f;
    background: #fffbeb;
    border-color: #f6e05e;
    font-weight: 600;
}
.medal-preview-badge-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.medal-preview-badge-status {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
    margin-left: 2px;
}
body.theme-dark .medal-preview-badge {
    color: #a0aec0;
    background: #2d3748;
    border-color: #4a5568;
}
body.theme-dark .medal-preview-badge.earned {
    color: #f6ad55;
    background: #3d3520;
    border-color: #744210;
}
body.theme-dark .medal-preview-badge-status {
    color: #718096;
}

@media (max-width: 860px) {
    .user-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-profile-avatar img {
        width: 64px;
        height: 64px;
    }

    .user-profile-info h1 {
        font-size: 18px;
    }

    .user-profile-meta {
        font-size: 12px;
    }

    .user-profile-actions {
        margin-left: 0;
        width: 100%;
    }

    .user-profile-actions .profile-avatar-upload-inline {
        width: 100%;
    }

    .user-profile-actions .profile-avatar-upload-inline input[type="file"] {
        max-width: 100%;
        width: 100%;
    }

    .user-profile-label {
        flex: 0 0 64px;
    }

    .user-profile-stat-num {
        font-size: 17px;
    }

    .user-profile-stats {
        border-radius: 4px;
        flex-wrap: wrap;
    }

    .user-profile-stat {
        flex: 1 1 80px;
        min-width: 60px;
    }

    .user-profile-details {
        gap: 8px;
    }

    .user-profile-row {
        flex-direction: column;
        gap: 2px;
    }

    .user-profile-label {
        flex: none;
        font-size: 12px;
        color: #a0aec0;
    }

    /* 手机版勋章称号预览一行显示两个 */
    .medal-preview-badges {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px;
    }
    .medal-preview-badge {
        flex: 0 0 calc(50% - 4px);
        box-sizing: border-box;
        padding: 6px 8px;
        border-radius: 16px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .medal-preview-badge-icon {
        width: 18px;
        height: 18px;
    }
    .medal-preview-badge-name {
        font-size: 12px;
    }

    /* 手机版资料页 tab 导航：一排 4 个，间距相等，文字不换行 */
    .user-tab-nav {
        flex-wrap: nowrap;
        border-bottom: none;
    }
    .user-tab-nav a {
        flex: 1 1 0;
        max-width: none;
        box-sizing: border-box;
        white-space: nowrap;
        padding: 8px 2px;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        border-bottom: 2px solid transparent;
        margin-bottom: 0;
    }
    .user-tab-nav a.mobile-hide-tab {
        display: none;
    }
    .user-tab-nav a.active {
        border-bottom-color: #2274a5;
    }
}

/* 用户资料页 tab 导航 */
.user-tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #edf2f7;
}

.user-tab-nav a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    color: #5a7a96;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.user-tab-nav a:hover {
    color: #2274a5;
}

.user-tab-nav a.active {
    color: #2274a5;
    border-bottom-color: #2274a5;
    font-weight: 600;
}

/* 用户帖子列表 */
.user-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f2f5f9;
}

.user-post-list li:last-child {
    border-bottom: 0;
}

.user-post-title {
    font-size: 15px;
    color: #2274a5;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.user-post-title:hover {
    text-decoration: underline;
}

.user-post-reply-to {
    font-size: 13px;
    color: #7a8b9e;
    margin-bottom: 6px;
}

.user-post-reply-to a {
    color: #2274a5;
    text-decoration: none;
}

.user-post-reply-to a:hover {
    text-decoration: underline;
}

.user-post-content {
    font-size: 14px;
    color: #243241;
    line-height: 1.6;
    margin-bottom: 4px;
    word-break: break-word;
}

.user-post-meta {
    font-size: 12px;
    color: #9aa8b5;
    display: flex;
    gap: 12px;
}

/* 用户帖子分页 */
.user-pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.user-pagination a,
.user-pagination .user-page-current {
    display: inline-block;
    min-width: 32px;
    padding: 4px 10px;
    text-align: center;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #d8e3ec;
    text-decoration: none;
    color: #435466;
}

.user-pagination a:hover {
    background: #edf2f7;
}

.user-pagination .user-page-current {
    background: #2274a5;
    color: #fff;
    border-color: #2274a5;
}

/* 统计卡片作为链接 */
a.user-profile-stat {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.15s;
}

a.user-profile-stat:hover {
    background: #eef3f8;
}

a.user-profile-value {
    color: #2274a5;
    text-decoration: none;
}

a.user-profile-value:hover {
    text-decoration: underline;
}

/* 暗色主题 */
body.theme-dark .user-tab-nav {
    border-bottom-color: #273646;
}

body.theme-dark .user-tab-nav a {
    color: #5a7a96;
}

body.theme-dark .user-tab-nav a:hover,
body.theme-dark .user-tab-nav a.active {
    color: #7bc4ff;
}

body.theme-dark .user-tab-nav a.active {
    border-bottom-color: #7bc4ff;
}

body.theme-dark .user-post-list li {
    border-bottom-color: #1f3244;
}

body.theme-dark .user-post-title {
    color: #7bc4ff;
}

body.theme-dark .user-post-reply-to {
    color: #5a7a96;
}

body.theme-dark .user-post-reply-to a {
    color: #7bc4ff;
}

body.theme-dark .user-post-content {
    color: #d7e0ea;
}

body.theme-dark .user-post-meta {
    color: #5a7a96;
}

body.theme-dark .user-pagination a {
    border-color: #273646;
    color: #a8b7c6;
}

body.theme-dark .user-pagination a:hover {
    background: #1a2d3d;
}

body.theme-dark .user-pagination .user-page-current {
    background: #2274a5;
    color: #fff;
    border-color: #2274a5;
}

body.theme-dark a.user-profile-stat:hover {
    background: #1a2d3d;
}

body.theme-dark a.user-profile-value {
    color: #7bc4ff;
}

.reply-avatar a {
    display: block;
    line-height: 0;
}

.reply-avatar a:hover img {
    border-color: #b0c4d8;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d8e3ec;
    vertical-align: middle;
}

.card {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #e5edf3;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(42, 80, 110, .06);
    padding: 20px;
    margin-top: 16px;
}

.hero,
.page-head {
    overflow: hidden;
}

.hero h1,
.page-head h1,
.post-title-card h1 {
    margin: 0 0 8px;
    color: #12344d;
}

/* 帖子页：标题、正文、回复使用三个同级独立框 */
.post-title-card .post-meta {
    margin-bottom: 10px;
}

.post-title-card h1 {
    margin: 0;
    line-height: 1.5;
    font-size: 22px;
}

.post-content-card {
    min-height: 260px;
}

.post-content-box {
    padding: 0;
}

.content-page-nav {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.content-page-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin-right: 6px;
    border: 1px solid #d8e6ef;
    border-radius: 8px;
    background: #fff;
    color: #435466;
}

.content-page-nav a.active {
    color: #fff;
    border-color: #2274a5;
    background: #2274a5;
}

/* 板块页“返回首页”小字链接 */
.page-head h1 .back-home {
    margin-left: 10px;
    font-size: 13px;
    font-weight: normal;
    color: #2274a5;
    vertical-align: middle;
}

.page-head h1 .back-home:hover {
    color: #155c85;
    text-decoration: underline;
}

/* 首页“最新帖子”行内手机端发帖按钮：桌面端隐藏 */
.mobile-post-btn {
    display: none !important;
}

/* 首页列表作者信息行里的手机版浏览/回复统计：桌面端隐藏 */
.meta-metrics {
    display: none;
}

.hero p,
.page-head p,
.muted {
    color: #6f7f8f;
}

.hero .btn,
.page-head .btn {
    float: right;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #2274a5;
    color: #fff !important;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #155c85;
}

.btn-light {
    background: #eef5fb;
    color: #2274a5 !important;
    margin-left: 8px;
}

.btn-light:hover {
    background: #dfeef8;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

.grid {
    overflow: hidden;
}

.grid > section {
    float: left;
    width: 760px;
    max-width: 100%;
}

.grid > aside {
    float: right;
    width: 330px;
}

.section-title {
    font-size: 18px;
    margin: 22px 0 10px;
    color: #12344d;
}

.latest-title-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-title-filter {
    position: relative;
    display: inline-block;
}

.latest-title-filter .section-title {
    margin-right: auto;
}

.latest-title-trigger {
    cursor: pointer;
}

.latest-title-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 30;
    min-width: 128px;
    padding: 8px;
    border: 1px solid #e5edf3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 52, 77, .14);
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.latest-title-dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: #435466;
    font-size: 14px;
}

.latest-title-dropdown a:hover {
    color: #2274a5;
    background: #f1f7fb;
}

.latest-title-filter:hover .latest-title-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.image-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
    background: #2f8ec4;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.hot-badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

/* 表情面板 */
.emoji-picker {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d8e3ec;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px;
    width: 320px;
    display: none;
}

.emoji-picker.show {
    display: block;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}

.emoji-picker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    transition: background 0.12s;
    line-height: 1;
}

.emoji-picker-item:hover {
    background: #edf2f7;
}

.emoji-picker-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.emoji-picker-tab {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #7a8b9e;
    user-select: none;
    transition: all 0.12s;
}

.emoji-picker-tab:hover {
    background: #f2f5f9;
    color: #435466;
}

.emoji-picker-tab.active {
    background: #e8f3ff;
    color: #2274a5;
    font-weight: 600;
}

.emoji-picker-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
}

.emoji-pager-info {
    font-size: 12px;
    color: #7a8b9e;
    min-width: 36px;
    text-align: center;
}

.emoji-pager-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d8e3ec;
    background: #fff;
    color: #5a7a96;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.emoji-pager-btn:hover:not(:disabled) {
    background: #f2f5f9;
    color: #2274a5;
    border-color: #2274a5;
}

.emoji-pager-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

body.theme-dark .emoji-picker {
    background: #1a2632;
    border-color: #273646;
}

body.theme-dark .emoji-picker-tabs {
    border-bottom-color: #273646;
}

body.theme-dark .emoji-picker-tab {
    color: #5a7a96;
}

body.theme-dark .emoji-picker-tab:hover {
    background: #243241;
    color: #a8b7c6;
}

body.theme-dark .emoji-picker-tab.active {
    background: #1a2d3d;
    color: #7bc4ff;
}

body.theme-dark .emoji-picker-item:hover {
    background: #243241;
}

body.theme-dark .emoji-picker-pager {
    border-top-color: #273646;
}

body.theme-dark .emoji-pager-info {
    color: #5a7a96;
}

body.theme-dark .emoji-pager-btn {
    background: #1a2632;
    border-color: #273646;
    color: #5a7a96;
}

body.theme-dark .emoji-pager-btn:hover:not(:disabled) {
    background: #243241;
    color: #7bc4ff;
    border-color: #7bc4ff;
}

/* 滚动到顶部/底部按钮 */
.scroll-btns {
    position: fixed;
    right: 16px;
    bottom: 120px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.scroll-btns.show {
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2274a5;
    background: #2274a5;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 116, 165, 0.25);
    transition: all 0.15s;
}

.scroll-btn:hover {
    background: #1b5f8a;
    color: #fff;
    border-color: #1b5f8a;
    box-shadow: 0 4px 14px rgba(34, 116, 165, 0.35);
}

body.theme-dark .scroll-btn {
    background: #2274a5;
    border-color: #2274a5;
    color: #fff;
}

body.theme-dark .scroll-btn:hover {
    background: #1b5f8a;
    border-color: #1b5f8a;
    color: #fff;
}
@media (max-width: 640px) {
    .scroll-btns {
        bottom: 200px;
    }
}

.forum-card {
    display: block;
    overflow: hidden;
    color: inherit;
    min-height: 86px;
}

.forum-card > div:first-child {
    float: left;
    width: 70%;
}

.forum-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.forum-card p {
    margin: 0;
    color: #6f7f8f;
}

.stats {
    float: right;
    width: 25%;
    text-align: right;
    color: #6f7f8f;
}

.stats strong {
    display: block;
    margin-left: 0;
    color: #12344d;
    font-size: 18px;
}

.side-forum-card {
    min-height: 0;
    padding: 16px;
}

.side-forum-card > div:first-child,
.side-forum-card .stats {
    float: none;
    width: 100%;
    text-align: left;
}

.side-forum-card .stats {
    margin-top: 10px;
}

.side-forum-card .stats strong {
    display: inline-block;
    margin-right: 4px;
}

.ad-box {
    margin: 14px 0;
    text-align: center;
    overflow: hidden;
}

.ad-box img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.ad-top {
    margin-top: 16px;
}

.ad-sidebar {
    margin: 0 0 12px;
}

.ad-footer {
    margin: 24px 0 0;
}

.ad-preview {
    margin: 10px 0 16px;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fafcff;
}

.ad-preview img {
    max-width: 100%;
    height: auto;
}

.inline-check {
    width: auto;
    margin-right: 6px;
}

/* 后台开关组件 */
.toggle-switch-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 4px;
}
.toggle-switch-input {
    display: none;
}
.toggle-switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #cbd5e0;
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch-input:checked + .toggle-switch-slider {
    background: #2274a5;
}
.toggle-switch-input:checked + .toggle-switch-slider::after {
    transform: translateX(20px);
}
.toggle-switch-text {
    font-size: 13px;
    color: #4a5568;
}
body.theme-dark .toggle-switch-slider {
    background: #3d4f60;
}
body.theme-dark .toggle-switch-input:checked + .toggle-switch-slider {
    background: #2274a5;
}
body.theme-dark .toggle-switch-text {
    color: #a0b0c0;
}

.latest-list .list-row a {
    font-size: 16px;
}

.list-row {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row a {
    font-weight: bold;
    color: #243241;
}

.list-row p {
    margin: 5px 0 0;
    color: #7a8793;
    font-size: 12px;
}

.list-main {
    float: left;
    width: 78%;
}

.list-metrics {
    float: right;
    width: 20%;
    text-align: right;
    color: #b8c0c8;
    font-size: 13px;
    padding-top: 9px;
    white-space: nowrap;
}

.list-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
    line-height: 1;
}

.metric svg {
    width: 16px;
    height: 16px;
    stroke: #c3cad1;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-view svg circle {
    fill: none;
}

.thread-list {
    padding: 0;
}

.filter-tabs {
    margin-top: 14px;
    border-bottom: 1px solid #edf2f7;
}

.filter-tabs a {
    display: inline-block;
    padding: 10px 16px;
    margin-right: 4px;
    color: #6f7f8f;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.filter-tabs a.active {
    color: #2274a5;
    background: #fff;
    border-color: #edf2f7;
    font-weight: 700;
}

.category-tabs {
    margin-top: 8px;
}

.thread-row {
    overflow: hidden;
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
}

.thread-row:last-child {
    border-bottom: 0;
}

.thread-main {
    float: left;
    width: 75%;
}

.thread-title {
    font-size: 16px;
    font-weight: 700;
    color: #243241;
}

.thread-main p {
    margin: 6px 0 0;
    color: #7a8793;
}

.thread-count {
    float: right;
    width: 20%;
    text-align: right;
    color: #7a8793;
    line-height: 1.7;
}

.tag {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.tag.red {
    background: #fff1f0;
    color: #c0392b;
}

.tag.blue {
    background: #e8f3ff;
    color: #1f6fa8;
}

.tag.green {
    background: #e6f9ee;
    color: #1a8a4c;
}

.category-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #6b4b00;
    background: #fff4d6;
    font-size: 12px;
    font-weight: 700;
}
.reward-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #22543d;
    background: #c6f6d5;
    font-size: 12px;
    font-weight: 700;
}

/* VIP 楼层尊享标识 — 霸气豪华版 */
.vip-floor-content {
    position: relative;
}
.vip-floor-watermark {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 72px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 40%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    transform: rotate(-12deg) scaleY(1.1);
    z-index: 0;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.15));
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    font-family: 'Arial Black', 'Impact', sans-serif;
}
body.theme-dark .vip-floor-watermark {
    opacity: 0.12;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

.forum-table th,
.forum-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: middle;
    word-break: break-all;
}

.forum-table th {
    color: #6f7f8f;
    font-size: 12px;
    font-weight: 700;
}

.forum-table input[type="text"],
.forum-table input[type="number"] {
    margin: 0;
    padding: 7px 8px;
    font-size: 13px;
}

.forum-name-col {
    width: 118px;
}

.forum-desc-col {
    width: 155px;
}

.forum-category-col {
    width: 255px;
}

.forum-limit-col {
    width: 250px;
}

.forum-order-col {
    width: 60px;
}

.forum-del-col {
    width: 64px;
    text-align: center;
}

.forum-table .forum-order-input {
    width: 48px;
    max-width: 48px;
    padding-left: 6px;
    padding-right: 4px;
    text-align: center;
}

.forum-table .category-cell,
.forum-table .limit-cell {
    width: auto;
}

.forum-admin-table .forum-category-cell input[type="text"] {
    width: 145px;
    min-width: 0;
}

.forum-admin-table .forum-limit-cell input[type="text"] {
    width: 140px;
    min-width: 0;
}

.forum-admin-table .category-inline {
    margin-right: 6px;
    font-size: 12px;
}

.forum-admin-table td:last-child label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
}

.forum-appearance-row td {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.forum-appearance-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-icon-preview-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-icon-preview {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
}

.forum-appearance-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-appearance-inputs input[type="text"] {
    width: 110px;
}

.forum-appearance-inputs input[type="number"] {
    width: 80px;
}

.forum-appearance-grid {
    margin-top: 14px;
}

.add-forum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    gap: 14px;
    align-items: end;
}

.font-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.font-size-grid label {
    margin: 0 0 4px;
    font-size: 13px;
}

.font-size-grid input {
    width: 70px;
    display: inline-block;
    margin-right: 4px;
}

.category-cell {
    white-space: nowrap;
}

.limit-cell {
    white-space: nowrap;
}

.category-inline {
    display: inline-block;
    margin-right: 8px;
    white-space: nowrap;
}

.category-cell input[type="text"] {
    display: inline-block;
    width: calc(100% - 72px);
    min-width: 150px;
}

.limit-cell input[type="text"] {
    display: inline-block;
    width: calc(100% - 72px);
    min-width: 120px;
}

.ban-form {
    margin-bottom: 18px;
}

.admin-page-title {
    margin-bottom: 6px;
}

.admin-page-title h1 {
    margin: 0;
}

.admin-back-row {
    margin: 4px 0 14px;
}

.admin-stack .card {
    margin-bottom: 14px;
}

.admin-card-compact {
    padding: 16px 20px !important;
}

.admin-card-compact h2 {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.admin-card-compact h3 {
    font-size: 14px;
    margin: 14px 0 6px 0;
}

.admin-card-compact label {
    margin-bottom: 2px;
}

.admin-card-compact .muted {
    margin: 2px 0 8px 0;
    font-size: 12px;
}

.admin-card-compact .btn {
    margin-top: 6px;
}

.opt-diag {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.8;
}
.opt-diag strong { color: #7d6608; }

.admin-top-nav {
    padding: 12px 20px !important;
    margin-bottom: 14px;
}

.admin-top-nav h1 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.admin-top-nav p {
    margin: 0;
}

.admin-top-nav .btn {
    margin: 2px 4px 2px 0;
}

.user-search {
    margin: 12px 0;
}

.admin-search-inline {
    margin: 8px 0 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-search-inline input {
    flex: 1;
    max-width: 260px;
    margin: 0;
}

.user-table {
    table-layout: auto;
}

.user-table th:nth-child(1),
.user-table td:nth-child(1) {
    width: 44px;
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
    width: 100px;
}

.user-table th:nth-child(3),
.user-table td:nth-child(3) {
    width: 100px;
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 100px;
}

.user-table th:nth-child(5),
.user-table td:nth-child(5) {
    width: 60px;
}

.user-table th:nth-child(6),
.user-table td:nth-child(6) {
    width: 90px;
}

.user-table th:nth-child(7),
.user-table td:nth-child(7) {
    white-space: nowrap;
}

.user-table td.user-admin-role {
    white-space: nowrap;
}

.user-actions {
    white-space: nowrap;
}

.user-actions .user-act-inline {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    margin-right: 4px;
    vertical-align: middle;
}

.user-actions .user-act-inline input[type="number"] {
    width: 48px;
    padding: 5px 4px;
    margin: 0;
    font-size: 13px;
}

.user-actions .user-act-inline input[type="password"] {
    width: 80px;
    padding: 5px 6px;
    margin: 0;
    font-size: 13px;
}

.user-actions .btn-small {
    padding: 5px 8px;
    font-size: 13px;
}

.user-actions .user-act-toggle {
    margin-right: 4px;
}

.user-mod-row td {
    padding: 8px 12px !important;
    background: #f7f9fb;
    border-bottom: 1px solid #e8edf2;
}

body.theme-dark .user-mod-row td {
    background: #1d2a35;
    border-color: #273646;
}

.user-mod-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.user-mod-form select {
    margin: 0;
    max-width: 160px;
    padding: 6px 8px;
}

.user-mod-form label {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.user-mod-form input[type="number"] {
    margin: 0;
    padding: 6px 8px;
}

.user-mod-form .btn {
    margin: 0;
}

/* ---- 改币展开行 ---- */
.user-coin-row td {
    padding: 8px 12px !important;
    background: #f7f9fb;
    border-bottom: 1px solid #e8edf2;
}

body.theme-dark .user-coin-row td {
    background: #1d2a35;
    border-color: #273646;
}

.user-coin-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.user-coin-form input[type="number"] {
    margin: 0;
    padding: 6px 8px;
    width: 100px;
}

.user-coin-form input[type="text"] {
    margin: 0;
    padding: 6px 8px;
    width: 120px;
}

.user-coin-form .btn {
    margin: 0;
}

.user-actions-col {
    white-space: nowrap;
}

.moderator-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #7a4b00;
    background: #fff0c2;
    border: 1px solid #f2d27a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

/* ---- 用户资料页 ---- */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.user-profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-info h1 {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.user-profile-meta {
    font-size: 13px;
    color: #6f7f8f;
}

.user-profile-actions {
    margin-left: auto;
}

.user-profile-stats {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid #e8edf2;
    border-radius: 8px;
}

.user-profile-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid #e8edf2;
    transition: background 0.15s;
}

.user-profile-stat:last-child {
    border-right: none;
}

.user-profile-stat:hover {
    background: #f4f7fa;
}

.user-profile-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #12344d;
}

.user-profile-stat-label {
    font-size: 12px;
    color: #6f7f8f;
    margin-top: 2px;
}

.user-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8edf2;
    margin-bottom: 16px;
}

.user-tab-nav a {
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    color: #6f7f8f;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.user-tab-nav a:hover {
    color: #12344d;
}

.user-tab-nav a.active {
    color: #2274a5;
    border-bottom-color: #2274a5;
    font-weight: 600;
}

.user-profile-section-title {
    font-size: 15px;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8edf2;
}

.user-profile-details {
    font-size: 14px;
}

.user-profile-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f4f7fa;
}

.user-profile-label {
    width: 90px;
    color: #6f7f8f;
    flex-shrink: 0;
}

.user-profile-value {
    color: #12344d;
    flex: 1;
    min-width: 0;
}

.user-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f4f7fa;
}

.user-post-list li:last-child {
    border-bottom: none;
}

.user-post-title {
    font-size: 15px;
    font-weight: 600;
    color: #12344d;
    text-decoration: none;
}

.user-post-title:hover {
    color: #2274a5;
}

.user-post-reply-to {
    font-size: 13px;
    color: #6f7f8f;
    margin-bottom: 4px;
}

.user-post-reply-to a {
    color: #2274a5;
    text-decoration: none;
}

.user-post-content {
    font-size: 14px;
    color: #435466;
    line-height: 1.6;
    margin-bottom: 4px;
}

.user-post-content h1,
.user-post-content h2,
.user-post-content h3,
.qf-visual-editor h1,
.qf-visual-editor h2,
.qf-visual-editor h3 {
    margin: 12px 0 8px;
    line-height: 1.3;
    font-weight: 600;
}
.user-post-content h1,
.qf-visual-editor h1 { font-size: 22px; }
.user-post-content h2,
.qf-visual-editor h2 { font-size: 19px; }
.user-post-content h3,
.qf-visual-editor h3 { font-size: 16px; }

.user-post-meta {
    font-size: 12px;
    color: #8a9ba8;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.user-pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.user-pagination a,
.user-pagination .user-page-current {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #d8e3ec;
    color: #435466;
}

.user-pagination a:hover {
    background: #e8f3ff;
    color: #2274a5;
}

.user-pagination .user-page-current {
    background: #2274a5;
    color: #fff;
    border-color: #2274a5;
}

.user-follow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-follow-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f4f7fa;
}

.user-follow-list li:last-child {
    border-bottom: none;
}

.user-follow-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-follow-name {
    font-size: 15px;
    font-weight: 600;
    color: #12344d;
    text-decoration: none;
}

.user-follow-name:hover {
    color: #2274a5;
}

.user-follow-sig {
    font-size: 12px;
    color: #8a9ba8;
    margin-top: 2px;
}

/* ---- 暗色主题 ---- */
body.theme-dark .user-profile-meta { color: #a8b7c6; }
body.theme-dark .user-profile-stats { border-color: #273646; }
body.theme-dark .user-profile-stat { border-color: #273646; }
body.theme-dark .user-profile-stat:hover { background: #1d2a35; }
body.theme-dark .user-profile-stat-num { color: #d0d8e0; }
body.theme-dark .user-profile-stat-label { color: #8899ab; }
body.theme-dark .user-tab-nav { border-color: #273646; }
body.theme-dark .user-tab-nav a { color: #a8b7c6; }
body.theme-dark .user-tab-nav a:hover { color: #d0d8e0; }
body.theme-dark .user-tab-nav a.active { color: #7bc4ff; border-color: #7bc4ff; }
body.theme-dark .user-profile-section-title { border-color: #273646; }
body.theme-dark .user-profile-label { color: #8899ab; }
body.theme-dark .user-profile-value { color: #d0d8e0; }
body.theme-dark .user-profile-row { border-color: #1d2a35; }
body.theme-dark .user-post-list li { border-color: #1d2a35; }
body.theme-dark .user-post-title { color: #d0d8e0; }
body.theme-dark .user-post-title:hover { color: #7bc4ff; }
body.theme-dark .user-post-reply-to { color: #a8b7c6; }
body.theme-dark .user-post-content { color: #a8b7c6; }
body.theme-dark .user-post-meta { color: #8899ab; }
body.theme-dark .user-pagination a { color: #a8b7c6; border-color: #273646; }
body.theme-dark .user-pagination a:hover { background: #243241; color: #7bc4ff; }
body.theme-dark .user-follow-list li { border-color: #1d2a35; }
body.theme-dark .user-follow-name { color: #d0d8e0; }
body.theme-dark .user-follow-name:hover { color: #7bc4ff; }
body.theme-dark .user-follow-sig { color: #8899ab; }

.top-badge {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #fff;
    background: #e74c3c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
}

.pin-post-link {
    margin-left: 8px;
    font-size: 12px;
    color: #2274a5;
    text-decoration: none;
    vertical-align: middle;
}

.pin-post-link:hover {
    text-decoration: underline;
    color: #155a8a;
}

.btn-danger {
    background: #d93025;
}

.btn-danger:hover {
    background: #b42318;
}

.danger-link {
    color: #d93025;
    font-weight: 700;
}

.post-meta {
    color: #7a8793;
    font-size: 13px;
    margin-bottom: 10px;
}

.admin-tools {
    float: right;
}

.admin-tools a {
    margin-left: 8px;
}

.move-thread-form {
    display: inline-block;
    margin-left: 8px;
}

.move-thread-form select {
    width: 96px;
    padding: 2px 4px;
    margin: 0 3px 0 0;
    font-size: 12px;
}

.move-thread-form button {
    padding: 0;
    border: 0;
    background: none;
    color: #2274a5;
    cursor: pointer;
    font-size: 12px;
}

.content {
    line-height: 1.9;
    font-size: 15px;
    word-break: break-word;
}

.content-link {
    color: #1f78b4;
    border-bottom: 1px dashed rgba(31, 120, 180, .45);
    font-weight: 600;
}

.content-link:hover {
    color: #155c85;
    border-bottom-style: solid;
}

.remote-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 8px;
}

.content img,
.attachment-img,
.remote-img {
    transition: none;
}

.content img:hover,
.attachment-img:hover,
.remote-img:hover {
    position: static;
    z-index: auto;
    max-width: 100%;
    height: auto;
    transform: none;
    box-shadow: none;
}

.attachment-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    overflow: hidden;
}

.reply-attachments {
    margin-top: 10px;
    padding-top: 10px;
}

.attachment-list h3 {
    margin: 0 0 12px;
    color: #12344d;
}

.attachment-img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 0 12px 12px 0;
    border-radius: 8px;
    border: 1px solid #e5edf3;
    vertical-align: top;
}

.reply-attachments .attachment-img {
    display: inline-block;
    max-width: 100%;
    max-height: 220px;
}

.attachment-file {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e5edf3;
    border-radius: 8px;
    background: #fafcff;
}

.attachment-inline-card {
    display: block;
    max-width: 560px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #d7e7f2;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fcff, #f1f8fd);
    color: #34566f;
}

.attachment-inline-link {
    display: block;
    color: inherit;
}

.attachment-inline-card strong,
.attachment-inline-card span {
    display: block;
}

.attachment-inline-card strong {
    color: #12344d;
    font-size: 15px;
}

.attachment-inline-card span {
    margin-top: 4px;
    color: #6f7f8f;
    font-size: 12px;
}

.attachment-delete-form {
    display: inline-block;
    margin: 6px 0 10px;
}

.attachment-inline-card .attachment-delete-form {
    display: block;
    margin: 8px 0 0;
}

.attachment-delete-btn {
    border: 0;
    border-radius: 999px;
    background: #d64b4b;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
}

.attachment-delete-btn:hover {
    background: #b93636;
}

.reply {
    display: flex;
    gap: 14px;
    padding: 17px 0 6px 0;
    border-bottom: 1px solid #edf2f7;
}

.reply:last-child {
    border-bottom: 0;
}

/* 通知跳转高亮：目标楼层短暂高亮 2 秒 */
.reply:target {
    animation: reply-highlight 2s ease-out;
}
@keyframes reply-highlight {
    0%   { background: #fef3c7; }
    100% { background: transparent; }
}

.reply-avatar {
    flex: 0 0 44px;
}

.reply-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e9ef;
    object-fit: cover;
    display: block;
}

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

.reply .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #7a8b9e;
    flex-wrap: wrap;
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.post-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.post-nickname {
    color: #2274a5;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.post-nickname:hover {
    text-decoration: underline;
    color: #1a5a82;
}

.op-badge {
    display: inline-block;
    background: #e8f3ff;
    color: #1f6fa8;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #c5ddf5;
    white-space: nowrap;
    line-height: 1.5;
}

.floor-label {
    color: #9aa8b5;
    font-size: 12px;
    white-space: nowrap;
}

.floor-label .floor-icon {
    margin-left: 2px;
}

.user-title-badge {
    display: inline-block;
    color: #d69e2e;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
}

body.theme-dark .user-title-badge {
    color: #f6ad55;
}

/* 勋章称号 hover 下拉提示 */
.medal-badge-wrap {
    position: relative;
    cursor: pointer;
}
.medal-tooltip-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 9999;
    min-width: 220px;
    white-space: nowrap;
}
.medal-badge-wrap:hover .medal-tooltip-dropdown {
    display: block;
}
.medal-tooltip-row {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    color: #718096;
    gap: 8px;
}
.medal-tooltip-row.earned {
    color: #d69e2e;
    font-weight: 600;
    background: #fffbeb;
}
.medal-tooltip-name {
    flex: 1;
}
.medal-tooltip-hours {
    color: #a0aec0;
    font-size: 11px;
}
.medal-tooltip-row.earned .medal-tooltip-hours {
    color: #b7791f;
}
.medal-tooltip-check {
    color: #48bb78;
    font-weight: bold;
    font-size: 11px;
}
body.theme-dark .medal-tooltip-dropdown {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
body.theme-dark .medal-tooltip-row {
    color: #a0aec0;
}
body.theme-dark .medal-tooltip-row.earned {
    color: #f6ad55;
    background: #3d3520;
}
body.theme-dark .medal-tooltip-hours {
    color: #718096;
}
body.theme-dark .medal-tooltip-row.earned .medal-tooltip-hours {
    color: #d69e2e;
}

.reply .content {
    margin-top: 0;
    padding: 15px 0;
    font-size: 15px;
}

/* 引用块 */
/* 引用块 - 圆角灰色边框风格 */
.quote-block {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #f5f7fa;
    border: 1px solid #e5e9ef;
    border-radius: 6px;
    font-size: 14px;
    color: #435466;
}

.quote-block-header {
    font-size: 12px;
    color: #7a8b9e;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e9ef;
}

.quote-block-body {
    line-height: 1.6;
    word-break: break-word;
}

/* 嵌套引用折叠 */
.quote-collapsed {
    max-height: 60px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
.quote-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, #f5f7fa);
    pointer-events: none;
}
.quote-expand-btn {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    font-weight: 600;
}
.quote-expand-btn:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* 楼中楼折叠 - 多条引用时只保留最近一条 */
.reply-quote-wrapper {
    position: relative;
}
.reply-quote-wrapper .quote-block {
    margin-bottom: 6px;
}
.reply-quote-collapsed {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}
.reply-quote-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
body.theme-dark .reply-quote-collapsed::after {
    background: linear-gradient(transparent, #10161d);
}
.reply-quote-toggle {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 2px;
    font-weight: 600;
}
.reply-quote-toggle:hover {
    text-decoration: underline;
}

/* 弹窗中的引用块 */
.floor-reply-quote-block {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #f5f7fa;
    border: 1px solid #e5e9ef;
    border-radius: 6px;
    font-size: 13px;
    color: #435466;
}

.floor-reply-quote-header {
    font-size: 12px;
    color: #7a8b9e;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e9ef;
}

.quote-author-link {
    color: #2274a5;
    text-decoration: none;
    font-weight: 600;
}

.quote-author-link:hover {
    text-decoration: underline;
}

.mention-link {
    color: #2274a5;
    text-decoration: none;
    font-weight: 600;
}

.mention-link:hover {
    text-decoration: underline;
}

body.theme-dark .mention-link {
    color: #7bc4ff;
}

.floor-reply-quote-content {
    line-height: 1.6;
    word-break: break-word;
}

/* 签名 */
.post-signature {
    margin-top: 4px;
    padding: 3px 0;
    border-top: 1px dashed #d8e0e8;
    color: #a8b7c4;
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
}

/* 楼中楼回复弹窗 */
.floor-reply-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    padding: 20px;
}

.floor-reply-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.floor-reply-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}

.floor-reply-modal-header h3 {
    font-size: 18px;
    color: #1a2632;
    margin: 0;
}

.floor-reply-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9aa8b5;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.floor-reply-modal-close:hover {
    color: #435466;
}

.floor-reply-toolbar {
    display: flex;
    gap: 2px;
    padding: 6px 0;
    border-bottom: 1px solid #edf1f5;
    margin-bottom: 0;
}

.floor-reply-toolbar button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.floor-reply-toolbar button:hover {
    background: #eef5fb;
}

.floor-reply-toolbar button svg {
    fill: none;
    stroke: #5a728a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floor-reply-toolbar button:hover svg {
    stroke: #2274a5;
}

.floor-reply-modal .qf-visual-editor {
    min-height: 120px;
    max-height: 300px;
    margin-top: 6px;
}

.floor-reply-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.floor-reply-upload-btn:hover {
    border-color: #2274a5;
    background: #eef5fb;
}

.floor-reply-upload-btn svg {
    fill: none;
    stroke: #5a728a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.floor-reply-upload-btn:hover svg {
    stroke: #2274a5;
}

.floor-reply-upload-btn input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.floor-reply-modal .upload-status {
    margin: 4px 0 0;
    font-size: 12px;
    color: #2274a5;
}

.floor-reply-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.floor-reply-modal-actions-right {
    display: flex;
    gap: 10px;
}

.floor-reply-modal-actions .btn {
    padding: 8px 24px;
    font-size: 14px;
}

.floor-reply-modal .muted {
    margin: 6px 0 0;
    font-size: 12px;
}

/* 可视化编辑器 */
.qf-editor-wrap {
    margin-top: 6px;
}
.qf-visual-editor {
    min-height: 140px;
    max-height: 500px;
    padding: 12px 14px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    font-family: inherit;
    color: #1a2632;
    background: #fff;
    outline: none;
    overflow-y: auto;
    word-break: break-word;
}
.qf-visual-editor:focus {
    border-color: #2274a5;
    box-shadow: 0 0 0 3px rgba(34, 116, 165, .12);
}
.qf-visual-editor[data-empty="1"]::before {
    content: attr(data-placeholder);
    color: #b6c0ca;
    pointer-events: none;
}
.qf-editor-img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 8px 0;
    border-radius: 6px;
    cursor: default;
    user-select: none;
}

.floor-label {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef6fb;
    color: #2274a5;
    font-size: 12px;
}

.floor-icon {
    margin-left: 3px;
    font-size: 13px;
}
.floor-label-mobile {
    display: none;
}
@media (max-width: 640px) {
    .post-meta-left {
        flex: 1;
    }
    .floor-label-desktop {
        display: none;
    }
    .floor-label-mobile {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
    }
}

.floor-reply-toggle.btn {
    padding: 5px 12px;
    font-size: 12px;
}

.reaction-btn.btn {
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #8899ab;
    transition: color .15s, background .15s;
    border-radius: 4px;
}
.reaction-btn.btn:hover {
    color: #2274a5;
    background: #eef6fb;
}
.reaction-btn.btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.reaction-btn.btn:disabled:hover {
    color: #8899ab;
    background: transparent;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.notification-actions form {
    margin: 0;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e5edf3;
    border-radius: 10px;
    background: #fafcff;
}

.notification-item span {
    display: block;
    margin-top: 4px;
    color: #9aa8b5;
    font-size: 12px;
}
.notification-item span.notif-read-status {
    display: inline-block;
    margin-top: 0;
}

.narrow,
.narrow-card {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* OAuth 第三方登录 */
.oauth-login-section {
    margin-top: 20px;
    padding-top: 0;
}
.oauth-login-divider {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #a0aec0;
    font-size: 12px;
}
.oauth-login-divider::before,
.oauth-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8ecf1;
}
.oauth-login-divider span {
    padding: 0 14px;
    white-space: nowrap;
}
.oauth-login-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    border: 1px solid #e8ecf1;
    background: #fff;
    color: #4a5568;
}
.oauth-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.oauth-btn-qq {
    border-color: #c5ddf0;
    color: #2d6a9f;
}
.oauth-btn-qq:hover {
    background: #e8f4fd;
    border-color: #8ab4d8;
}
.oauth-btn-wechat {
    border-color: #c5e8c5;
    color: #2d7a3f;
}
.oauth-btn-wechat:hover {
    background: #e8f8e8;
    border-color: #8ac88a;
}
.oauth-btn svg {
    flex-shrink: 0;
}

body.theme-dark .oauth-login-divider::before,
body.theme-dark .oauth-login-divider::after {
    background: #2d3a4a;
}
body.theme-dark .oauth-login-divider {
    color: #6a7a8a;
}
body.theme-dark .oauth-btn {
    background: #1a2436;
    border-color: #2d3a4a;
    color: #a0b0c0;
}
body.theme-dark .oauth-btn-qq {
    border-color: #2a4a6a;
    color: #8ab4e0;
}
body.theme-dark .oauth-btn-qq:hover {
    background: #1e3050;
    border-color: #3a5a7a;
}
body.theme-dark .oauth-btn-wechat {
    border-color: #2a4a3a;
    color: #8ac88a;
}
body.theme-dark .oauth-btn-wechat:hover {
    background: #1e3028;
    border-color: #3a5a4a;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: #435466;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d8e3ec;
    border-radius: 8px;
    padding: 11px 12px;
    outline: none;
    font-size: 14px;
    background: #fff;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0 6px 0 0;
    border: none;
    border-radius: 0;
    vertical-align: middle;
}

textarea {
    resize: vertical;
}

.post-form-card {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    border: 1px solid #d8e3ec;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f7fbff;
}

.editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #cfe0eb;
    border-radius: 6px;
    color: #34566f;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease, border-color .15s ease;
}

.editor-toolbar button:hover {
    background: #eef5fb;
    border-color: #9fc3dc;
}

.editor-toolbar button svg {
    display: block;
}

.editor-toolbar label.toolbar-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #cfe0eb;
    border-radius: 6px;
    color: #34566f;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease, border-color .15s ease;
}

.editor-toolbar label.toolbar-upload-btn:hover {
    background: #eef5fb;
    border-color: #9fc3dc;
}

.editor-toolbar label.toolbar-upload-btn svg {
    display: block;
}

.editor-toolbar + textarea {
    border-radius: 0 0 8px 8px;
}

/* 编辑器下拉菜单（字体/字号） */
.editor-dropdown {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border: 1px solid #d8e3ec;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 110px;
    overflow: hidden;
}

.editor-dropdown-item {
    padding: 7px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #12344d;
    transition: background 0.1s;
    white-space: nowrap;
}

.editor-dropdown-item:hover {
    background: #e8f3ff;
    color: #2274a5;
}

body.theme-dark .editor-dropdown {
    background: #1a2632;
    border-color: #273646;
}

body.theme-dark .editor-dropdown-item {
    color: #d0d8e0;
}

body.theme-dark .editor-dropdown-item:hover {
    background: #243241;
    color: #7bc4ff;
}

.toolbar-dropdown-btn .dropdown-arrow {
    font-size: 8px;
    margin-left: 1px;
    opacity: 0.5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6aa6d6;
    box-shadow: 0 0 0 3px rgba(34, 116, 165, .12);
}

.captcha-box {
    margin: 12px 0;
}

.captcha-row {
    overflow: hidden;
}

.captcha-row input {
    float: left;
    width: 220px;
    max-width: calc(100% - 176px);
}

.captcha-row img {
    float: left;
    width: 160px;
    height: 52px;
    margin-left: 12px;
    border: 1px solid #d8e3ec;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f9fc;
}

@media (max-width: 860px) {
    .captcha-box {
        margin: 0;
    }

    .captcha-box label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .captcha-box > .muted {
        font-size: 11px;
        margin-top: 2px;
        margin-bottom: 0;
        line-height: 1.3;
    }

    .captcha-row {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .captcha-row input {
        float: none;
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 60px;
        height: 36px;
        padding: 4px 8px;
        font-size: 13px;
    }

    .captcha-row img {
        float: none;
        width: 80px;
        height: 36px;
        margin-left: 0;
        flex-shrink: 0;
    }
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.upload-captcha-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 12px 0 18px;
}

.captcha-col {
    flex: 1;
}

.upload-col {
    width: 150px;
    text-align: center;
    position: relative;
    padding-top: 12px;
}

.upload-icon-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    margin: 0;
    color: #2274a5;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.upload-icon-box input {
    display: none;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px dashed #9fc3dc;
    border-radius: 10px;
    background: #f5fbff;
    color: #34566f;
}

.upload-icon svg {
    display: block;
}

.upload-text {
    display: block;
    margin-top: 4px;
    color: #34566f;
    font-size: 12px;
    line-height: 1.2;
}

.upload-help {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    vertical-align: top;
    padding: 0;
    border: 1px solid #cfe0eb;
    border-radius: 50%;
    color: #6f7f8f;
    background: #fff;
    cursor: pointer;
}

.upload-tip {
    display: none;
    position: absolute;
    right: 0;
    top: 92px;
    z-index: 5;
    width: 260px;
    padding: 10px 12px;
    border: 1px solid #d8e3ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 52, 77, .12);
    text-align: left;
}

.upload-status {
    margin: 8px 0 0;
    font-size: 12px;
}

.rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-avatar-preview {
    margin: 12px 0;
}

.profile-avatar-preview img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d8e3ec;
    background: #f5f9fc;
}

form .btn {
    margin-top: 14px;
}

.forum-edit-form {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.forum-edit-form:last-child {
    border-bottom: 0;
}

.forum-edit-form input {
    margin-bottom: 8px;
}

.alert {
    background: #fff5e6;
    color: #9a5a00;
    border: 1px solid #ffdfaa;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
}

.success {
    color: #187447;
}

.danger {
    color: #b42318;
}

.search {
    overflow: hidden;
}

.search input {
    float: left;
    width: 80%;
}

.search .btn {
    float: right;
    width: 18%;
    margin-top: 0;
}

.footer {
    margin-top: 30px;
    padding: 22px 0;
    color: #7a8793;
    border-top: 1px solid #edf1f5;
}

.footer-friend-links-row {
    text-align: left;
    padding: 8px 0 4px;
}

.footer-friend-links-row .wrap,
.footer-nav-row .wrap {
    width: 1120px;
    max-width: 94%;
    margin: 0 auto;
}

.footer-friend-links {
    color: #7a8793;
    font-size: 12px;
}

.footer-friend-links a {
    margin-left: 8px;
    color: #7a8793;
}

.footer-friend-links a:first-child {
    margin-left: 0;
}

.footer-nav-row {
    text-align: right;
    padding: 4px 0 8px;
}

.footer-nav-row .wrap {
    text-align: right;
}

.footer-nav-row a {
    margin-left: 12px;
    font-size: 11px;
    color: #9aa8b5;
    text-decoration: none;
}

.footer-nav-row a:first-child {
    margin-left: 0;
}

.footer-nav-row a:hover {
    color: #2274a5;
    text-decoration: underline;
}

.footer-icp {
    margin-left: 16px;
    font-size: 11px;
    color: #9aa8b5;
}

.copyright {
    text-align: left;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-running-days {
    margin-left: auto;
    font-size: 11px;
    color: #b6c0ca;
    font-weight: 400;
    white-space: nowrap;
}

.powered-text {
    font-size: 11px;
    color: #b6c0ca;
}

.powered-by {
    color: #9aa8b5;
    font-weight: 400;
}

/* 图片灯箱 */
.img-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}

.img-lightbox-content {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    cursor: default;
}

.img-lightbox-close {
    position: absolute;
    top: 20px;
    right: 32px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color .15s ease;
}

.img-lightbox-close:hover {
    color: #ccc;
}

.img-lightbox {
    cursor: zoom-in;
    display: inline-block;
}

.img-lightbox img {
    pointer-events: none;
}

@media (max-width: 860px) {
    .wrap {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header .wrap.nav {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 0;
        overflow: visible;
        padding: 18px 0 14px;
    }

    .brand,
    .nav nav,
    .grid > section,
    .grid > aside,
    .forum-card > div:first-child,
    .stats,
    .thread-main,
    .list-main,
    .search input,
    .search .btn {
        float: none;
        width: 100%;
    }

    .brand {
        line-height: 1.2;
    }

    .nav nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        line-height: 1.4;
    }

    .nav nav a {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    .signin-form {
        margin: 0;
    }

    .user-mini {
        max-width: 120px;
    }

    .user-mini span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 手机版头像点击下拉 */
    .user-mini-dropdown span.user-mini {
        cursor: pointer;
    }

    .stats {
        text-align: left;
        margin-top: 10px;
    }

    .thread-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .thread-main {
        flex: 1;
        min-width: 0;
    }

    .thread-count {
        flex: 0 0 auto;
        float: none;
        width: auto;
        text-align: right;
        margin-top: 0;
        padding-top: 0;
        white-space: nowrap;
    }

    /* 手机端：首页帖子统计放到作者信息浅色文字这一行，避免挡住标题 */
    .list-row {
        display: block;
    }

    .list-main {
        width: 100%;
    }

    .latest-list .list-row a {
        display: block;
        padding-right: 0;
    }

    .list-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

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

    .list-metrics {
        display: none;
    }

    .meta-metrics {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        margin-left: auto;
        color: #b8c0c8;
        white-space: nowrap;
        vertical-align: middle;
    }

    .meta-metrics .metric {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        line-height: 1;
    }

    .meta-metrics svg {
        width: 14px;
        height: 14px;
    }

    /* 手机端：首页帖子列表隐藏板块名 */
    .meta-forum-name {
        display: none;
    }

    /* 手机端：隐藏 hero 区的“发布新帖”按钮，改用最新帖子行内按钮 */
    .hero .btn,
    .page-head .btn {
        display: none;
    }

    .hero,
    .page-head {
        text-align: left;
    }

    .mobile-post-btn {
        display: inline-block !important;
        margin-left: auto;
        padding: 6px 12px;
        font-size: 12px;
    }

    .latest-title-menu {
        flex-wrap: nowrap;
    }

    .admin-tools {
        float: none;
        display: block;
        margin-top: 6px;
    }

    .search .btn {
        margin-top: 10px;
    }

    .attachment-list {
        overflow: hidden;
    }

    .attachment-list a {
        display: block;
        max-width: 100%;
    }

    .attachment-img,
    .reply-attachments .attachment-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-right: 0;
    }

    .rank-grid {
        display: block;
    }

    .admin-stack {
        display: block;
    }

    .admin-stack .card {
        padding: 18px 14px;
        overflow: hidden;
    }

    .admin-stack .btn,
    .card > p .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }

    .add-forum-grid {
        display: block;
    }

    .category-cell,
    .limit-cell {
        display: block;
    }

    .category-inline {
        display: inline-flex;
        align-items: center;
        width: auto;
    }

    .mobile-admin-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 手机端后台版块表格：卡片化显示，电脑版保持原表格 */
    .admin-stack .forum-table {
        display: block;
        overflow-x: visible;
        white-space: normal;
        border-collapse: separate;
    }

    .forum-admin-table tr:first-child {
        display: none;
    }

    .forum-admin-table tr {
        display: block;
        margin: 12px 0;
        padding: 12px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #fafcff;
    }

    .forum-admin-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 0;
    }

    .forum-admin-table td::before {
        display: block;
        margin-bottom: 5px;
        color: #6f7f8f;
        font-size: 12px;
        font-weight: 700;
    }

    .forum-admin-table td:nth-child(1)::before { content: "名称"; }
    .forum-admin-table td:nth-child(2)::before { content: "简介"; }
    .forum-admin-table td:nth-child(3)::before { content: "主题分类"; }
    .forum-admin-table td:nth-child(4)::before { content: "指定用户ID发帖"; }
    .forum-admin-table td:nth-child(5)::before { content: "排序"; }
    .forum-admin-table td:nth-child(6)::before { content: "删除"; }

    .forum-admin-table .forum-appearance-row td::before {
        content: "外观设置";
    }

    .forum-appearance-fields {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-appearance-inputs input[type="text"],
    .forum-appearance-inputs input[type="number"] {
        width: 100%;
    }

    .admin-stack .forum-table input[type="text"],
    .admin-stack .forum-table input[type="number"],
    .forum-admin-table .forum-category-cell input[type="text"],
    .forum-admin-table .forum-limit-cell input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .forum-table .forum-order-input {
        max-width: 100%;
    }

    .forum-table:not(.forum-admin-table) {
        overflow-x: auto;
        white-space: nowrap;
    }

    .reply {
        padding: 14px 0 4px 0;
        gap: 10px;
    }

    .reply-avatar {
        flex: 0 0 36px;
    }

    .reply-avatar img {
        width: 36px;
        height: 36px;
    }

    .reply .post-meta {
        font-size: 13px;
    }

    .editor-toolbar button {
        width: 36px;
        height: 36px;
    }

    .editor-toolbar label.toolbar-upload-btn {
        width: 36px;
        height: 36px;
    }

    .upload-col {
        width: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-self: center;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
    }

    .upload-icon svg {
        width: 20px;
        height: 20px;
    }

    .upload-text {
        display: none;
    }

    .upload-captcha-row {
        align-items: center;
    }

    .user-table tr:first-child {
        display: none;
    }

    .user-table tr {
        display: block;
        margin: 12px 0;
        padding: 12px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #fafcff;
    }

    .user-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 0;
        white-space: normal;
    }

    .user-table td:nth-child(1)::before { content: "ID"; }
    .user-table td:nth-child(2)::before { content: "用户名"; }
    .user-table td:nth-child(3)::before { content: "昵称"; }
    .user-table td:nth-child(4)::before { content: "状态"; }
    .user-table td:nth-child(5)::before { content: "权限"; }
    .user-table td:nth-child(6)::before { content: "注册时间"; }
    .user-table td:nth-child(7)::before { content: "操作"; }

    .user-table td::before {
        display: block;
        margin-bottom: 5px;
        color: #6f7f8f;
        font-size: 12px;
        font-weight: 700;
    }

    .user-mod-row {
        display: none !important;
    }

    .user-actions .user-act-inline {
        display: flex;
        width: 100%;
        margin: 4px 0;
    }

    .user-actions .user-act-inline input[type="number"],
    .user-actions .user-act-inline input[type="password"] {
        flex: 1;
        width: auto;
    }

    .user-actions .user-act-inline .btn {
        width: auto;
        margin: 0;
    }

    .user-actions .user-act-toggle,
    .user-actions .btn-danger {
        display: inline-block;
        width: auto;
        margin: 4px 4px 4px 0;
    }

    /* 手机端底部 */
    .footer-nav-row {
        text-align: center;
        padding: 4px 0 8px;
    }

    .footer-nav-row .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-friend-links-row {
        padding: 8px 0 4px;
    }

    .footer-friend-links-row .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .img-lightbox-close {
        top: 12px;
        right: 18px;
        font-size: 32px;
    }

    /* 楼中楼弹窗手机端 */
    .floor-reply-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .floor-reply-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
    }

    .floor-reply-modal-header h3 {
        font-size: 16px;
    }

    .floor-reply-modal .qf-visual-editor {
        font-size: 16px;
        min-height: 100px;
    }

    .floor-reply-modal-actions .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .post-signature {
        font-size: 13px;
    }

    .quote-block {
        font-size: 14px;
        padding: 10px 12px;
    }

    .floor-reply-quote-block {
        font-size: 14px;
        padding: 10px 12px;
    }

    .copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .site-running-days {
        margin-left: 0;
        font-size: 11px;
    }
}

/* 点赞/丢鸡蛋按钮 */
.post-reactions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-end;
}

body.theme-dark .post-reactions {
    border-top-color: #273646;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    border: 1px solid #e5e9ef;
    border-radius: 3px;
    background: #fff;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.6;
}

.reaction-btn:hover {
    border-color: #bbb;
    color: #666;
}

.reaction-like:hover {
    color: #e53e3e;
    border-color: #e53e3e;
    background: #fff5f5;
}

.reaction-egg:hover {
    color: #dd6b20;
    border-color: #dd6b20;
    background: #fffaf0;
}

.reaction-count {
    font-weight: 500;
    font-size: 12px;
    color: #888;
    padding: 0 4px;
    min-width: 10px;
    text-align: center;
}

/* 帖子互动栏 */
.thread-actions-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #e5e9ef;
}

.thread-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.thread-action-btn:hover {
    background: #edf2f7;
    color: #555;
}

.thread-action-btn.favorited {
    color: #f6ad55;
    background: #fffaf0;
}

.thread-action-count {
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    min-width: 14px;
    text-align: center;
}

.thread-action-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #e5e9ef;
    margin: 0 8px;
}

body.theme-dark .thread-actions-bar {
    background: #14232e;
    border-color: #273646;
}

body.theme-dark .thread-action-btn {
    color: #6a7a8a;
}

body.theme-dark .thread-action-btn:hover {
    background: #1a3050;
    color: #a0b0c0;
}

body.theme-dark .thread-action-btn.favorited {
    color: #f6ad55;
    background: #1a3040;
}

/* 推荐帖子 */
.related-threads-section {
    margin: 16px 0 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.related-threads-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: .3px;
}
.related-threads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.related-thread-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
    min-height: 52px;
    min-width: 0;
    overflow: hidden;
}
.related-thread-card:hover {
    background: #fafbfc;
    border-color: #c5d5e8;
}
.related-thread-card-title {
    font-size: 13px;
    color: #2d5a88;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.related-thread-card-meta {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .related-threads-grid {
        grid-template-columns: 1fr;
    }
    .topic-last-reply-author {
        display: none;
    }
}

/* 论坛版块侧边栏折叠（手机版） */
.forum-sidebar-collapsible .forum-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.forum-collapse-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #7a8b9e;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}
.forum-collapse-toggle:hover {
    color: #2274a5;
}
.forum-collapse-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}
.forum-sidebar-collapsible.is-collapsed .forum-collapse-toggle svg {
    transform: rotate(-90deg);
}
body.theme-dark .forum-collapse-toggle {
    color: #5a7a96;
}
body.theme-dark .forum-collapse-toggle:hover {
    color: #8ab4e0;
}
@media (max-width: 640px) {
    .forum-collapse-toggle {
        display: inline-flex;
    }
    .forum-sidebar-collapsible.is-collapsed .forum-sidebar-content {
        display: none;
    }
}

body.theme-dark .related-threads-section {
    background: #1a2436;
    border-color: #2d3a4a;
}
body.theme-dark .related-threads-title {
    color: #d0d8e8;
}
body.theme-dark .related-thread-card {
    background: transparent;
    border-color: #2d3a4a;
}
body.theme-dark .related-thread-card:hover {
    background: #1e2a3c;
    border-color: #3a4a5c;
}
body.theme-dark .related-thread-card-title {
    color: #8ab4e0;
}
body.theme-dark .related-thread-card-meta {
    color: #6a7a8a;
}

body.theme-dark .thread-action-count {
    color: #6a7a8a;
}

body.theme-dark .thread-action-divider {
    background: #273646;
}

body.theme-dark .reaction-btn.btn {
    color: #6a7a8a;
    background: transparent;
}
body.theme-dark .reaction-btn.btn:hover {
    color: #7aa8d0;
    background: #1a3050;
}
body.theme-dark .reaction-btn.btn:disabled {
    opacity: 0.3;
}
body.theme-dark .reaction-btn.btn:disabled:hover {
    color: #6a7a8a;
    background: transparent;
}

body.theme-dark .reaction-like:hover {
    color: #fc8181;
    background: #2d1f1f;
}

body.theme-dark .reaction-egg:hover {
    color: #f6ad55;
    background: #2d241a;
}

/* 只看TA 提示条 */
.only-see-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 4px;
    padding: 8px 14px;
    background: #eef5fb;
    border: 1px solid #cfe2f3;
    border-radius: 6px;
    font-size: 13px;
    color: #2274a5;
}
.only-see-bar strong {
    color: #1a5c85;
}
.only-see-text {
    flex: 1;
}
body.theme-dark .only-see-bar {
    background: #1a2d3d;
    border-color: #274055;
    color: #7bc4ff;
}
body.theme-dark .only-see-bar strong {
    color: #a0d8ff;
}

/* 回帖分页 */
.reply-pagination {
    margin: 16px 0 0;
    text-align: center;
}
.reply-pagination-inner {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.reply-page-btn,
.reply-page-current {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}
.reply-page-btn {
    color: #2274a5;
    background: #f0f4f8;
    border: 1px solid #e5e9ef;
}
.reply-page-btn:hover {
    background: #dce6f0;
    color: #1a5a80;
}
.reply-page-current {
    color: #fff;
    background: #2274a5;
    font-weight: 600;
}
.reply-page-ellipsis {
    display: inline-block;
    padding: 6px 8px;
    color: #9ca3af;
    user-select: none;
}
body.theme-dark .reply-page-btn {
    color: #5a9ac8;
    background: #1a2d3d;
    border-color: #273646;
}
body.theme-dark .reply-page-btn:hover {
    background: #243545;
    color: #7bc4ff;
}
body.theme-dark .reply-page-current {
    background: #2e5a82;
    color: #fff;
}

/* 用户勋章 */
.user-medals {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    margin-top: 6px;
}
.user-medal-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: transform 0.15s;
}
.user-medal-icon:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* 编辑器附件列表 */
.attachment-list {
    margin: 12px 0;
}

.attachment-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

body.theme-dark .attachment-list-item {
    background: #182835;
    border-color: #273646;
}

.attachment-list-icon {
    flex: 0 0 28px;
    font-size: 20px;
    text-align: center;
}

.attachment-list-info {
    flex: 1;
    min-width: 0;
}

.attachment-list-name {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 4px;
    word-break: break-all;
}

body.theme-dark .attachment-list-name {
    color: #a0b0c0;
}

.attachment-list-desc {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    color: #2d3748;
}

body.theme-dark .attachment-list-desc {
    background: #14232e;
    border-color: #273646;
    color: #d0d8e0;
}

.attachment-list-delete {
    flex: 0 0 auto;
    padding: 5px 12px;
    border: 1px solid #fc8181;
    border-radius: 4px;
    background: #fff5f5;
    color: #c53030;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.attachment-list-delete:hover {
    background: #fed7d7;
}

body.theme-dark .attachment-list-delete {
    border-color: #9b2c2c;
    background: #2d1b1b;
    color: #fc8181;
}

/* 编辑器图片删除按钮 */
.qf-editor-img {
    position: relative;
}

.qf-img-delete-btn {
    transition: transform 0.15s, background 0.15s;
}

.qf-img-delete-btn:hover {
    transform: scale(1.1);
    background: rgba(229, 62, 62, 0.85) !important;
}

/* 帖子详情页附件描述 */
.attachment-file strong {
    display: block;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 2px;
}

.attachment-file span {
    font-size: 13px;
    color: #718096;
    font-weight: normal;
}

body.theme-dark .attachment-file strong {
    color: #e2e8f0;
}

body.theme-dark .attachment-file span {
    color: #90a0b0;
}
