.wb-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    align-items: start;
    gap: 20px;
}
@media (max-width: 900px) {
    .wb-page {
        grid-template-columns: 1fr;
    }
}
.wb-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    grid-column: 1 / -1;
}
.wb-breadcrumb a { color: #666; text-decoration: none; }
.wb-breadcrumb a:hover { color: var(--wb-primary); }
.wb-breadcrumb .sep { margin: 0 6px; color: #ccc; }

.wb-main {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.wb-tabs {
    display: flex;
    border-bottom: 0px solid #f0f0f0;
    padding: 0 20px;
}
.wb-tab {
    padding: 14px 20px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.wb-tab:hover { color: var(--wb-primary); }
.wb-tab.active {
    color: var(--wb-primary);
    border-bottom-color: var(--wb-primary);
    font-weight: 600;
}

/* 顶部广告位 */
.wb-hero-ad {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    text-align: center;
}
.wb-hero-ad a { display: block; }
.wb-hero-ad img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}
/* 宽度保护：代码型广告里的元素不允许超过中间栏宽度 */
.wb-hero-ad { width: 100%; box-sizing: border-box; }
.wb-hero-ad > div,
.wb-hero-ad > table,
.wb-hero-ad iframe { max-width: 100% !important; box-sizing: border-box; }
html.dark .wb-hero-ad { background: #161616; border-bottom-color: #222; }

/* 侧栏广告位 */
.wb-side-ad {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}
.wb-side-ad a { display: block; }
.wb-side-ad img { display: block; width: 100%; }
html.dark .wb-side-ad { background: #161616; border-color: #222; }

/* 发布框 */
.wb-composer { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.wb-composer textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
}
.wb-composer textarea:focus { border-color: var(--wb-primary); }
.wb-composer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.wb-counter { margin-left: auto; color: #999; font-size: 12px; }
.wb-submit {
    background: var(--wb-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.wb-submit:hover { opacity: 0.85; }
.wb-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.wb-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.wb-preview-item { position: relative; }
.wb-preview-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.wb-preview-item .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
}
.wb-login-tip {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #999;
    font-size: 14px;
}
.wb-login-tip .btn-ask {
    display: inline-block;
    width: auto;
    padding: 10px 40px;
    margin-top: 12px;
}

/* 微博列表 */
.wb-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}
.wb-item { scroll-margin-top: 90px; }
.wb-item:target { background: #fffbe8; animation: wb-flash 2s ease; }
@keyframes wb-flash {
    0% { background: #fff3bf; }
    100% { background: #fffbe8; }
}
html.dark .wb-item:target { background: #23231a; animation: wb-flash-dark 2s ease; }
@keyframes wb-flash-dark {
    0% { background: #3a3a20; }
    100% { background: #23231a; }
}

.wb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.wb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wb-body { flex: 1; min-width: 0; }
.wb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wb-author { font-weight: 700; font-size: 15px; color: #333; }
.wb-badge-top {
    padding: 1px 6px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
}
.wb-time { font-size: 12px; color: #999; }
.wb-content {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 6px 0;
    word-break: break-word;
    white-space: pre-wrap;
}
.wb-images {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    max-width: 480px;
}
.wb-images.cols-1 { grid-template-columns: 1fr; max-width: 360px; }
.wb-images.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wb-images.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wb-video {
    margin-top: 8px;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.wb-video iframe,
.wb-video video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.wb-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}
.wb-video-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.wb-video-btn:hover { color: var(--wb-primary); }
.wb-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--wb-primary-light);
    color: var(--wb-primary);
    font-size: 12px;
    border-radius: 20px;
}
.wb-video-tag .rm { cursor: pointer; font-weight: 700; line-height: 1; }
.wb-video-tag .rm:hover { opacity: 0.6; }
.wb-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.wb-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.wb-modal h4 { margin: 0 0 16px; font-size: 16px; color: #333; }
.wb-modal input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}
.wb-modal input:focus { border-color: var(--wb-primary); }
.wb-modal-hint { font-size: 12px; color: #999; margin: 8px 0 0; }
.wb-modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.wb-modal-btns button {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.wb-modal-cancel { background: #f0f0f0; color: #666; }
.wb-modal-ok { background: var(--wb-primary); color: #fff; }
/* 图片弹窗 */
.wb-img-mode-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.wb-img-mode {
    flex: 1; padding: 8px 0; border: 1px solid #e0e0e0; background: #f5f5f5;
    border-radius: 8px; font-size: 13px; color: #666; cursor: pointer; font-family: inherit;
}
.wb-img-mode.active { background: var(--wb-primary); color: #fff; border-color: var(--wb-primary); }
.wb-img-upload-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 18px 0; border: 1px dashed #d0d0d0; border-radius: 8px;
    color: #666; font-size: 13px; cursor: pointer;
}
.wb-img-upload-btn:hover { border-color: var(--wb-primary); color: var(--wb-primary); }
#wbImgUrls {
    width: 100%; min-height: 110px; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; line-height: 1.6; box-sizing: border-box;
    outline: none; resize: vertical; font-family: inherit;
}
#wbImgUrls:focus { border-color: var(--wb-primary); }
html.dark .wb-img-mode { background: #2a2a2a !important; border-color: #333 !important; color: #aaa !important; }
html.dark .wb-img-upload-btn { border-color: #333 !important; color: #888 !important; }
html.dark #wbImgUrls { background: #111 !important; border-color: #333 !important; color: #f0f0f0 !important; }
html.dark .wb-video-btn { color: #888 !important; }
html.dark .wb-video-tag { background: #2a2a2a !important; color: #f0f0f0 !important; }
html.dark .wb-modal { background: #1a1a1a !important; }
html.dark .wb-modal h4 { color: #f0f0f0 !important; }
html.dark .wb-modal input { background: #111 !important; border-color: #333 !important; color: #f0f0f0 !important; }
html.dark .wb-modal-cancel { background: #2a2a2a !important; color: #aaa !important; }
html.dark .wb-modal-hint { color: #666 !important; }

.wb-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
}
.wb-acts { display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.wb-act {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-family: inherit;
}
.wb-act:hover { color: var(--wb-primary); }
.wb-act-like.active-like { color: #ff4d4f; }
.wb-act-fav.active-fav { color: #f5a623; }
.wb-del { margin-left: auto; }
.wb-del:hover { color: #ff4d4f; }

/* @提及 */
.wb-mention { color: var(--wb-primary); font-weight: 600; text-decoration: none; }
.wb-mention:hover { text-decoration: underline; }
html.dark .wb-mention { color: #f0f0f0 !important; }
.wb-mention-pop {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.wb-mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
.wb-mention-item:hover, .wb-mention-item.active { background: var(--wb-primary-light); }
.wb-mention-item img,
.wb-mention-ava {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}
.wb-mention-item small { color: #999; margin-left: auto; }
html.dark .wb-mention-pop { background: #1a1a1a !important; border-color: #333 !important; }
html.dark .wb-mention-item { color: #ddd !important; }
html.dark .wb-mention-item small { color: #666 !important; }
html.dark .wb-mention-ava { background: #2a2a2a !important; color: #aaa !important; }

/* 转发引用卡片 */
.wb-quote {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 8px;
    color: inherit;
}
.wb-quote:hover { background: var(--wb-primary-light); }
.wb-quote-link { display: block; color: inherit; text-decoration: none; }
.wb-quote .wb-images { max-width: 240px; margin-top: 6px; gap: 4px; }
.wb-quote .wb-video { max-width: 320px; margin-top: 6px; }
.wb-quote-author { font-size: 13px; font-weight: 600; color: var(--wb-primary); margin-bottom: 2px; }
.wb-quote-text { font-size: 13.5px; color: #666; line-height: 1.6; word-break: break-word; }
.wb-quote-imgs { font-size: 12px; color: #999; margin-top: 4px; }
html.dark .wb-quote { background: #1a1a1a !important; }
html.dark .wb-quote:hover { background: #222 !important; }
html.dark .wb-quote-text { color: #999 !important; }
html.dark .wb-quote-imgs { color: #555 !important; }

/* 评论区 */
.wb-comments {
    margin-top: 12px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    display: none;
    position: relative;
}
.wb-comments-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    background: #e8e8e8;
    color: #888;
    border-radius: 50%;
    font-size: 15px;
    font-family: arial;
    cursor: pointer;
    user-select: none;
}
.wb-comments-close:hover { background: #ff4d4f; color: #fff; }
html.dark .wb-comments-close { background: #2a2a2a !important; color: #888 !important; }
html.dark .wb-comments-close:hover { background: #ff4d4f !important; color: #fff !important; }
.wb-comment { display: flex; gap: 8px; padding: 6px 0; }
.wb-comment-body { flex: 1; font-size: 14px; color: #555; line-height: 1.6; word-break: break-word; }
.wb-comment-author { font-weight: 600; color: #333; }
.wb-comment-time { color: #aaa; font-size: 11px; margin-left: 8px; }
.wb-comment-reply { color: #999; cursor: pointer; font-size: 12px; margin-left: 8px; }
.wb-comment-reply:hover { color: var(--wb-primary); }
.wb-comment-del { color: #bbb; cursor: pointer; font-size: 12px; margin-left: 8px; }
.wb-comment-del:hover { color: #ff4d4f; }
html.dark .wb-comment-del { color: #444 !important; }
html.dark .wb-comment-del:hover { color: #ff4d4f !important; }
.wb-comment-input { display: flex; gap: 8px; margin-top: 10px; }
.wb-emoji-btn {
    background: none; border: none; cursor: pointer; padding: 0 4px;
    font-size: 16px; line-height: 1; flex-shrink: 0; align-self: center;
    font-family: inherit;
}
.wb-emoji-btn:hover { transform: scale(1.15); }
.wb-emoji-pop {
    display: none;
    position: fixed;
    width: 360px;
    max-width: calc(100vw - 16px);
    max-height: 264px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
    padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    grid-template-columns: repeat(8, 1fr); gap: 4px;
    z-index: 5000;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.wb-emoji-pop::-webkit-scrollbar { width: 8px; }
.wb-emoji-pop::-webkit-scrollbar-track { background: transparent; }
.wb-emoji-pop::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 8px; }
.wb-emoji-pop::-webkit-scrollbar-thumb:hover { background: var(--wb-primary); }
html.dark .wb-emoji-pop { scrollbar-color: #333 transparent; }
html.dark .wb-emoji-pop::-webkit-scrollbar-thumb { background: #333; }
html.dark .wb-emoji-pop::-webkit-scrollbar-thumb:hover { background: #f0f0f0; }
.wb-emoji-pop.open { display: grid; }
.wb-emoji-close {
    position: sticky;
    top: 0;
    justify-self: end;
    grid-column: -1;
    width: 22px; height: 22px; line-height: 20px;
    text-align: center;
    background: #f0f0f0; color: #666;
    border-radius: 50%;
    font-size: 15px; font-family: arial;
    cursor: pointer;
    margin: -2px -2px -20px 0;
    z-index: 2;
}
.wb-emoji-close:hover { background: #ff4d4f; color: #fff; }
html.dark .wb-emoji-close { background: #2a2a2a !important; color: #aaa !important; }
html.dark .wb-emoji-close:hover { background: #ff4d4f !important; color: #fff !important; }
.wb-emoji-pop button {
    background: none; border: none; padding: 2px; border-radius: 6px;
    font-size: 20px; line-height: 1.25; cursor: pointer; font-family: inherit;
    min-width: 0; text-align: center;
}
.wb-emoji-pop button:hover { background: var(--wb-primary-light); }
html.dark .wb-emoji-pop { background: #1a1a1a !important; border-color: #333 !important; }
.wb-comment-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}
.wb-comment-input input:focus { border-color: var(--wb-primary); }
.wb-comment-input button[type="submit"] {
    background: var(--wb-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 13px;
    cursor: pointer;
}

.wb-act svg { width: 15px; height: 15px; flex-shrink: 0; }
.wb-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-act-like.active-like .wb-ico,
.wb-act-fav.active-fav .wb-ico { fill: currentColor; }
.wb-del svg { width: 14px; height: 14px; }
.empty-wb-icon svg { width: 48px; height: 48px; stroke: #ddd; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html.dark .empty-wb-icon svg { stroke: #333 !important; }

/* 分页 */
.wb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px;
    border-top: 1px solid #f5f5f5;
}
.wb-pagination a, .wb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    color: #666;
    background: #fff;
    transition: all 0.2s;
}
.wb-pagination a:hover { border-color: var(--wb-primary); color: var(--wb-primary); }
.wb-pagination .current { background: var(--wb-primary); color: #fff; border-color: var(--wb-primary); }
.wb-pagination .disabled { color: #ccc; cursor: not-allowed; }

.empty-wb { text-align: center; padding: 60px 20px; color: #999; }
.empty-wb-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* 侧栏 */
.wb-sidebar { display: flex; flex-direction: column; gap: 20px; }
html.dark .wb-page > .wb-sidebar { background: transparent !important; }
html.dark .wb-sidebar .sidebar-title {
    background: transparent !important;
}
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 20px;
}
.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.hot-list { display: flex; flex-direction: column; }

/* ============ 微博列表（热门）2026 风格 ============ */
.wb-hot-card {
    padding: 16px;
    position: sticky;
    top: 90px;
    z-index: 10;
}
.wb-hot-card .sidebar-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-bottom: 8px;
    padding-bottom: 10px;
}
.hot-list { display: flex; flex-direction: column; }
.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 8px;
    border-radius: 10px;
    font-size: 13.5px;
    color: #444;
    text-decoration: none;
    line-height: 1.55;
    transition: background 0.18s ease, transform 0.18s ease;
}
.hot-item:hover {
    background: var(--wb-primary-light);
    transform: translateX(3px);
}
.hot-num {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: #c8c8c8;
    line-height: 1.7;
    font-family: Georgia, 'Times New Roman', serif;
}
.hot-rank-1 .hot-num { color: #ff4d4f; }
.hot-rank-2 .hot-num { color: #f5a623; }
.hot-rank-3 .hot-num { color: #b8860b; }
.hot-text {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.hot-item:hover .hot-text { color: var(--wb-primary); }
.hot-meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #bbb;
    line-height: 1.7;
    white-space: nowrap;
}
.hot-meta .wb-ico { opacity: 0.7; }
html.dark .hot-item { border-bottom-color: #333 !important; }
html.dark .wb-hot-card .sidebar-title { color: #f0f0f0 !important; }
html.dark .hot-item { color: #aaa !important; }
html.dark .hot-item:hover { background: #1a1a1a !important; }
html.dark .hot-item:hover .hot-text { color: #f0f0f0 !important; }
html.dark .hot-num { color: #444 !important; }
html.dark .hot-rank-1 .hot-num { color: #ff6b6d !important; }
html.dark .hot-rank-2 .hot-num { color: #f5b544 !important; }
html.dark .hot-rank-3 .hot-num { color: #d4a017 !important; }
html.dark .hot-meta { color: #555 !important; }
.stat-grid { display: flex; gap: 12px; }
.stat-box {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    background: var(--wb-primary-light);
    border-radius: 8px;
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--wb-primary); }
.stat-label { font-size: 14px; color: #999; margin-top: 4px; }

/* 图片/视频放大弹窗 */
.wb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 30px 16px;
    box-sizing: border-box;
}
.wb-lightbox.open { display: flex; }
.wb-lb-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: auto;
    max-width: 94vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}
.wb-lb-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.wb-lb-count {
    color: #666;
    font-size: 13px;
    background: #f5f5f5;
    padding: 3px 12px;
    border-radius: 20px;
}
.wb-lb-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    font-family: arial;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.wb-lb-close:hover { background: #ff4d4f; color: #fff; }
.wb-lb-body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.wb-lb-stage {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wb-lb-img {
    max-width: calc(94vw - 120px);
    max-height: calc(92vh - 80px);
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.wb-lb-video-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wb-lb-video-box .wb-video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 100px);
    aspect-ratio: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 原生视频：按原始比例显示，无黑边 */
.wb-lb-video-box .wb-video video {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(94vw - 120px);
    max-height: calc(92vh - 90px);
}
/* iframe 嵌入（B站等）：保持 16:9 */
.wb-lb-video-box .wb-video:has(iframe) {
    width: 90vw;
    max-width: 1360px;
    aspect-ratio: 16 / 9;
}
.wb-lb-video-box .wb-video iframe {
    width: 100%;
    height: 100%;
}
.wb-lb-video-box .wb-video {
    margin-top: 0;
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}
.wb-lb-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: arial;
    padding: 0;
}
.wb-lb-btn:hover { background: var(--wb-primary); color: #fff; }
.wb-lightbox.video-mode .wb-lb-img,
.wb-lightbox.video-mode .wb-lb-btn,
.wb-lightbox.video-mode .wb-lb-count { display: none; }
.wb-lightbox.img-mode .wb-lb-video-box { display: none; }
html.dark .wb-lb-dialog { background: #1a1a1a !important; }
html.dark .wb-lb-header { border-bottom-color: #2a2a2a !important; }
html.dark .wb-lb-count { background: #2a2a2a !important; color: #aaa !important; }
html.dark .wb-lb-btn,
html.dark .wb-lb-close { background: #2a2a2a !important; color: #aaa !important; }
html.dark .wb-lb-btn:hover,
html.dark .wb-lb-close:hover { background: var(--wb-primary) !important; color: #fff !important; }

/* ==================== 黑夜模式 ==================== */
html.dark .wb-main { background: #111 !important; border-color: #222 !important; }
html.dark .wb-tabs { border-bottom-color: #222 !important; }
html.dark .wb-tab { color: #888 !important; }
html.dark .wb-tab:hover { color: #f0f0f0 !important; }
html.dark .wb-tab.active { color: #f0f0f0 !important; border-bottom-color: #f0f0f0 !important; }
html.dark .wb-composer { border-bottom-color: #222 !important; }
html.dark .wb-composer textarea {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #f0f0f0 !important;
}
html.dark .wb-counter { color: #555 !important; }
html.dark .wb-login-tip { border-bottom-color: #222 !important; color: #666 !important; }
html.dark .wb-item { border-bottom-color: #222 !important; }
html.dark .wb-avatar { background: #222 !important; color: #aaa !important; }
html.dark .wb-author { color: #f0f0f0 !important; }
html.dark .wb-content { color: #ddd !important; }
html.dark .wb-time { color: #555 !important; }
html.dark .wb-acts .wb-act { color: #666 !important; }
html.dark .wb-act-like.active-like { color: #ff4d4f !important; }
html.dark .wb-act-fav.active-fav { color: #f5a623 !important; }
html.dark .wb-del { color: #444 !important; }
html.dark .wb-comments { background: #1a1a1a !important; }
html.dark .wb-comment-body { color: #999 !important; }
html.dark .wb-comment-author { color: #f0f0f0 !important; }
html.dark .wb-comment-time { color: #444 !important; }
html.dark .wb-comment-reply { color: #555 !important; }
html.dark .wb-comment-input input {
    background: #111 !important;
    border-color: #333 !important;
    color: #f0f0f0 !important;
}
html.dark .wb-pagination { border-top-color: #222 !important; }
html.dark .wb-pagination a { background: #111 !important; border-color: #222 !important; color: #aaa !important; }
html.dark .wb-pagination a:hover { border-color: #f0f0f0 !important; color: #f0f0f0 !important; }
html.dark .wb-pagination .current { background: #f0f0f0 !important; color: #111 !important; border-color: #f0f0f0 !important; }
html.dark .wb-pagination .disabled { color: #444 !important; }
html.dark .sidebar-card { background: #111 !important; border-color: #222 !important; }
html.dark .sidebar-title { color: #f0f0f0 !important; border-bottom-color: #222 !important; }

html.dark .stat-box { background: #1a1a1a !important; }
html.dark .stat-num { color: #f0f0f0 !important; }
html.dark .stat-label { color: #555 !important; }
html.dark .empty-wb { color: #555 !important; }
html.dark .wb-breadcrumb { color: #666 !important; }
html.dark .wb-breadcrumb a { color: #888 !important; }
html.dark .wb-breadcrumb a:hover { color: #f0f0f0 !important; }

/* ============ 侧栏：最新评论 ============ */
.wb-rc-list { display: flex; flex-direction: column; }
.wb-rc-item {
    display: flex; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #f5f5f5;
    text-decoration: none; border-radius: 6px; transition: background 0.18s ease;
}
.wb-rc-item:last-child { border-bottom: 0; }
.wb-rc-item:hover { background: var(--wb-primary-light); }
.wb-rc-ava {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: #2e2e2e; color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.wb-rc-ava img { width: 100%; height: 100%; object-fit: cover; }
.wb-rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wb-rc-head { font-size: 12px; color: #999; display: flex; justify-content: space-between; gap: 8px; }
.wb-rc-head b {
    color: #555; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-rc-head time { flex-shrink: 0; color: #c0c0c0; }
.wb-rc-text {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12.5px; color: #888; line-height: 1.55; word-break: break-word;
}

/* ============ 侧栏新卡片：黑夜模式 ============ */
html.dark .wb-rc-item { border-bottom-color: #1a1a1a !important; }
html.dark .wb-rc-item:hover { background: #1a1a1a !important; }
html.dark .wb-rc-ava { background: #222 !important; color: #aaa !important; }
html.dark .wb-rc-head b { color: #aaa !important; }
html.dark .wb-rc-head time { color: #444 !important; }
html.dark .wb-rc-text { color: #777 !important; }

/* ============ 左栏：个人名片 + 功能导航 ============ */
.wb-leftbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    align-self: start;
}
.wb-me-card { text-align: center; padding: 24px 20px 20px; }
.wb-me-ava {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
    background: #2e2e2e; color: #fff; font-size: 26px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.wb-me-ava img { width: 100%; height: 100%; object-fit: cover; }
.wb-me-name {
    font-size: 16px; font-weight: 700; color: #111; margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-me-sub { font-size: 12px; color: #999; margin-bottom: 16px; }
.wb-me-stats {
    display: flex; padding: 12px 0; margin-bottom: 16px;
    border-top: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
}
.wb-me-stats > a, .wb-me-stats > div { flex: 1; text-align: center; text-decoration: none; }
.wb-me-stats b { display: block; font-size: 16px; font-weight: 700; color: #111; }
.wb-me-stats span { font-size: 11px; color: #999; }
.wb-me-stats > a:hover b { color: var(--wb-primary); }
.wb-me-post {
    width: 100%; padding: 10px 0; border: none; border-radius: 999px;
    background: var(--wb-primary); color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity 0.2s;
}
.wb-me-post:hover { opacity: 0.85; }
.wb-guest-tip { font-size: 13px; color: #888; line-height: 1.7; margin: 0 0 16px; }

.wb-nav { display: flex; flex-direction: column; gap: 2px; }
.wb-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
    font-size: 14px; color: #555; text-decoration: none; transition: all 0.18s ease;
}
.wb-nav a:hover { background: var(--wb-primary-light); color: #111; transform: translateX(2px); }
.wb-nav a.active { background: var(--wb-primary-light); color: var(--wb-primary); font-weight: 700; }
.wb-nav-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.wb-nav a.active .wb-nav-ico { opacity: 1; }

/* 左栏：黑夜模式 */
html.dark .wb-me-ava { background: #222 !important; color: #aaa !important; border-color: #2a2a2a !important; box-shadow: none !important; }
html.dark .wb-me-name { color: #f0f0f0 !important; }
html.dark .wb-me-sub { color: #666 !important; }
html.dark .wb-me-stats { border-color: #222 !important; }
html.dark .wb-me-stats b { color: #f0f0f0 !important; }
html.dark .wb-me-stats span { color: #555 !important; }
html.dark .wb-guest-tip { color: #666 !important; }
html.dark .wb-nav a { color: #aaa !important; }
html.dark .wb-nav a:hover { background: #1a1a1a !important; color: #f0f0f0 !important; }
html.dark .wb-nav a.active { background: #1a1a1a !important; color: #f0f0f0 !important; }

/* 窄屏：左栏导航变横排可滑动 */
@media (max-width: 900px) {
    .wb-leftbar { position: static; }
    .wb-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .wb-nav::-webkit-scrollbar { display: none; }
    .wb-nav a { white-space: nowrap; flex-shrink: 0; }
}

/* ============ sticky 根因修复：hidden 会创建滚动容器导致 sticky 失效，clip 不会 ============ */
html, body { overflow-x: clip; }

/* ============ 修复：右栏热门微博下拉时吸顶固定（2026-09-19） ============ */

/* 1) 关键修复：让右侧栏撑满与主列同高，sticky 才有足够的滚动吸附空间 */
.wb-page > .wb-sidebar { align-self: stretch; }

/* 2) 热门卡视觉上排到最后：避免下方卡片滚动时从吸顶卡底下穿过（DOM 不用动，靠 flex order） */
.wb-sidebar .wb-hot-card { order: 99; }

/* 3) 窄屏单列时取消吸顶，恢复正常文档流，避免移动端布局异常 */
@media (max-width: 900px) {
    .wb-page > .wb-sidebar { align-self: start; }
    .wb-sidebar .wb-hot-card { order: 0; position: static; }
}

/* ============ 左栏：热议话题 / 活跃博主（方案A 2026-09-19） ============ */
.wb-topic-list { display: flex; flex-direction: column; gap: 2px; }
.wb-topic-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px; text-decoration: none;
    font-size: 13.5px; color: #444; line-height: 1.5;
    transition: background 0.18s ease, transform 0.18s ease;
}
.wb-topic-item:hover { background: var(--wb-primary-light); transform: translateX(3px); }
.wb-topic-item.active { background: var(--wb-primary-light); color: var(--wb-primary); font-weight: 600; }
.wb-topic-rank {
    flex-shrink: 0; width: 20px; text-align: center;
    font-size: 13px; font-weight: 700; font-style: italic; line-height: 1.5;
    color: #c8c8c8; font-family: Georgia, 'Times New Roman', serif;
}
.wb-topic-item:nth-child(1) .wb-topic-rank { color: #ff4d4f; }
.wb-topic-item:nth-child(2) .wb-topic-rank { color: #f5a623; }
.wb-topic-item:nth-child(3) .wb-topic-rank { color: #b8860b; }
.wb-topic-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-topic-cnt { flex-shrink: 0; font-size: 11px; color: #bbb; }

.wb-blogger-list { display: flex; flex-direction: column; gap: 2px; }
.wb-blogger {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}
.wb-blogger:hover { background: var(--wb-primary-light); transform: translateX(3px); }
.wb-blogger.active { background: var(--wb-primary-light); }
.wb-blogger-ava {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: #2e2e2e; color: #fff; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.wb-blogger-ava img { width: 100%; height: 100%; object-fit: cover; }
.wb-blogger-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wb-blogger-body b {
    font-size: 13.5px; font-weight: 600; color: #333;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-blogger-body small { font-size: 11px; color: #999; }
.wb-blogger:hover .wb-blogger-body b { color: var(--wb-primary); }

/* 话题筛选提示条 */
.wb-topic-banner {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; font-size: 13.5px; color: #666;
    background: var(--wb-primary-light);
    border-bottom: 1px solid #f0f0f0;
}
.wb-topic-banner b { color: var(--wb-primary); font-weight: 700; }
.wb-topic-clear { margin-left: auto; color: #999; text-decoration: none; font-size: 12.5px; }
.wb-topic-clear:hover { color: #ff4d4f; }

/* 左栏新卡片：黑夜模式 */
html.dark .wb-topic-item { color: #aaa !important; }
html.dark .wb-topic-item:hover,
html.dark .wb-topic-item.active { background: #1a1a1a !important; }
html.dark .wb-topic-item.active { color: #f0f0f0 !important; }
html.dark .wb-topic-rank { color: #444 !important; }
html.dark .wb-topic-item:nth-child(1) .wb-topic-rank { color: #ff6b6d !important; }
html.dark .wb-topic-item:nth-child(2) .wb-topic-rank { color: #f5b544 !important; }
html.dark .wb-topic-item:nth-child(3) .wb-topic-rank { color: #d4a017 !important; }
html.dark .wb-topic-cnt { color: #555 !important; }
html.dark .wb-blogger:hover,
html.dark .wb-blogger.active { background: #1a1a1a !important; }
html.dark .wb-blogger-ava { background: #222 !important; color: #aaa !important; }
html.dark .wb-blogger-body b { color: #f0f0f0 !important; }
html.dark .wb-blogger-body small { color: #666 !important; }
html.dark .wb-topic-banner { background: #1a1a1a !important; border-bottom-color: #222 !important; color: #999 !important; }
html.dark .wb-topic-banner b { color: #f0f0f0 !important; }
html.dark .wb-topic-clear { color: #555 !important; }

/* ============ 关注按钮（用户名同排最右侧，仅登录可见 2026-09-19） ============ */
.wb-follow {
    margin-left: auto;
    flex-shrink: 0;
    padding: 3px 14px;
    border-radius: 999px;
    border: 1px solid var(--wb-primary);
    background: var(--wb-primary);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    align-self: center;
}
.wb-follow:hover { opacity: 0.85; }
.wb-follow.followed { background: transparent; color: var(--wb-primary); }
.wb-follow:disabled { opacity: 0.5; cursor: not-allowed; }
html.dark .wb-follow { color: #111 !important; border-color: #f0f0f0 !important; background: #f0f0f0 !important; }
html.dark .wb-follow:hover { opacity: 0.85; }
html.dark .wb-follow.followed { background: transparent !important; color: #f0f0f0 !important; border-color: #555 !important; }