/* ========================================================
   提钱退休 · 24H 微信朋友圈风格 Timeline 样式
   ======================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #07c160;
    --accent-blue: #576b95;
    --link-color: #576b95;
    --bg-main: #ededed;
    --card-bg: #ffffff;
    --text-primary: #191919;
    --text-secondary: #7f7f7f;
    --border-subtle: #f0f0f0;
    --wechat-bubble-bg: #f7f7f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* 悬浮返回首页按钮 (轻量级微信朋友圈风格返回) */
.timeline-floating-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.timeline-floating-back:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.05);
    color: #ffffff;
}

/* 页面主容器 (桌面端居中卡片化，宽度 820px 大气宽幅排版，移动端全屏) */
.moments-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 60px;
}

/* 头部封面与用户资料 */
.user-profile {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-bg {
    height: 340px; /* 从 300px 增至 340px，配合 820px 宽度保持黄金大 Banner 比例 */
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    overflow: hidden;
}

.profile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88);
    display: block;
}

.profile-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.45) 100%);
}

/* 用户名称与头像容器（浮动跨越封面与白色信息栏，脱离 profile-bg 防止 overflow 截断） */
.user-avatar-container {
    position: absolute;
    top: 296px; /* 垂直顺移至 296px，确保头像精准骑跨在 340px 封面下沿 */
    right: 24px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 10;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 30px;
}

.user-details h2 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    margin: 0;
}

/* 头像精细化样式：移除过宽白边，避免被遮挡 */
.avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
    display: block;
}

.profile-info {
    position: relative;
    padding: 34px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
}

.profile-intro-below-avatar {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-intro-below-avatar p {
    margin: 0;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.rolling-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ================== 控制面板与排序过滤条 ================== */
.timeline-control-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 245, 249, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.control-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* 排序选择器 (segmented switch) */
.sort-switch {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.sort-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sort-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sort-btn:hover:not(.active) {
    color: #0f172a;
}

/* 24小时滚动数据提示与右侧操作 */
.control-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-window-hint {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* 黑夜/白天模式切换按钮 */
.timeline-theme-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    line-height: 1;
    user-select: none;
}

.timeline-theme-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.timeline-theme-btn:active {
    transform: scale(0.96);
}

.timeline-theme-btn i {
    font-size: 13px;
    color: #f59e0b;
    transition: transform 0.3s ease;
}

.timeline-theme-btn:hover i {
    transform: rotate(15deg);
}

@media (max-width: 480px) {
    .timeline-theme-btn {
        padding: 5px 9px;
    }
    .theme-btn-text {
        display: none;
    }
}

/* 类型过滤 Pills 选项卡 */
.filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.pill-item {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pill-item .pill-count {
    font-size: 11px;
    opacity: 0.8;
}

.pill-item:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f1f5f9;
}

.pill-item.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.pill-item.active .pill-count {
    opacity: 0.9;
}

/* ================== 朋友圈单条动态 Card ================== */
.moment-list {
    display: flex;
    flex-direction: column;
}

.moment-item {
    display: flex;
    gap: 12px;
    padding: 16px 16px 14px 16px;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    transition: background-color 0.15s ease;
}

.moment-item:hover {
    background-color: #fafbfc;
}

/* 用户头像 */
.moment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-self: flex-start;
}

.moment-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
    cursor: pointer;
}

.moment-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

/* 动态主体 */
.moment-content {
    flex: 1;
    min-width: 0;
}

.moment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.moment-author-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.moment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    cursor: pointer;
}

.moment-author-name:hover {
    text-decoration: underline;
}

.moment-author-handle {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
}

.moment-type-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-video {
    background: #fee2e2;
    color: #ef4444;
}

.badge-photo {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-article {
    background: #fef3c7;
    color: #d97706;
}

/* 推文正文 */
.moment-text {
    font-size: 15px;
    line-height: 1.62;
    color: #1f2937;
    word-break: break-word;
    margin-bottom: 6px;
    margin-right: 56px; /* 与左侧 72px 边距完全对称平衡，在 820px 宽屏下两端留白和谐舒适 */
    white-space: pre-line;
    transition: max-height 0.25s ease;
}

/* 微信朋友圈风格长文折叠：限制高度 380px 宽幅展示（可完整呈现 14-16 行文字），渐变蒙版，支持图文混排 */
.moment-text.is-collapsed {
    max-height: 380px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    margin-bottom: 4px;
}

/* ================== 正文行内插图 (图文原位混排) ================== */
.moment-inline-figure {
    margin: 6px 0 8px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    cursor: zoom-in;
    transition: all 0.2s ease;
    max-width: 100%;
}

.moment-inline-figure:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.moment-inline-img-container {
    position: relative;
    width: 100%;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
}

.moment-inline-img-container img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.moment-inline-figure:hover .moment-inline-img-container img {
    transform: scale(1.01);
}

.moment-inline-zoom-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.moment-inline-figure:hover .moment-inline-zoom-badge {
    opacity: 1;
}

.moment-inline-caption {
    padding: 4px 10px;
    font-size: 11px;
    color: #64748b;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.moment-inline-caption .caption-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moment-inline-caption .caption-right {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}

.moment-text a.tweet-link {
    color: var(--link-color);
    text-decoration: none;
    word-break: break-all;
}

.moment-text a.tweet-link:hover {
    text-decoration: underline;
}

.moment-text span.tweet-hashtag {
    color: var(--accent-blue);
    cursor: pointer;
}

.moment-text span.tweet-mention {
    color: var(--accent-blue);
}

/* 全文/收起按钮 (微信朋友圈经典交互蓝) */
.expand-toggle {
    color: #576b95;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 8px;
    user-select: none;
    transition: opacity 0.15s ease;
}

.expand-toggle:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ================== 图片排版 (1图、2图、3-9图朋友圈网格 · 820px 宽幅比例重构) ================== */
.moment-images {
    margin-bottom: 12px;
}

.image-grid {
    display: grid;
    gap: 6px;
    border-radius: 8px;
    overflow: hidden;
}

/* 1 张图：自然比例，限制最大尺寸 (420px 大气画幅) */
.image-grid.images-1 {
    display: block;
    max-width: 420px;
}

.image-grid.images-1 img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
    background: #f1f5f9;
}

/* 2 张图：两列并排 (单图 165px) */
.image-grid.images-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
}

/* 3 张图：三列并排 (单图 148px) */
.image-grid.images-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 460px;
}

/* 4 张图：2x2 方块 (单图 165px) */
.image-grid.images-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
}

/* 5-9 张图：3列九宫格 (单图 148px，460px 宽度视觉饱满) */
.image-grid.images-5,
.image-grid.images-6,
.image-grid.images-7,
.image-grid.images-8,
.image-grid.images-9 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 460px;
}

.image-grid.images-2 img,
.image-grid.images-3 img,
.image-grid.images-4 img,
.image-grid.images-5 img,
.image-grid.images-6 img,
.image-grid.images-7 img,
.image-grid.images-8 img,
.image-grid.images-9 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: zoom-in;
    border-radius: 4px;
    background: #f1f5f9;
    transition: transform 0.15s ease;
}

.image-grid img:hover {
    filter: brightness(0.96);
}

/* ================== 视频播放器排版 (820px 宽幅适配) ================== */
.moment-video-container {
    margin-bottom: 12px;
    max-width: 580px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    position: relative;
}

.moment-video-element {
    width: 100%;
    max-height: 460px;
    display: block;
    object-fit: contain;
    background: #000;
}

.moment-video-element.video-failed {
    display: none;
}

.video-playback-fallback {
    position: relative;
    width: 100%;
    min-height: 180px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.video-playback-fallback:hover {
    background: #1e293b;
}

.video-playback-fallback.hidden {
    display: none;
}

.video-playback-fallback i {
    font-size: 30px;
    color: #3b82f6;
}

/* ================== 深度长文/专栏卡片排版 ================== */
.moment-article-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    margin-right: 56px; /* 与正文保持一致的右侧安全边距 */
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.moment-article-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.article-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

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

.article-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card-desc {
    font-size: 12px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ================== 底部信息栏 (时间、曝光、互动与原推) ================== */
.moment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.moment-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.moment-time {
    color: #94a3b8;
}

.moment-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.moment-origin-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.moment-origin-link:hover {
    text-decoration: underline;
}

/* 微信朋友圈右下角互动点赞按钮 */
.moment-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.moment-popup-btn {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--accent-blue);
    transition: background-color 0.15s ease;
}

.moment-popup-btn:hover {
    background: #e5e7eb;
}

.moment-popup-btn span.dot {
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
}

/* 微信弹出操作条 (赞 / 原文 / 复制) */
.moment-action-bubble {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: #4c515a;
    border-radius: 6px;
    padding: 6px 12px;
    display: none;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.moment-action-bubble.show {
    display: flex;
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.action-bubble-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
}

.action-bubble-item:hover {
    color: #38bdf8;
}

/* 互动点赞与评论数据展示框 (类似朋友圈下方的灰底框) */
.moment-interactions-box {
    margin-top: 10px;
    background: var(--wechat-bubble-bg);
    border-radius: 6px;
    padding: 8px 12px;
    position: relative;
    font-size: 13px;
    color: #4b5563;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.moment-interactions-box::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--wechat-bubble-bg);
}

.interaction-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
}

.interaction-item i {
    font-size: 12px;
}

.interaction-item.likes i {
    color: #ef4444;
}

.interaction-item.retweets i {
    color: #10b981;
}

.interaction-item.replies i {
    color: #3b82f6;
}

/* ================== 加载指示器与空状态 ================== */
.timeline-loading {
    padding: 24px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timeline-no-more {
    padding: 30px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.timeline-empty {
    padding: 80px 20px;
    text-align: center;
    color: #64748b;
}

.timeline-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* ================== 图片全屏查看模态框 (Lightbox) ================== */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrap img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    object-fit: contain;
    user-select: none;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: 1px;
}

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ================== 非 VIP 用户前 3 页限制引导卡片 ================== */
.timeline-vip-card {
    margin: 24px 20px 36px 20px;
    padding: 26px 20px 22px 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.timeline-vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.vip-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vip-card-badge i {
    color: #d97706;
}

.vip-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #78350f;
}

.vip-card-desc {
    margin: 0 auto 16px auto;
    font-size: 13px;
    line-height: 1.6;
    color: #92400e;
    max-width: 480px;
}

.vip-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.vip-upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
    transition: all 0.2s ease;
}

.vip-upgrade-link:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.vip-upgrade-link:active {
    transform: scale(0.97);
}

/* ================== 充值 VIP 弹窗提示窗 ================== */
.timeline-vip-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

.vip-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vip-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    border: 1px solid #fde68a;
    padding: 28px 24px 22px 24px;
    z-index: 10;
    overflow: hidden;
    animation: zoomInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

@keyframes zoomInModal {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vip-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 4px;
}

.vip-modal-close:hover {
    color: #334155;
}

.vip-modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.vip-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.vip-modal-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.vip-modal-subtitle {
    margin: 0 auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
    max-width: 380px;
}

.vip-modal-privileges {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.privilege-header {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privilege-header i {
    color: #d97706;
}

.privilege-item {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privilege-item:last-child {
    margin-bottom: 0;
}

.privilege-item i {
    color: #10b981;
    font-size: 11px;
    flex-shrink: 0;
}

/* 卡密兑换区 */
.vip-modal-redeem {
    margin-bottom: 18px;
}

.redeem-input-wrap {
    display: flex;
    gap: 8px;
}

.redeem-input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: monospace, sans-serif;
    text-transform: uppercase;
}

.redeem-input-wrap input:focus {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.redeem-input-wrap button {
    padding: 9px 16px;
    background: #d97706;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.redeem-input-wrap button:hover {
    background: #b45309;
}

.redeem-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

.redeem-hint strong {
    color: #d97706;
    font-weight: 700;
}

/* 弹窗底部操作区 */
.vip-modal-footer {
    display: flex;
    gap: 10px;
}

.vip-btn-cancel {
    flex: 1;
    padding: 10px 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vip-btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.vip-btn-upgrade {
    flex: 1.6;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.vip-btn-upgrade:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Toast 提示条 */
.timeline-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.timeline-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 悬浮刷新最新动态按钮 */
.timeline-floating-refresh {
    position: fixed;
    bottom: 78px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    z-index: 899;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.timeline-floating-refresh:hover {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 6px 18px rgba(7, 193, 96, 0.25);
    transform: translateY(-2px);
}

.timeline-floating-refresh:active {
    transform: scale(0.92);
}

/* 回到顶部悬浮按钮 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 640px) {
    .moments-container {
        box-shadow: none;
        max-width: 100%;
    }
    .profile-bg {
        height: 270px;
    }
    .user-avatar-container {
        top: 234px;
        right: 20px;
    }
    .avatar {
        width: 66px;
        height: 66px;
    }
    .user-details h2 {
        font-size: 18px;
    }
    .timeline-control-bar {
        top: 0;
        padding: 8px 12px;
    }
    .moment-text {
        margin-right: 32px; /* 移动端适度收敛至 32px，在小屏下兼顾易读性与舒适留白 */
    }
    .moment-article-card {
        margin-right: 32px;
    }
    .image-grid.images-1 {
        max-width: 280px;
    }
    .image-grid.images-1 img {
        max-height: 300px;
    }
    .image-grid.images-2,
    .image-grid.images-4 {
        max-width: 240px;
    }
    .image-grid.images-3,
    .image-grid.images-5,
    .image-grid.images-6,
    .image-grid.images-7,
    .image-grid.images-8,
    .image-grid.images-9 {
        max-width: 320px;
    }
    .moment-video-container {
        max-width: 100%;
    }
    .moment-inline-img-container {
        max-height: 320px;
    }
    .moment-inline-img-container img {
        max-height: 320px;
    }
    .modal-nav.prev {
        left: 10px;
    }
    .modal-nav.next {
        right: 10px;
    }
    .timeline-floating-refresh {
        bottom: 70px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .timeline-vip-card {
        margin: 16px 12px 28px 12px;
        padding: 20px 14px 18px 14px;
    }
    .vip-card-title {
        font-size: 15px;
    }
    .vip-card-desc {
        font-size: 12px;
    }
}

/* ========================================================================= */
/* 微信气泡操作条扩展：收藏推文 + 分割线                                       */
/* ========================================================================= */
.action-bubble-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 2px;
}
.text-fav-active {
    color: #f43f5e !important;
}

/* ========================================================================= */
/* 头像悬停博主资料 Lightbox 浮层卡片                                          */
/* ========================================================================= */
.creator-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 998;
    animation: creatorFadeIn 0.15s ease-out;
}

.creator-hover-lightbox {
    position: fixed;
    z-index: 999;
    width: 350px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.22), 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 18px;
    box-sizing: border-box;
    animation: creatorPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

@media (min-width: 768px) {
    /* 悬浮桥接区：连接头像右侧与资料卡之间 14px 缝隙，鼠标平滑移入不闪烁 */
    .creator-hover-lightbox::before {
        content: '';
        position: absolute;
        top: 0;
        left: -18px;
        width: 22px;
        bottom: 0;
        background: transparent;
        pointer-events: auto;
    }
}

@keyframes creatorFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes creatorPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.creator-lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
}
.creator-lightbox-close:hover {
    color: #334155;
    background-color: #f1f5f9;
}

.creator-lb-loading {
    padding: 30px 10px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.creator-lb-loading i {
    font-size: 22px;
    color: #3b82f6;
}

.creator-lb-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creator-lb-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-lb-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.creator-lb-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.creator-lb-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-lb-names {
    flex: 1;
    min-width: 0;
}
.creator-lb-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.creator-lb-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.creator-lb-badge {
    color: #1d9bf0;
    font-size: 14px;
    flex-shrink: 0;
}
.creator-lb-handle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.creator-lb-handle {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.creator-lb-x-link {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.15s;
}
.creator-lb-x-link:hover {
    color: #0f172a;
}

.creator-lb-bio {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.55;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.creator-lb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #f1f5f9;
    text-align: center;
}
.creator-lb-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.creator-lb-stat-item .stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.creator-lb-stat-item .stat-label {
    font-size: 10px;
    color: #64748b;
}

.creator-lb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.creator-lb-tag-item {
    font-size: 10.5px;
    font-weight: 500;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 2px 7px;
    border-radius: 6px;
}

.creator-lb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.creator-lb-fav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}
.creator-lb-fav-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.creator-lb-fav-btn.is-tracked {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: none;
}
.creator-lb-fav-btn.is-tracked:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
.creator-lb-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.creator-lb-detail-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* 移动端居中模态框 */
@media (max-width: 767px) {
    .creator-hover-lightbox {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        transform-origin: center center;
    }
}

/* ========================================================================= */
/* 黑夜模式 (Dark Mode / Deep Dark Theme)                                    */
/* ========================================================================= */
[data-theme="dark"],
body.dark-mode {
    --bg-main: #0b0f17;
    --card-bg: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-subtle: #1f2937;
    --wechat-bubble-bg: #1e293b;
    --accent-blue: #60a5fa;
    --link-color: #60a5fa;
}

[data-theme="dark"] body,
body.dark-mode {
    background-color: #0b0f17;
    color: #f3f4f6;
}

[data-theme="dark"] .moments-container,
body.dark-mode .moments-container {
    background: #111827;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .user-profile,
body.dark-mode .user-profile {
    background: #111827;
    border-bottom-color: #1f2937;
}

[data-theme="dark"] .avatar,
body.dark-mode .avatar {
    background: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .profile-info,
body.dark-mode .profile-info {
    background: #111827;
}

[data-theme="dark"] .profile-intro-below-avatar,
body.dark-mode .profile-intro-below-avatar {
    color: #9ca3af;
}

[data-theme="dark"] .profile-intro-below-avatar p,
body.dark-mode .profile-intro-below-avatar p {
    color: #e5e7eb;
}

/* 控制栏黑夜样式 */
[data-theme="dark"] .timeline-control-bar,
body.dark-mode .timeline-control-bar {
    background: rgba(17, 24, 39, 0.96);
    border-bottom-color: #1f2937;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sort-switch,
body.dark-mode .sort-switch {
    background: #1f2937;
    border: 1px solid #374151;
}

[data-theme="dark"] .sort-btn,
body.dark-mode .sort-btn {
    color: #9ca3af;
}

[data-theme="dark"] .sort-btn:hover:not(.active),
body.dark-mode .sort-btn:hover:not(.active) {
    color: #f3f4f6;
}

[data-theme="dark"] .sort-btn.active,
body.dark-mode .sort-btn.active {
    background: #374151;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .time-window-hint,
body.dark-mode .time-window-hint {
    color: #9ca3af;
}

/* 主题切换按钮黑夜状态 */
[data-theme="dark"] .timeline-theme-btn,
body.dark-mode .timeline-theme-btn {
    background: #1f2937;
    border-color: #374151;
    color: #fde047;
}

[data-theme="dark"] .timeline-theme-btn:hover,
body.dark-mode .timeline-theme-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #fef08a;
}

/* 分类胶囊按钮黑夜样式 */
[data-theme="dark"] .pill-item,
body.dark-mode .pill-item {
    background: #1f2937;
    color: #9ca3af;
    border-color: #374151;
}

[data-theme="dark"] .pill-item:hover,
body.dark-mode .pill-item:hover {
    border-color: #4b5563;
    color: #f3f4f6;
    background: #374151;
}

[data-theme="dark"] .pill-item.active,
body.dark-mode .pill-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* 动态单条卡片黑夜样式 */
[data-theme="dark"] .moment-item,
body.dark-mode .moment-item {
    background: #111827;
    border-bottom-color: #1f2937;
}

[data-theme="dark"] .moment-item:hover,
body.dark-mode .moment-item:hover {
    background-color: #172033;
}

[data-theme="dark"] .moment-author-name,
body.dark-mode .moment-author-name {
    color: #60a5fa;
}

[data-theme="dark"] .moment-author-handle,
body.dark-mode .moment-author-handle {
    color: #6b7280;
}

[data-theme="dark"] .moment-text,
body.dark-mode .moment-text {
    color: #e5e7eb;
}

/* 展开全文按钮 */
[data-theme="dark"] .expand-toggle,
body.dark-mode .expand-toggle {
    color: #60a5fa;
}

/* 行内图文卡片 */
[data-theme="dark"] .moment-inline-figure,
body.dark-mode .moment-inline-figure {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .moment-inline-caption,
body.dark-mode .moment-inline-caption {
    background: #1e293b;
    border-top-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .moment-inline-caption .caption-left,
body.dark-mode .moment-inline-caption .caption-left {
    color: #cbd5e1;
}

/* 深度长文卡片 */
[data-theme="dark"] .moment-article-card,
body.dark-mode .moment-article-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .moment-article-card:hover,
body.dark-mode .moment-article-card:hover {
    background: #243044;
    border-color: #60a5fa;
}

[data-theme="dark"] .article-card-title,
body.dark-mode .article-card-title {
    color: #f3f4f6;
}

[data-theme="dark"] .article-card-desc,
body.dark-mode .article-card-desc {
    color: #94a3b8;
}

[data-theme="dark"] .article-card-source,
body.dark-mode .article-card-source {
    color: #6b7280;
}

/* 标签胶囊 */
[data-theme="dark"] .moment-tag-pill,
body.dark-mode .moment-tag-pill {
    background: #1e3a5f;
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .moment-tag-pill:hover,
body.dark-mode .moment-tag-pill:hover {
    background: #2563eb;
    color: #ffffff;
}

/* 底部曝光标签与时间 */
[data-theme="dark"] .moment-time,
body.dark-mode .moment-time {
    color: #6b7280;
}

[data-theme="dark"] .moment-views-badge,
body.dark-mode .moment-views-badge {
    background: #1f2937;
    color: #9ca3af;
}

[data-theme="dark"] .moment-origin-link,
body.dark-mode .moment-origin-link {
    color: #60a5fa;
}

/* 朋友圈右下角弹出按钮与气泡 */
[data-theme="dark"] .moment-popup-btn,
body.dark-mode .moment-popup-btn {
    background: #1f2937;
    color: #60a5fa;
}

[data-theme="dark"] .moment-popup-btn:hover,
body.dark-mode .moment-popup-btn:hover {
    background: #374151;
}

[data-theme="dark"] .moment-popup-btn span.dot,
body.dark-mode .moment-popup-btn span.dot {
    background: #60a5fa;
}

[data-theme="dark"] .moment-action-bubble,
body.dark-mode .moment-action-bubble {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .moment-interactions-box,
body.dark-mode .moment-interactions-box {
    background: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .moment-interactions-box::before,
body.dark-mode .moment-interactions-box::before {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .interaction-item,
body.dark-mode .interaction-item {
    color: #9ca3af;
}

/* 博主资料 Lightbox 悬停卡片 */
[data-theme="dark"] .creator-hover-lightbox,
body.dark-mode .creator-hover-lightbox {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

[data-theme="dark"] .creator-lightbox-close,
body.dark-mode .creator-lightbox-close {
    color: #64748b;
}

[data-theme="dark"] .creator-lightbox-close:hover,
body.dark-mode .creator-lightbox-close:hover {
    color: #e2e8f0;
    background-color: #334155;
}

[data-theme="dark"] .creator-lb-name,
body.dark-mode .creator-lb-name {
    color: #f3f4f6;
}

[data-theme="dark"] .creator-lb-handle,
body.dark-mode .creator-lb-handle {
    color: #9ca3af;
}

[data-theme="dark"] .creator-lb-bio,
body.dark-mode .creator-lb-bio {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .creator-lb-stats,
body.dark-mode .creator-lb-stats {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme="dark"] .creator-lb-stat-item .stat-value,
body.dark-mode .creator-lb-stat-item .stat-value {
    color: #f3f4f6;
}

[data-theme="dark"] .creator-lb-stat-item .stat-label,
body.dark-mode .creator-lb-stat-item .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .creator-lb-tag-item,
body.dark-mode .creator-lb-tag-item {
    background: #1e3a5f;
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .creator-lb-fav-btn.is-tracked,
body.dark-mode .creator-lb-fav-btn.is-tracked {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

[data-theme="dark"] .creator-lb-detail-btn,
body.dark-mode .creator-lb-detail-btn {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .creator-lb-detail-btn:hover,
body.dark-mode .creator-lb-detail-btn:hover {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

/* VIP 引导卡片黑夜样式 */
[data-theme="dark"] .timeline-vip-card,
body.dark-mode .timeline-vip-card {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    border-color: #78350f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .vip-card-badge,
body.dark-mode .vip-card-badge {
    background: #292524;
    border-color: #78350f;
    color: #fbbf24;
}

[data-theme="dark"] .vip-card-title,
body.dark-mode .vip-card-title {
    color: #fde68a;
}

[data-theme="dark"] .vip-card-desc,
body.dark-mode .vip-card-desc {
    color: #d97706;
}

/* VIP 弹窗黑夜样式 */
[data-theme="dark"] .vip-modal-dialog,
body.dark-mode .vip-modal-dialog {
    background: #1e293b;
    border-color: #78350f;
    color: #f3f4f6;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .vip-modal-title,
body.dark-mode .vip-modal-title {
    color: #f3f4f6;
}

[data-theme="dark"] .vip-modal-subtitle,
body.dark-mode .vip-modal-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .vip-modal-privileges,
body.dark-mode .vip-modal-privileges {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .privilege-header,
body.dark-mode .privilege-header {
    color: #fde68a;
}

[data-theme="dark"] .privilege-item,
body.dark-mode .privilege-item {
    color: #cbd5e1;
}

[data-theme="dark"] .vip-redeem-input,
body.dark-mode .vip-redeem-input {
    background: #0f172a;
    border-color: #334155;
    color: #f3f4f6;
}

[data-theme="dark"] .vip-redeem-input:focus,
body.dark-mode .vip-redeem-input:focus {
    border-color: #d97706;
    background: #1e293b;
}

/* 浮动刷新与置顶按钮 */
[data-theme="dark"] .timeline-floating-refresh,
body.dark-mode .timeline-floating-refresh,
[data-theme="dark"] .back-to-top,
body.dark-mode .back-to-top {
    background: #1e293b;
    color: #60a5fa;
    border: 1px solid #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .timeline-floating-refresh:hover,
body.dark-mode .timeline-floating-refresh:hover,
[data-theme="dark"] .back-to-top:hover,
body.dark-mode .back-to-top:hover {
    background: #334155;
    color: #93c5fd;
    border-color: #475569;
}

/* Toast 提示黑夜样式 */
[data-theme="dark"] .timeline-toast,
body.dark-mode .timeline-toast {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    color: #f3f4f6;
}

/* 加载菊花与触底提示 */
[data-theme="dark"] .timeline-loading,
body.dark-mode .timeline-loading,
[data-theme="dark"] .timeline-no-more,
body.dark-mode .timeline-no-more {
    color: #64748b;
}

