/* =============================================
   主应用样式
   ============================================= */

/* ── 应用布局 ── */
.app-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: var(--bg-primary);
}
.app-inner {
    max-width: 1300px;
    width: 100%;
    display: flex;
}

/* ── 左侧导航栏 ── */
.sidebar {
    width: 68px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(16px);
    z-index: 100;
}
@media (min-width: 1280px) { .sidebar { width: 275px; } }

.sidebar-logo-btn {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 28px;
    margin-bottom: 4px;
}
.sidebar-logo-btn:hover { background: rgba(29, 155, 240, 0.1); }
.sidebar-logo-btn svg { width: 32px; height: 32px; }

.sidebar-brand {
    font-size: 22px;
    font-weight: 900;
    padding: 0 12px 10px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 管理员勋章与标识 */
.admin-badge {
    display: inline-flex;
    align-items: center;
    background: #1d9bf0;
    color: #fff;
    padding: 0px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    margin-left: 6px;
    vertical-align: middle;
}
.admin-badge svg { width: 10px; height: 10px; fill: var(--accent); }

.admin-chip {
    font-size: 10px;
    background: rgba(244, 33, 46, 0.1);
    color: var(--accent-danger);
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid rgba(244, 33, 46, 0.2);
}

/* 音乐播放器 */
.music-player {
    padding: 8px 12px;
    margin: 4px 0 12px;
}
.music-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md, 12px);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.music-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.music-btn.playing { background: rgba(29, 155, 240, 0.1); border-color: var(--accent); }

.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}
.music-waves span {
    width: 2px;
    height: 4px;
    background: var(--accent);
    border-radius: 1px;
    transition: height 0.3s;
}
.music-btn.playing .music-waves span {
    animation: musicBounce 0.6s ease-in-out infinite alternate;
}
.music-btn.playing .music-waves span:nth-child(2) { animation-delay: 0.1s; }
.music-btn.playing .music-waves span:nth-child(3) { animation-delay: 0.2s; }

@keyframes musicBounce {
    from { height: 4px; }
    to { height: 12px; }
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { font-weight: 800; }
.nav-item .nav-icon { position: relative; flex-shrink: 0; }
.nav-item .nav-label { display: none; }
@media (min-width: 1280px) { .nav-item .nav-label { display: block; } }
.nav-item svg { width: 26px; height: 26px; }

.post-btn {
    display: none;
    margin-top: 12px;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.post-btn:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(29,155,240,.35); }
@media (min-width: 1280px) { .post-btn { display: block; } }

.post-btn-sm {
    width: 48px; height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
.post-btn-sm:hover { background: var(--accent-hover); }
.post-btn-sm svg { width: 22px; height: 22px; }
@media (min-width: 1280px) { .post-btn-sm { display: none; } }

.sidebar-footer { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.theme-btn {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: none; border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}
.theme-btn:hover { background: rgba(255,255,255,.08); }
.theme-btn svg { width: 20px; height: 20px; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s;
}
.user-menu:hover { background: rgba(255,255,255,.08); }
.avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 16px;
    flex-shrink: 0;
}
.user-text { display: none; flex: 1; overflow: hidden; }
@media (min-width: 1280px) { .user-text { display: block; } }
.user-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-handle { color: var(--text-secondary); font-size: 13px; }
.user-more { display: none; color: var(--text-secondary); }
@media (min-width: 1280px) { .user-more { display: block; } }
.user-more svg { width: 18px; height: 18px; }

/* ── 主内容区 ── */
.main-content {
    flex: 1;
    max-width: 600px;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.main-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}
.light-mode .main-header {
    background: rgba(255, 255, 255, 0.8);
}
.tab-btn {
    flex: 1;
    padding: 0 16px;
    height: 56px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.tab-btn:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
.tab-btn.active { color: var(--text-primary); }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* 发帖区 */
.compose-area {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}
.compose-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.compose-textarea {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    min-height: 80px;
}
.compose-textarea::placeholder { color: var(--text-secondary); }
.compose-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.compose-tools { display: flex; gap: 4px; }
.tool-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: none; border: none;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.15s;
}
.tool-btn:hover { background: rgba(29,155,240,.1); }
.tool-btn svg { width: 18px; height: 18px; }
.compose-actions { display: flex; align-items: center; gap: 12px; }
.char-counter { font-size: 13px; color: var(--text-secondary); }
.char-counter.warn { color: var(--accent-warning); }
.char-counter.over { color: var(--accent-danger); }
.post-submit {
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.post-submit:hover { background: var(--accent-hover); }
.post-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* 帖子卡片 */
.post-item {
    padding: 16px 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
    cursor: pointer;
    display: flex;
    gap: 12px;
}
.post-item:hover { background: var(--bg-hover); }
.post-body { flex: 1; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.post-name { font-weight: 700; font-size: 15px; }
.post-handle { color: var(--text-secondary); font-size: 14px; }
.post-time { color: var(--text-secondary); font-size: 14px; }
.post-text { font-size: 15px; line-height: 1.6; margin-bottom: 12px; word-break: break-all; }
.post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 380px;
    margin-bottom: 12px;
}
.action-btn {
    display: flex; align-items: center; gap: 4px;
    color: var(--text-secondary);
    background: none; border: none;
    font-size: 13px;
    cursor: pointer;
    border-radius: 9999px;
    padding: 6px 8px;
    transition: color 0.15s, background 0.15s;
    gap: 6px;
}
.action-btn:hover { color: var(--accent); background: rgba(29,155,240,.08); }
.action-btn.green:hover { color: #00ba7c; background: rgba(0,186,124,.08); }
.action-btn.red:hover { color: var(--accent-danger); background: rgba(244,33,46,.08); }
.action-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.action-btn:active svg { transform: scale(1.4); }
.action-btn.liked { color: var(--accent-danger); font-weight: 700; }
.action-btn.liked svg { fill: var(--accent-danger); stroke: var(--accent-danger); }

.delete-post-btn {
    margin-left: auto;
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: 0.2s;
}
.delete-post-btn:hover { color: var(--accent-danger); background: rgba(244, 33, 46, 0.1); }
.delete-post-btn svg { width: 16px; height: 16px; }

.logout-nav:hover { background: rgba(244, 33, 46, 0.1) !important; }

/* ── 右侧边栏 ── */
.right-sidebar {
    width: 350px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}
@media (min-width: 1024px) { .right-sidebar { display: flex; } }

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #202327;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); background: var(--bg-primary); }
.search-bar svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }
.search-bar input {
    background: none; border: none; outline: none;
    color: var(--text-primary); font-size: 15px; flex: 1;
}
.search-bar input::placeholder { color: var(--text-secondary); }

.sidebar-card { background: #16181c; border-radius: var(--radius-lg, 16px); overflow: hidden; }
.sidebar-card-title { font-size: 20px; font-weight: 900; padding: 16px; }

.trend-item {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.15s;
}
.trend-item:hover { background: rgba(255,255,255,.04); }
.trend-cat { font-size: 12px; color: var(--text-secondary); }
.trend-tag { font-size: 15px; font-weight: 700; margin: 2px 0; }
.trend-count { font-size: 12px; color: var(--text-secondary); }
.trend-more-btn {
    padding: 12px 16px;
    color: var(--accent);
    background: none; border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-top: 1px solid var(--border-color);
    transition: background 0.15s;
}
.trend-more-btn:hover { background: rgba(255,255,255,.04); }

.suggest-item {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.suggest-item:hover { background: rgba(255,255,255,.04); }
.suggest-info { flex: 1; min-width: 0; }
.suggest-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.suggest-handle { color: var(--text-secondary); font-size: 13px; }
.follow-btn {
    padding: 6px 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.follow-btn:hover { background: #e2e2e2; }

/* ── 移动端底部导航 ── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) { .mobile-nav { display: flex; } }
.mobile-nav-inner { display: flex; justify-content: space-around; align-items: center; height: 56px; width: 100%; }
.mobile-nav-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background: none; border: none;
    color: var(--text-secondary);
    gap: 2px;
    font-size: 10px; font-weight: 600;
    transition: color 0.15s;
    position: relative;
}
.mobile-nav-btn.active { color: var(--accent); }
.mobile-nav-btn svg { width: 24px; height: 24px; }

/* 浮动发布按钮 (移动端) */
.fab {
    position: fixed;
    bottom: 76px;
    right: 20px;
    width: 56px; height: 56px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(29,155,240,.4);
    cursor: pointer;
    z-index: 190;
    transition: transform 0.2s, background 0.2s;
}
.fab:hover { background: var(--accent-hover); transform: scale(1.08) rotate(90deg); }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 767px) { .fab { display: flex; } }

/* ── 视图内容区域与空状态 ── */
.feature-empty {
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    text-align: center;
}
.empty-icon {
    width: 80px; height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.empty-icon svg { width: 40px; height: 40px; }

/* ── 个人资料视图 ── */
.profile-banner {
    height: 180px;
    background: linear-gradient(45deg, #1d9bf0, #7c3aed);
    width: 100%;
}
.profile-info-box {
    padding: 0 16px 20px;
    position: relative;
    margin-top: -50px;
}
.large-avatar {
    width: 100px; height: 100px;
    font-size: 40px;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 800;
}
.profile-info-box h2 { font-size: 24px; font-weight: 900; margin-top: 12px; }
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.profile-tab {
    flex: 1; padding: 16px; font-weight: 700; color: var(--text-secondary);
    background: none; border: none; cursor: pointer; transition: 0.2s;
    position: relative;
}
.profile-tab.active { color: var(--text-primary); }
.profile-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; background: var(--accent); border-radius: 2px;
}

/* ── 通知与私信视图样式 ── */
.notifications-content, .messages-content {
    display: flex; flex-direction: column;
}
.notification-item, .message-row {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex; gap: 16px;
    transition: background 0.2s;
    cursor: pointer;
}
.notification-item:hover, .message-row:hover { background: rgba(255,255,255,0.03); }
.light-mode .notification-item:hover, .light-mode .message-row:hover { background: rgba(0,0,0,0.02); }

.notif-icon { width: 40px; display: flex; justify-content: center; font-size: 20px; }
.notif-body { flex: 1; }
.notif-user { font-size: 15px; color: var(--text-primary); }
.notif-time { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.message-row.unread { background: rgba(29, 155, 240, 0.05); border-left: 3px solid var(--accent); }
.msg-info { flex: 1; }
.msg-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.msg-top span { font-size: 12px; color: var(--text-secondary); }
.msg-text { font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; }

/* ── 视图切换动画修正 ── */
.view-container {
    animation: fadeInSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent; /* 确保不覆盖全局背景 */
}
.hidden { display: none !important; }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* 帖子操作按钮颜色增强 */
.action-btn.comment:hover { color: #1d9bf0; background: rgba(29, 155, 240, 0.1); }
.action-btn.retweet:hover { color: #00ba7c; background: rgba(0, 186, 124, 0.1); }
.action-btn.heart.active { color: #f91880 !important; }
.action-btn.heart:hover { color: #f91880; background: rgba(249, 24, 128, 0.1); }
.action-btn.share:hover { color: #1d9bf0; background: rgba(29, 155, 240, 0.1); }

/* ── 管理后台 (Admin View) ── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; padding: 20px;
}
.admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}
.admin-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex; align-items: center; gap: 8px;
    color: var(--accent);
}
#announcement-text {
    width: 100%; margin-bottom: 12px; background: rgba(255,255,255,0.05); padding: 12px;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; resize: none;
}
.user-table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th { text-align: left; padding: 12px; color: var(--text-secondary); font-size: 13px; }
.user-table td { padding: 12px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.ban-btn {
    padding: 6px 12px; border-radius: 8px; background: rgba(244, 33, 46, 0.1);
    color: var(--accent-danger); font-size: 12px; font-weight: 700;
}
.ban-btn:hover { background: var(--accent-danger); color: #fff; }
.unban-btn {
    padding: 6px 12px; border-radius: 8px; background: rgba(0, 186, 124, 0.1);
    color: var(--accent-success); font-size: 12px; font-weight: 700;
}

/* 封号拦截视觉 */
.banned-notice {
    text-align: center; padding: 40px; color: var(--accent-danger); font-weight: 900;
}

/* ── 发现/探索页面 极致 UI ── */
.view-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-color);
}
.view-title { font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.view-subtitle { color: var(--text-secondary); font-size: 15px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(29, 155, 240, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.news-card:hover::before { opacity: 1; }

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.news-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-alpha);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-icon svg { width: 28px; height: 28px; }

.news-info { flex: 1; }
.news-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--text-primary); }
.news-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

.news-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ── 全局 Toast 提示 ── */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
}
.toast.show {
    bottom: 30px;
    opacity: 1;
}
.toast.success { background: rgba(16, 185, 129, 0.9); border-color: rgba(16, 185, 129, 0.3); }
.toast.error { background: rgba(225, 29, 72, 0.9); border-color: rgba(225, 29, 72, 0.3); }
.toast.info { background: rgba(29, 155, 240, 0.9); border-color: rgba(29, 155, 240, 0.3); }
.toast-icon { display: flex; align-items: center; }
.toast-icon svg { width: 18px; height: 18px; }

/* ── 加载动画 (Spinner) ── */
.spinner, .spin {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}
.loading-wrap {
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-wrap .spin {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(29, 155, 240, 0.2);
    border-top-color: var(--accent);
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

/* ── 骨架屏 (Skeleton Loading) ── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}
.light-mode .skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 75%);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-post {
    padding: 16px; border-bottom: 1px solid var(--border-color);
    display: flex; gap: 12px;
}
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.skeleton-content { flex: 1; }
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: 2px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.mid { width: 80%; }
.skeleton-line.long { width: 100%; }
