/* CSS 变量 - 西部计划志愿红色主题 */
:root {
    --primary-red: #E53935;
    --primary-red-dark: #C62828;
    --primary-red-light: #EF5350;
    --accent-red: #FF5252;
    --secondary-red: #D32F2F;
    --light-red: #FFCDD2;
    --pale-red: #FFEBEE;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-hover: rgba(229, 57, 53, 0.08);

    --text-primary: #212121;
    --text-secondary: #616161;
    --text-muted: #9E9E9E;
    --text-light: #BDBDBD;

    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 4px 12px rgba(229, 57, 53, 0.2);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --qq-color: #12B7F5;
    --wechat-color: #07C160;
}

/* 全局样式重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb { background: var(--primary-red-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red); }

/* ==================== 顶部横幅 ==================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    padding: 60px 24px 80px;
    overflow: hidden;
    text-align: center;
}

.hero-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero-icons { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 0 auto 20px; }

.hero-icon {
    width: 80px; height: 80px; padding: 15px; border-radius: 50%;
    backdrop-filter: blur(10px); transition: transform var(--transition-normal);
}
.hero-icon:hover { transform: scale(1.05); }
.hero-icon-volunteer, .hero-icon-badge {
    background: rgba(255,255,255,1); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-icon img { width: 100%; height: 100%; object-fit: contain; }

.hero-title {
    font-size: 42px; font-weight: 900; color: white; margin-bottom: 12px;
    letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.95); margin-bottom: 32px;
    font-weight: 400; letter-spacing: 3px;
}
.slogan {
    display: inline-block; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); padding: 16px 32px;
    border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,0.2);
}
.slogan-text { font-size: 16px; color: white; font-weight: 500; letter-spacing: 1px; line-height: 1.8; }

/* ==================== 顶部导航栏 ==================== */
.header {
    position: sticky; top: 0; background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light); z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-content {
    max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; width: 280px; }
.logo-icon { width: 32px; height: 32px; object-fit: contain; }
.logo span { font-size: 20px; font-weight: 700; color: var(--primary-red); letter-spacing: 1px; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.search-box { position: relative; width: 205px; }
.search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-muted);
}
.search-box input {
    width: 100%; padding: 10px 16px 10px 42px;
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); color: var(--text-primary); font-size: 14px;
    transition: all var(--transition-normal);
}
.search-box input:focus {
    outline: none; border-color: var(--primary-red); background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.search-box input::placeholder { color: var(--text-muted); }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: none; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all var(--transition-normal); font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary-red); color: white; }
.btn-primary:hover { background: var(--primary-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--primary-red-light); color: var(--primary-red); }
.btn-danger { background: var(--primary-red); color: white; }
.btn-danger:hover { background: var(--primary-red-dark); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon {
    width: 40px; height: 40px; padding: 0; display: flex; align-items: center;
    justify-content: center; background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer;
    transition: all var(--transition-normal);
}
.btn-icon:hover { background: var(--bg-hover); border-color: var(--primary-red); color: var(--primary-red); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ==================== 主容器布局 ==================== */
.main-container {
    display: flex; max-width: 1400px; margin: 0 auto; padding: 24px; gap: 24px;
}

/* ==================== 侧边栏 ==================== */
.sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.sidebar-section {
    background: var(--bg-primary); border-radius: var(--radius-lg); padding: 20px;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.sidebar-title {
    display: flex; align-items: center; gap: 8px; font-size: 14px;
    font-weight: 600; color: var(--primary-red); margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid var(--light-red);
}
.sidebar-title svg { width: 18px; height: 18px; }

/* 用户卡片 */
.user-card-section { padding: 0; overflow: hidden; }
.user-card { padding: 24px; text-align: center; }
.user-card-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
    background: var(--light-red); display: flex; align-items: center;
    justify-content: center; border: 3px solid var(--primary-red-light);
    overflow: hidden; color: var(--primary-red);
}
.user-card-avatar svg { width: 40px; height: 40px; }
.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.user-card-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* 导航列表 */
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-normal);
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: var(--pale-red); border-left: 3px solid var(--primary-red); }
.nav-item svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.nav-item.active svg { color: var(--primary-red); }
.nav-item span { font-size: 14px; color: var(--text-primary); }
.nav-item.active span { color: var(--primary-red); font-weight: 500; }

/* 统计卡片 */
.stats-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-item { text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--primary-red); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* 活跃用户 */
.active-users { display: flex; flex-direction: column; gap: 12px; }
.active-user-item {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
    cursor: pointer; transition: all var(--transition-fast);
}
.active-user-item:hover { opacity: 0.8; }
.active-user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--light-red);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 14px; font-weight: 600; color: var(--primary-red); overflow: hidden;
}
.active-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.active-user-name { font-size: 14px; color: var(--text-primary); font-weight: 500; }
/* 头像初始字占位（通用） */
.avatar-initial {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 28px; font-weight: 700; color: var(--primary-red);
    position: absolute; top: 0; left: 0; z-index: 0;
}
.avatar-initial.hide { display: none !important; }
.user-card-avatar { position: relative; }
.user-card-avatar img {
    width: 100%; height: 100%; object-fit: cover;
    position: relative; z-index: 1;
}
/* 活跃用户与发帖区头像内的初始字（非绝对定位） */
.active-user-avatar,
.composer-avatar {
    position: relative;
}
.active-user-avatar .avatar-initial,
.composer-avatar .avatar-initial {
    position: static; font-size: 14px; font-weight: 600;
}

/* 热门标签 */
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag {
    padding: 6px 14px; background: var(--pale-red); color: var(--primary-red);
    border-radius: 20px; font-size: 13px; cursor: pointer;
    transition: all var(--transition-fast); border: 1px solid transparent;
}
.hot-tag:hover { background: var(--light-red); border-color: var(--primary-red-light); }

/* 关于 */
.about-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

/* ==================== 主内容区 ==================== */
.main-content { flex: 1; min-width: 0; max-width: 640px; }

/* ==================== 发帖区 ==================== */
.post-composer {
    background: var(--bg-primary); border-radius: var(--radius-lg);
    padding: 20px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    margin-bottom: 24px; display: flex; gap: 16px;
}
.composer-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--light-red); display: flex; align-items: center;
    justify-content: center; color: var(--primary-red); overflow: hidden;
    position: relative;
}
.composer-avatar svg { width: 24px; height: 24px; }
.composer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-body { flex: 1; }

.composer-input {
    min-height: 60px; padding: 12px 16px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-size: 15px; line-height: 1.6;
    color: var(--text-primary); background: var(--bg-tertiary); outline: none;
    transition: all var(--transition-normal); cursor: text;
}
.composer-input:empty::before {
    content: attr(data-placeholder); color: var(--text-muted); pointer-events: none;
}
.composer-input:focus {
    border-color: var(--primary-red); background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.composer-input[contenteditable="false"] {
    background: var(--bg-secondary); cursor: pointer;
}
.composer-input[contenteditable="false"]:hover { background: var(--bg-hover); }

.composer-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
}
.composer-actions { display: flex; align-items: center; gap: 8px; }
.composer-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    background: none; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast); font-family: inherit;
}
.composer-btn svg { width: 18px; height: 18px; }
.composer-btn:hover { border-color: var(--primary-red); color: var(--primary-red); background: var(--pale-red); }
.composer-tag {
    padding: 6px 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-secondary); background: var(--bg-primary);
    cursor: pointer; font-family: inherit;
}
.composer-tag:focus { outline: none; border-color: var(--primary-red); }

.composer-preview {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.composer-preview-item {
    position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm);
    overflow: hidden; border: 2px solid var(--border-color);
}
.composer-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.composer-preview-remove {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
    background: var(--primary-red); color: white; border: none; border-radius: 50%;
    font-size: 14px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; line-height: 1;
}
.composer-preview-remove:hover { background: var(--primary-red-dark); }
.composer-limit-hint {
    width: 100%; text-align: center; font-size: 12px; color: var(--text-muted);
    padding: 8px 0; border-top: 1px dashed var(--border-light); margin-top: 4px;
}
.composer-btn.disabled {
    opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* ==================== 动态卡片 ==================== */
.feed-list { display: flex; flex-direction: column; gap: 20px; }

.post-card {
    background: var(--bg-primary); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: all var(--transition-normal);
    animation: fadeInUp 0.4s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); }

/* 骨架屏（Skeleton Loading） */
.skeleton-container { padding: 8px; }
.skeleton-card { pointer-events: none; }
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, #e8e8e8 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line { height: 13px; border-radius: 4px; }
.skeleton-img { height: 160px; border-radius: 8px; }
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-header {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
}
.post-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--light-red); display: flex; align-items: center;
    justify-content: center; font-size: 18px; font-weight: 600;
    color: var(--primary-red); overflow: hidden;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-user-info { flex: 1; }
.post-username { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.post-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.post-tag {
    padding: 2px 8px; background: var(--pale-red); color: var(--primary-red);
    border-radius: 10px; font-size: 11px; font-weight: 500;
}
.post-more {
    width: 32px; height: 32px; border: none; background: none;
    color: var(--text-muted); cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.post-more:hover { background: var(--bg-hover); color: var(--primary-red); }
.post-more svg { width: 20px; height: 20px; }

.post-content { padding: 0 20px 12px; }
.post-text { font-size: 15px; line-height: 1.7; color: var(--text-primary); word-break: break-word; }

/* 图片网格 */
.post-images { padding: 0 20px 12px; }
.post-images-grid {
    display: grid; gap: 6px; border-radius: var(--radius-md); overflow: hidden;
}
.post-images-grid.cols-1 { grid-template-columns: 1fr; max-width: 400px; }
.post-images-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.post-images-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-images-grid.cols-4 { grid-template-columns: 1fr 1fr; }
.post-images-grid.cols-5,
.post-images-grid.cols-6 { grid-template-columns: 1fr 1fr 1fr; }

.post-image-item {
    aspect-ratio: 1; cursor: pointer; overflow: hidden;
    transition: all var(--transition-fast);
}
.post-image-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition-normal);
}
.post-image-item:hover img { transform: scale(1.05); }
.post-images-grid.cols-1 .post-image-item { aspect-ratio: auto; }
.post-images-grid.cols-1 .post-image-item img { max-height: 400px; object-fit: contain; background: var(--bg-tertiary); }

/* 互动栏 */
.post-actions {
    display: flex; align-items: center; padding: 8px 20px;
    border-top: 1px solid var(--border-light);
}
.post-action-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: none; border: none; font-size: 14px; color: var(--text-secondary);
    cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition-fast);
    font-family: inherit;
}
.post-action-btn svg { width: 20px; height: 20px; }
.post-action-btn:hover { background: var(--bg-hover); color: var(--primary-red); }
.post-action-btn.liked { color: var(--primary-red); }
.post-action-btn.liked svg { fill: var(--primary-red); }
.post-action-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.post-action-btn.disabled:hover { background: none; color: var(--text-secondary); }
.post-action-btn-del { color: var(--text-muted); padding: 8px 10px; }
.post-action-btn-del:hover { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; }
.post-action-btn-del svg { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.post-action-spacer { flex: 1; }

/* 评论区（酷安风格） */
.post-comments-section { padding: 0 20px 16px; }

.post-comment-list { border-top: 1px solid var(--border-light); padding-top: 8px; }

/* 顶级评论容器 */
.comment-item { margin-bottom: 10px; }
.comment-main { display: flex; gap: 10px; padding: 8px 0; }
.comment-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--light-red); display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 600;
    color: var(--primary-red); overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content { flex: 1; min-width: 0; }
.comment-name { font-weight: 600; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; }
.comment-text { color: var(--text-primary); font-size: 14px; line-height: 1.6; word-break: break-word; }
.comment-text[contenteditable="true"] {
    background: #fff; border: 1px solid var(--primary-red); border-radius: 4px;
    padding: 4px 8px; outline: none; min-height: 24px;
}
.comment-footer { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-actions { display: inline-flex; gap: 10px; }
.comment-act { cursor: pointer; font-size: 12px; color: var(--text-muted); }
.comment-act:hover { color: var(--primary-red); }
.comment-act-del:hover { color: #ff4d4f; }
.comment-edit-actions { margin-left: 8px; display: inline-flex; align-items: center; gap: 10px; }
.comment-edit-actions .comment-act { padding: 3px 8px; border-radius: 4px; font-size: 12px; color: var(--text-secondary); }
.comment-edit-actions .comment-act:hover { background: var(--bg-hover); color: var(--primary-red); }

/* 回复容器 */
.comment-replies {
    background: var(--bg-tertiary); border-radius: 8px; padding: 6px 0;
    margin-top: 6px; margin-left: 0;
}
.comment-replies.collapsed .comment-reply-item:nth-child(-n+2) { display: flex; }
.comment-replies.collapsed .comment-reply-item { display: none; }
.comment-reply-item {
    display: flex; gap: 8px; padding: 6px 12px; font-size: 13px;
}
.reply-avatar { width: 24px; height: 24px; font-size: 10px; flex-shrink: 0; }
.reply-content { flex: 1; min-width: 0; }
.reply-name-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.reply-name-row .comment-name { font-size: 13px; }
.reply-to-tag { font-size: 12px; color: var(--primary-red); }
.reply-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; word-break: break-word; margin-top: 1px; }
.reply-meta { margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reply-time { font-size: 11px; color: var(--text-muted); }
.reply-actions { display: inline-flex; gap: 8px; }

/* 回复折叠展开 */
.replies-toggle {
    text-align: center; padding: 6px 12px; cursor: pointer;
    font-size: 12px; color: var(--primary-red); font-weight: 500;
}
.replies-toggle:hover { opacity: 0.8; }

/* 回复表单 */
.comment-reply-box { margin-top: 4px; }
.reply-inline-box { margin: 2px 0 0 0; }
.reply-form { border-left: 2px solid var(--border-light); padding-left: 10px; margin: 4px 0; }
.reply-form-header { font-size: 12px; color: var(--primary-red); margin-bottom: 4px; }
.reply-form-body { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reply-input {
    flex: 1; min-width: 120px; padding: 6px 12px; border: 1px solid var(--border-color);
    border-radius: 16px; font-size: 13px; outline: none; font-family: inherit;
    background: var(--bg-tertiary);
}
.reply-input:focus { border-color: var(--primary-red); }
.reply-form-actions { display: flex; gap: 6px; }
.reply-cancel, .reply-submit {
    padding: 4px 14px; border: none; border-radius: 14px; font-size: 12px;
    cursor: pointer; font-family: inherit;
}
.reply-cancel { background: var(--bg-hover); color: var(--text-secondary); }
.reply-submit { background: var(--primary-red); color: #fff; }
.reply-submit:hover { opacity: 0.9; }
.reply-cancel:hover { background: var(--border-light); }

/* 评论输入 */
.comment-input-wrap {
    display: flex; gap: 8px; padding-top: 12px;
    border-top: 1px solid var(--border-light); margin-top: 8px;
}
.comment-input {
    flex: 1; padding: 8px 14px; border: 1px solid var(--border-color);
    border-radius: 20px; font-size: 14px; outline: none;
    background: var(--bg-tertiary); font-family: inherit;
    transition: all var(--transition-normal);
}
.comment-input:focus {
    border-color: var(--primary-red); background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.comment-input::placeholder { color: var(--text-muted); }
.comment-submit {
    padding: 8px 16px; background: var(--primary-red); color: white; border: none;
    border-radius: 20px; font-size: 14px; cursor: pointer; font-family: inherit;
    transition: all var(--transition-fast);
}
.comment-submit:hover { background: var(--primary-red-dark); }
.comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 20px; text-align: center; background: var(--bg-primary);
    border-radius: var(--radius-lg); border: 2px dashed var(--border-color);
}
.empty-state svg { width: 80px; height: 80px; color: var(--light-red); margin-bottom: 24px; }
.empty-state h3 { font-size: 24px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* 加载更多 */
.load-more { text-align: center; padding: 24px 0; }

/* ==================== 模态框 ==================== */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; }
.modal.active { display: flex; align-items: center; justify-content: center; }

.modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.modal-content {
    position: relative; background: var(--bg-primary); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
    max-width: 600px; width: 90%; max-height: 90vh; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-small { max-width: 440px; }
.modal-full { max-width: 700px; max-height: 95vh; }
.modal-fullscreen { max-width: 800px; width: 90vw; height: auto; background: var(--bgc); }
.modal-fullscreen .preview-container {
    width: 100%; display: flex; align-items: center;
    justify-content: center; padding: 32px;
}
.modal-fullscreen .preview-container img {
    max-width: 100%; max-height: 80vh; width: auto; height: auto;
    object-fit: contain; border-radius: 10px;
}
.modal-fullscreen .modal-close {
    position: absolute; top: 32px; right: 32px;
}

/* ==================== 图片预览（缩放与拖拽） ==================== */
.modal-image-preview {
    position: relative; background: transparent; border-radius: 0;
    max-width: 100vw; width: 100vw; height: 100vh; max-height: 100vh;
    margin: 0; border: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.image-preview-wrapper {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: grab; user-select: none;
    -webkit-user-select: none; touch-action: none;
}
.image-preview-wrapper:active { cursor: grabbing; }
.image-preview-wrapper img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; border-radius: 0;
    transition: transform 0.12s ease-out;
    will-change: transform; pointer-events: none;
    transform-origin: center center;
    backface-visibility: hidden;
}
.image-preview-wrapper img.dragging {
    transition: none !important;
}
.image-preview-wrapper img.zooming {
    transition: transform 0.08s ease-out;
}
.image-preview-toolbar {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px; padding: 8px 16px; z-index: 10;
}
.preview-tool-btn {
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%; color: #fff; cursor: pointer;
    transition: all 0.2s; font-size: 0;
}
.preview-tool-btn:hover { background: rgba(255,255,255,0.25); }
.preview-tool-btn:active { transform: scale(0.9); }
.preview-tool-btn svg { width: 20px; height: 20px; }
.preview-zoom-level {
    font-size: 12px; color: rgba(255,255,255,0.7);
    min-width: 40px; text-align: center; font-variant-numeric: tabular-nums;
}
.preview-close-btn {
    position: absolute !important; top: 16px !important; right: 16px !important;
    background: rgba(0,0,0,0.4) !important; color: #fff !important;
    width: 40px !important; height: 40px !important; border-radius: 50% !important;
    z-index: 10;
}
.preview-close-btn:hover { background: rgba(229,57,53,0.8) !important; }
/* 毛玻璃效果覆盖层 */
.modal-image-preview .modal-overlay {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* 左右导航按钮 */
.preview-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 15; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.35); border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.preview-nav-btn:hover { background: rgba(255,255,255,0.2); }
.preview-nav-btn:active { transform: translateY(-50%) scale(0.9); }
.preview-nav-btn svg { width: 28px; height: 28px; }
.preview-nav-btn.disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.preview-nav-prev { left: 16px; }
.preview-nav-next { right: 16px; }
/* 图片计数器 */
.preview-counter {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 15; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; font-weight: 500; padding: 4px 14px;
    border-radius: 12px; letter-spacing: 0.5px;
}
/* PC端预览容器缩小为屏幕1/3 */
@media (min-width: 769px) {
    .modal-image-preview {
        max-width: 58vw; width: 58vw; height: 58vh; max-height: 58vh;
        border-radius: 16px;
    }
    .preview-nav-btn { width: 40px; height: 40px; }
    .preview-nav-btn svg { width: 24px; height: 24px; }
}
@media (max-width: 768px) {
    .image-preview-toolbar { bottom: 16px; padding: 6px 12px; gap: 6px; }
    .preview-tool-btn { width: 32px; height: 32px; }
    .preview-tool-btn svg { width: 18px; height: 18px; }
    .preview-zoom-level { font-size: 11px; min-width: 32px; }
    .preview-close-btn { top: 8px !important; right: 8px !important; width: 36px !important; height: 36px !important; }
    .preview-nav-btn { width: 36px; height: 36px; }
    .preview-nav-btn svg { width: 22px; height: 22px; }
    .preview-nav-prev { left: 8px; }
    .preview-nav-next { right: 8px; }
    .preview-counter { top: 8px; font-size: 11px; padding: 3px 10px; }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border-light);
}
.modal-header h3 { font-size: 20px; font-weight: 600; }
.modal-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    border-radius: var(--radius-sm); transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--pale-red); color: var(--primary-red); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px; overflow-y: auto; max-height: calc(90vh - 140px); }
.modal-footer {
    display: flex; gap: 12px; justify-content: flex-end; padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* ==================== 登录模态框 ==================== */
.social-login {
    display: flex; gap: 12px; margin-bottom: 20px;
}
.social-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border: none; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 500; cursor: pointer; color: white;
    transition: all var(--transition-normal); font-family: inherit;
}
.social-btn svg { width: 24px; height: 24px; }
.qq-btn { background: var(--qq-color); }
.qq-btn:hover { background: #0EA2E0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(18,183,245,0.3); }
.wechat-btn { background: var(--wechat-color); }
.wechat-btn:hover { background: #06AD56; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,193,96,0.3); }

.auth-divider {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    color: var(--text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border-color);
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.auth-form input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-size: 14px; outline: none;
    background: var(--bg-tertiary); transition: all var(--transition-normal);
    font-family: inherit;
}
.auth-form input:focus {
    border-color: var(--primary-red); background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.auth-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.auth-switch { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.auth-switch a { color: var(--primary-red); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }
.agreement { display: flex; align-items: flex-start; }
.agreement-label { display: flex !important; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; font-weight: normal !important; line-height: 1.5; }
.agreement-label input[type="checkbox"] { margin-top: 2px; width: 14px; height: 14px; cursor: pointer; accent-color: var(--primary-red); flex-shrink: 0; }
.agreement-label a { color: var(--primary-red); text-decoration: none; }
.agreement-label a:hover { text-decoration: underline; }

/* ==================== 用户操作区 ==================== */
.user-actions-logged {
    display: flex; align-items: center; gap: 12px;
}
.user-avatar-small {
    width: 36px; height: 36px; border-radius: 50%; background: var(--light-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--primary-red);
    overflow: hidden; cursor: pointer; transition: all var(--transition-fast);
}
.user-avatar-small:hover { box-shadow: 0 0 0 2px var(--primary-red); }
.user-avatar-small img { width: 100%; height: 100%; object-fit: cover; }
.btn-logout {
    height: 40px; padding: 0 16px; background: none; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-size: 13px; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition-fast); font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-logout:hover { border-color: var(--primary-red); color: var(--primary-red); }

/* ==================== Toast 提示 ==================== */
/* 网站底部备案信息 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.site-footer p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--primary-red);
}

/* ==================== 用户卡片标签 ==================== */
.user-card-tag {
    display: inline-block;
    background: var(--pale-red);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 4px;
}

/* ==================== 编辑资料模态框 ==================== */
.profile-form { display: flex; flex-direction: column; gap: 20px; }
.profile-avatar-edit {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 0 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 0;
}
.profile-avatar-preview {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--light-red); display: flex; align-items: center;
    justify-content: center; border: 3px solid var(--primary-red-light);
    overflow: hidden; color: var(--primary-red); font-size: 28px; font-weight: 700;
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-upload {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--primary-red); cursor: pointer;
    padding: 4px 12px; border-radius: var(--radius-sm);
    border: 1px dashed var(--primary-red-light); transition: all 0.2s;
}
.profile-avatar-upload:hover { background: var(--pale-red); }

/* 资料分区标题 */
.profile-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
}
.profile-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pale-red);
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-section-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* 表单行布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}
.form-row-triple {
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 600px) {
    .form-row,
    .form-row-triple {
        grid-template-columns: 1fr;
    }
}

.profile-form .form-group {
    margin-bottom: 0;
}
.profile-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.profile-form .form-group label .required {
    color: var(--primary-red);
    margin-left: 2px;
}
.profile-form .form-group input,
.profile-form .form-group select,
.profile-form .form-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
    background: var(--bg-primary); color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
    box-sizing: border-box;
}
.profile-form .form-group input:focus,
.profile-form .form-group select:focus,
.profile-form .form-group textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.profile-form .form-group select { cursor: pointer; appearance: auto; }
.profile-form .form-group textarea { resize: vertical; min-height: 60px; }
.profile-form .form-group input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}
.profile-counter {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    padding: 2px 0 0;
}
.profile-form .modal-footer {
    padding: 16px 0 0;
    gap: 8px;
}

/* 发帖话题输入框 */
.composer-topic-wrap {
    display: inline-flex;
    align-items: center;
}
.composer-topic {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    width: 120px;
    transition: border-color 0.2s;
}
.composer-topic:focus {
    border-color: var(--primary-red);
}
.composer-topic:disabled {
    background: transparent;
    cursor: default;
}
.composer-topic::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.toast-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 3000;
    display: flex; flex-direction: column; gap: 12px;
}
.toast {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px; animation: slideInRight 0.3s ease;
    min-width: 280px; border-left: 4px solid var(--primary-red);
}
.toast.success { border-left-color: #4CAF50; }
.toast.error { border-left-color: var(--primary-red); }
.toast.warning { border-left-color: #FF9800; }
.toast.info { border-left-color: #2196F3; }
.toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.toast.success .toast-icon { color: #4CAF50; }
.toast.error .toast-icon { color: var(--primary-red); }
.toast.warning .toast-icon { color: #FF9800; }
.toast.info .toast-icon { color: #2196F3; }
.toast-message { flex: 1; font-size: 14px; color: var(--text-primary); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .sidebar-right { display: none; }
    .main-container { max-width: 900px; }
}

@media (max-width: 1024px) {
    .sidebar-left { width: 240px; }
    .stats-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .main-container { flex-direction: column; }
    .sidebar-left {
        width: 100%; flex-direction: row; flex-wrap: wrap; gap: 16px;
    }
    .sidebar-left .sidebar-section { flex: 1; min-width: 250px; }
    .main-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .slogan-text { font-size: 14px; }
    .hero-icons { gap: 25px; }
    .hero-icon { width: 70px; height: 70px; padding: 14px; }
    .header-content { padding: 0 16px; }
    .search-box { width: 180px; }
    .main-container { padding: 16px; }
    .sidebar-left { flex-direction: column; }
    .sidebar-left .sidebar-section { min-width: 100%; }
    .social-login { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-banner { padding: 40px 16px 60px; }
    .hero-title { font-size: 28px; }
    .hero-icons { gap: 20px; }
    .hero-icon { width: 60px; height: 60px; padding: 12px; }
    .slogan { padding: 12px 20px; }
    .slogan-text { font-size: 13px; }
    .btn { padding: 8px 16px; font-size: 13px; }
    .search-box { display: none; }
    .main-content { max-width: 100%; }
    .post-composer { padding: 16px; gap: 10px; }
    .composer-avatar { width: 36px; height: 36px; }
    .composer-avatar svg { width: 20px; height: 20px; }
    .post-header { padding: 12px 16px; }
    .post-content { padding: 0 16px 10px; }
    .post-images { padding: 0 16px 10px; }
    .post-actions { padding: 8px 16px; }
    .post-comments-section { padding: 0 16px 12px; }
    .modal-content { width: 95%; }
    .stats-card { grid-template-columns: repeat(3, 1fr); }
    .stat-value { font-size: 20px; }
}

/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-red); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(229,57,53,0.35);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-red-dark);
    box-shadow: 0 6px 20px rgba(229,57,53,0.45);
    transform: translateY(-3px);
}
.back-to-top:active { transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; pointer-events: none; }

/* ==================== 顶部导航栏快捷分类标签（水平居中） ==================== */
.header-filter-tabs {
    display: none; /* 默认隐藏，JS 控制 */
    flex: 1; min-width: 0; height: 100%;
    align-items: center; justify-content: center;
    overflow: hidden;
}
.header-filter-tabs.visible { display: flex; }

.hft-scroll {
    display: inline-flex; align-items: center; gap: 2px;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    white-space: nowrap; max-width: 100%;
}
.hft-scroll::-webkit-scrollbar { display: none; }

.hft-item {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none; white-space: nowrap;
    flex-shrink: 0; user-select: none;
}
.hft-item:hover { color: var(--primary-red); background: var(--bg-hover); }
.hft-item.active {
    color: #fff; background: var(--primary-red);
    box-shadow: 0 2px 8px rgba(229,57,53,0.25);
}

@media (max-width: 768px) {
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .back-to-top svg { width: 18px; height: 18px; }
    .hft-item { font-size: 12px; padding: 5px 11px; }
}
@media (max-width: 480px) {
    .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
    .hft-item { font-size: 11px; padding: 4px 9px; }
}

/* ==================== 个人中心 ==================== */
/* 标签栏 */
.pc-tabs {
    display: flex; border-bottom: 1px solid var(--border-light);
    background: var(--bg-tertiary); padding: 0 16px; gap: 0;
    flex-shrink: 0; overflow-x: auto;
}
.pc-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    border-bottom: 2px solid transparent; transition: all var(--transition-fast);
    white-space: nowrap; position: relative;
}
.pc-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.pc-tab:hover { color: var(--primary-red); background: var(--bg-hover); }
.pc-tab.active { color: var(--primary-red); border-bottom-color: var(--primary-red); }
.pc-msg-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 10px; background: var(--primary-red); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 1;
}

/* 内容面板 */
.pc-body { display: flex; flex-direction: column; overflow-y: auto; }
.pc-panel { display: none; flex-direction: column; min-height: 200px; }
.pc-panel.active { display: flex; }
.pc-loading { text-align: center; color: var(--text-muted); padding: 40px 20px; font-size: 14px; }
.pc-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; font-size: 14px; }

/* 个人资料面板 */
.pc-profile-header {
    display: flex; align-items: center; gap: 20px; padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
}
.pc-avatar-wrap {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    background: var(--light-red); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pc-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pc-avatar-initial {
    font-size: 28px; font-weight: 700; color: var(--primary-red);
}
.pc-profile-meta { flex: 1; min-width: 0; }
.pc-profile-meta h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pc-profile-meta p { font-size: 13px; color: var(--text-muted); }
.pc-location { margin-top: 2px; }
.pc-profile-stats {
    display: flex; border-bottom: 1px solid var(--border-light);
}
.pc-stat {
    flex: 1; text-align: center; padding: 16px 8px;
    border-right: 1px solid var(--border-light);
}
.pc-stat:last-child { border-right: none; }
.pc-stat-val { display: block; font-size: 22px; font-weight: 700; color: var(--primary-red); }
.pc-stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pc-profile-detail { padding: 16px 20px; }
.pc-detail-row {
    display: flex; padding: 10px 0; border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.pc-detail-row:last-child { border-bottom: none; }
.pc-detail-label { width: 100px; color: var(--text-muted); flex-shrink: 0; }

/* 我的动态列表（卡片风格） */
.pc-posts-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pc-post-card {
    background: var(--bg-primary); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 16px; cursor: pointer;
    transition: all var(--transition-fast);
    animation: pcCardIn 0.3s ease both;
}
@keyframes pcCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pc-post-card:hover { border-color: var(--primary-red-light); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pc-post-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pc-post-tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: var(--light-red); color: var(--primary-red); font-size: 11px; font-weight: 500;
}
.pc-post-topic-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: var(--bg-tertiary); color: var(--text-muted); font-size: 11px;
}
/* 导航栏消息小红点 */
.pc-nav-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--primary-red); color: #fff;
    font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}

@media (max-width: 600px) {
    .pc-tab { font-size: 13px; padding: 12px 12px; }
    .pc-tab svg { width: 16px; height: 16px; }
    .pc-profile-header { flex-wrap: wrap; }
    .pc-profile-header .btn { width: 100%; margin-top: 4px; }
    .pc-detail-label { width: 80px; }
}

/* ==================== 顶部导航通知铃铛与下拉 ==================== */
.notif-bell-wrap { position: relative; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--primary-red); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
    pointer-events: none;
}
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    z-index: 2001;
}
.notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
    font-size: 14px; font-weight: 600;
}
.notif-dropdown-body { padding: 8px 0; }
.notif-dropdown-loading, .nd-empty {
    text-align: center; color: var(--text-muted); padding: 24px 16px; font-size: 13px;
}
.nd-group { padding: 0; }
.nd-group-title {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px 4px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.nd-group-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--light-red); color: var(--primary-red);
    font-size: 11px; font-weight: 600;
}
.nd-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; cursor: pointer; transition: background var(--transition-fast);
    font-size: 13px; color: var(--text-primary);
}
.nd-item:hover { background: var(--bg-hover); }
.nd-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary-red);
    flex-shrink: 0;
}

/* 通知下拉过滤栏 */
.notif-dropdown-filter {
    display: flex; justify-content: center; gap: 6px; padding: 8px 12px 4px;
    border-bottom: 1px solid var(--border-light);
}
.ndf-btn {
    padding: 4px 12px; border-radius: 12px; border: 1px solid var(--border-color);
    background: var(--bg-tertiary); color: var(--text-secondary);
    font-size: 12px; cursor: pointer; font-family: inherit;
    transition: all var(--transition-fast);
}
.ndf-btn:hover { border-color: var(--primary-red-light); color: var(--primary-red); }
.ndf-btn.active {
    background: var(--primary-red); color: #fff; border-color: var(--primary-red);
}

/* 通知项新布局 */
.nd-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.nd-item-type { font-size: 12px; flex-shrink: 0; min-width: 20px; }
.nd-item-from { font-weight: 600; font-size: 13px; flex-shrink: 0; }
.nd-item-desc { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-item-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* btn-xs 尺寸 */
.btn-xs { padding: 4px 10px; font-size: 12px; }

