/* 论坛/问答社区插件式样 */
:root {
    --primary-color: #07c160;
    --primary-dark: #06a652;
    --primary-light: #38c97c;
    --secondary-color: #576b95;
    --accent-color: #ff6b35;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --header-height: 50px;
    --mobile-nav-height: 60px;
}

/* 深色主题变量 */
.bbs-body-modern.dark {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --border-color: #444444;
    --border-light: #333333;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.bbs-body-modern {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 容器样式 */
.bbs-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    padding-bottom: var(--mobile-nav-height);
}

/* 美化标签样式 */
.bbs-topic-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.bbs-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bbs-tag-small {
    font-size: 0.7rem;
    padding: 2px 6px;
}

.bbs-tag-top {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.bbs-tag-essence {
    background: linear-gradient(135deg, #ffd93d, #ffed4e);
    color: #8a6d00;
    box-shadow: 0 2px 4px rgba(255, 217, 61, 0.3);
}

.bbs-tag-new {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
}

.bbs-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 美化版块标签 */
.bbs-forum-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(7, 193, 96, 0.2);
    transition: all 0.3s ease;
}

.bbs-forum-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
}

/* 美化帖子详情页头部信息 */
.bbs-topic-meta-tags {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.bbs-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.bbs-meta-tag:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.bbs-meta-tag i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* 用户角色标签样式 */
.bbs-role-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

.bbs-role-admin {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.bbs-role-member {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.bbs-role-guest {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

/* 等级名称徽章样式 */
.bbs-level-badge-name {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* 用户名和标签排列 */
.bbs-username-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.bbs-user-greeting-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
/* Markdown内容样式 */
.bbs-markdown-content {
    line-height: 1.7;
    word-wrap: break-word;
}

.bbs-markdown-content h1,
.bbs-markdown-content h2,
.bbs-markdown-content h3,
.bbs-markdown-content h4,
.bbs-markdown-content h5,
.bbs-markdown-content h6 {
    margin: 1.5em 0 0.5em;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
}

.bbs-markdown-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3em;
}

.bbs-markdown-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

.bbs-markdown-content h3 {
    font-size: 1.3rem;
}

.bbs-markdown-content h4 {
    font-size: 1.1rem;
}

.bbs-markdown-content h5 {
    font-size: 1rem;
}

.bbs-markdown-content h6 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bbs-markdown-content p {
    margin: 1em 0;
}

.bbs-markdown-content blockquote {
    margin: 1em 0;
    padding: 0.8em 1em;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-small);
    color: var(--text-secondary);
    font-style: italic;
}

.bbs-markdown-content blockquote p {
    margin: 0;
}

.bbs-markdown-content ul,
.bbs-markdown-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.bbs-markdown-content li {
    margin: 0.5em 0;
}

.bbs-markdown-content code {
    background: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.bbs-markdown-content pre {
    background: var(--bg-secondary);
    padding: 1em;
    border-radius: var(--radius-small);
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--border-color);
}

.bbs-markdown-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.bbs-markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: var(--bg-primary);
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.bbs-markdown-content th,
.bbs-markdown-content td {
    padding: 0.75em 1em;
    border: 1px solid var(--border-color);
    text-align: left;
}

.bbs-markdown-content th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.bbs-markdown-content tr:nth-child(even) {
    background: var(--bg-secondary);
}

.bbs-markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.bbs-markdown-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.bbs-markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-small);
    margin: 1em 0;
}

/* 移动端帖子详情页图片优化 */
@media (max-width: 768px) {
    .bbs-markdown-content img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
        border-radius: var(--radius-small);
        margin: 0.5em 0;
    }
}

.bbs-markdown-content hr {
    margin: 2em 0;
    border: none;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

/* Markdown提示 */
.bbs-markdown-tips {
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bbs-markdown-tips small {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bbs-markdown-tips i {
    font-size: 0.7rem;
}


/* PC端头部样式 */
.bbs-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.bbs-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.bbs-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.bbs-logo img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
}

.bbs-logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 移动端头部 */
.bbs-mobile-header {
    display: none;
    background: var(--bg-primary);
    height: var(--header-height);
    padding: 0 var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bbs-mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.bbs-mobile-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-mobile-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.bbs-mobile-logo img {
    height: 28px;
    width: 28px;
    border-radius: 6px;
}

.bbs-mobile-forum-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.bbs-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.bbs-header-icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-small);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.bbs-header-icon-btn:hover {
    background: var(--bg-secondary);
}

/* 用户操作区域 */
.bbs-user-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.bbs-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.bbs-user-greeting {
    font-size: 0.9rem;
}

.bbs-user-stats-mini {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    opacity: 0.9;
}

.bbs-user-dropdown {
    position: relative;
}

.bbs-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    overflow: hidden;
}

.bbs-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-user-avatar:hover {
    background: var(--primary-dark);
}

.bbs-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-sm) 0;
    min-width: 160px;
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-light);
}

.bbs-user-dropdown:hover .bbs-dropdown-menu {
    display: block;
}

.bbs-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.bbs-dropdown-item:hover {
    background: var(--bg-secondary);
}

.bbs-auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* 按钮样式 */
.bbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: var(--spacing-xs);
}

.bbs-btn-primary {
    background: var(--primary-color);
    color: white;
}

.bbs-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.bbs-btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.bbs-btn-outline:hover {
    background: var(--bg-secondary);
}

.bbs-btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.bbs-btn-light:hover {
    background: white;
}

.bbs-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.bbs-btn-secondary:hover {
    background: var(--bg-tertiary);
}

.bbs-btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.bbs-btn-block {
    width: 100%;
}

/* 移动端底部导航栏 */
.bbs-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    height: var(--mobile-nav-height);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bbs-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    gap: 4px;
    flex: 1;
    transition: all 0.3s;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.bbs-nav-item.active,
.bbs-nav-item:hover {
    color: var(--primary-color);
}

.bbs-nav-icon {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.bbs-nav-item.active .bbs-nav-icon {
    transform: translateY(-2px);
}

.bbs-nav-text {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s;
}

.bbs-nav-post {
    position: relative;
    z-index: 1001;
}

.bbs-nav-post .bbs-nav-icon {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 1.6rem !important;
    transform: translateY(-18px) !important;
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border: 3px solid var(--bg-primary) !important;
    position: absolute !important;
    top: -28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.bbs-nav-post-active .bbs-nav-icon {
    transform: translateX(-50%) !important;
    top: -28px !important;
}

.bbs-nav-post .bbs-nav-text {
    display: none !important;
}

.bbs-nav-post.active .bbs-nav-icon,
.bbs-nav-post:hover .bbs-nav-icon {
    transform: translateX(-50%) translateY(-20px) scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(7, 193, 96, 0.6) !important;
}

.bbs-nav-post-active.active .bbs-nav-icon,
.bbs-nav-post-active:hover .bbs-nav-icon {
    transform: translateX(-50%) translateY(-30px) scale(1.05) !important;
}

/* 主布局 */
.bbs-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.bbs-main-content {
    min-height: 400px;
}

/* 页面头部区域 */
.bbs-page-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.bbs-page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.bbs-page-header .bbs-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.bbs-page-header .bbs-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.bbs-page-header .bbs-breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.bbs-page-header .bbs-breadcrumb span {
    color: var(--text-primary);
}

/* 幻灯片样式 */
.bbs-slider {
    position: relative;
    height: 300px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow-light);
    max-width: 1200px;
    width: calc(100% - var(--spacing-lg) * 2);
}

.bbs-slider-container {
    position: relative;
    height: 100%;
}

.bbs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bbs-slide.active {
    opacity: 1;
}

.bbs-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.bbs-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: var(--spacing-lg);
}

.bbs-slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.bbs-slide-content p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.bbs-slider-controls {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.bbs-slider-prev,
.bbs-slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.bbs-slider-prev:hover,
.bbs-slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bbs-slider-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.bbs-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.bbs-slider-dot.active {
    background: white;
}

/* 版块网格 */
.bbs-forums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.bbs-forum-card {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bbs-forum-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.bbs-forum-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.bbs-forum-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
    flex-shrink: 0;
}

.bbs-forum-info {
    flex: 1;
}

.bbs-forum-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.bbs-forum-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.bbs-forum-title a:hover {
    color: var(--primary-color);
}

.bbs-forum-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bbs-forum-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.bbs-stat {
    text-align: center;
}

.bbs-stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.bbs-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.bbs-forum-last {
    padding-top: var(--spacing-sm);
}

.bbs-last-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbs-last-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: var(--spacing-sm);
}

.bbs-last-title:hover {
    color: var(--primary-color);
}

.bbs-last-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

/* 现代化帖子列表 */
.bbs-topics-list-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.bbs-modern-topic-item {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    gap: var(--spacing-md);
}

.bbs-modern-topic-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.bbs-modern-topic-item.has-images {
    flex-direction: column;
}

.bbs-topic-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bbs-topic-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    overflow: hidden;
}

.bbs-user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-user-info-small {
    flex: 1;
}

.bbs-username {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.bbs-post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bbs-topic-content-preview {
    flex: 1;
}

.bbs-topic-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.bbs-topic-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.bbs-topic-title a:hover {
    color: var(--primary-color);
}

.bbs-content-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.bbs-topic-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bbs-topic-stats {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.bbs-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.bbs-stat-item i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 帖子图片预览 */
.bbs-topic-images-preview {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.bbs-topic-images-preview.single-image {
    grid-template-columns: 1fr;
}

.bbs-topic-images-preview.single-image .bbs-topic-image {
    aspect-ratio: 16/9;
    max-height: 300px;
}

.bbs-topic-images-preview.single-image .bbs-topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-topic-images-preview.double-images {
    grid-template-columns: 1fr 1fr;
}

.bbs-topic-images-preview.double-images .bbs-topic-image {
    aspect-ratio: 1;
}

.bbs-topic-images-preview.multiple-images {
    grid-template-columns: repeat(3, 1fr);
}

.bbs-topic-images-preview.multiple-images .bbs-topic-image {
    aspect-ratio: 1;
}

.bbs-topic-image,
.bbs-topic-image-more {
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.bbs-topic-image img,
.bbs-topic-image-more img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bbs-topic-image:hover img {
    transform: scale(1.05);
}

.bbs-image-count {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 最新帖子区域 */
.bbs-recent-section {
    margin-bottom: var(--spacing-xl);
}

.bbs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.bbs-section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bbs-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.bbs-view-all:hover {
    text-decoration: underline;
}

.bbs-section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

/* 侧边栏样式 */
.bbs-sidebar {
    display: block;
}

.bbs-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: sticky;
    top: var(--spacing-lg);
}

.bbs-sidebar-panel {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.bbs-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

/* 用户面板 */
.bbs-user-panel {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.bbs-user-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.bbs-user-panel > * {
    position: relative;
    z-index: 1;
}

.bbs-user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.bbs-user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-user-details {
    flex: 1;
}

.bbs-user-details h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.bbs-user-credits {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.bbs-user-stats {
    display: flex;
    justify-content: space-around;
}

.bbs-user-stat {
    text-align: center;
}

.bbs-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.bbs-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.bbs-guest-panel {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.bbs-guest-panel p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.bbs-auth-buttons-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* 等级进度条 */
.bbs-level-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.bbs-progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bbs-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    background-color: var(--primary-color);
}

.bbs-progress-text {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

.bbs-level-max {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.bbs-level-max i {
    margin-right: 5px;
    color: var(--primary-color);
}

.bbs-level-max span {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* 统计网格 */
.bbs-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.bbs-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
    transition: background-color 0.3s;
}

.bbs-stat-item:hover {
    background: var(--bg-tertiary);
}

.bbs-stat-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-small);
    flex-shrink: 0;
}

.bbs-stat-info {
    flex: 1;
}

.bbs-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bbs-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 热门帖子 */
.bbs-hot-topics {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bbs-hot-topic {
    padding: var(--spacing-sm);
    border-radius: var(--radius-small);
    transition: background-color 0.3s;
}

.bbs-hot-topic:hover {
    background: var(--bg-secondary);
}

.bbs-hot-topic-title {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.bbs-hot-topic-title:hover {
    color: var(--primary-color);
}

.bbs-hot-topic-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 快速链接 */
.bbs-quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bbs-quick-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-small);
    transition: all 0.3s;
}

.bbs-quick-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.bbs-link-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* 版块统计 */
.bbs-forum-stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bbs-forum-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
}

.bbs-forum-stat .bbs-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bbs-forum-stat .bbs-stat-value {
    font-size: 1rem;
    color: var(--primary-color);
}

/* 帖子操作 */
.bbs-topic-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* 帖子内容样式 */
.bbs-topic-content {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

.bbs-post {
    margin-bottom: var(--spacing-lg);
}

.bbs-post-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.bbs-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.bbs-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-user-info {
    flex: 1;
}

.bbs-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.bbs-post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 修复帖子详情页图片显示太小问题 */
.bbs-post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.bbs-post-image {
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.bbs-post-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s;
}

.bbs-post-image img:hover {
    transform: scale(1.02);
}

/* 移动端帖子详情页图片优化 */
@media (max-width: 768px) {
    .bbs-post-image img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .bbs-post-images {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* 回复列表 */
.bbs-replies {
    margin-bottom: var(--spacing-lg);
}

.bbs-replies-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.bbs-reply {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.bbs-reply:last-child {
    margin-bottom: 0;
}

/* 回复表单 */
.bbs-reply-form {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.bbs-reply-form h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.bbs-form-group {
    margin-bottom: var(--spacing-md);
}

.bbs-form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.bbs-form-group textarea,
.bbs-form-group input[type="text"],
.bbs-form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.bbs-form-group textarea:focus,
.bbs-form-group input[type="text"]:focus,
.bbs-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.bbs-form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

/* 图片上传区域样式 */
.bbs-image-upload-area {
    position: relative;
    margin-top: var(--spacing-sm);
}

.bbs-image-input {
    display: none;
}

.bbs-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-medium);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
    position: relative;
}

.bbs-drop-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.bbs-drop-area.dragover {
    border-color: var(--primary-color);
    background: rgba(7, 193, 96, 0.1);
    transform: scale(1.02);
}

.bbs-drop-area i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    display: block;
}

.bbs-drop-area p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.bbs-drop-area span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

.bbs-image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    min-height: 50px;
}

.bbs-image-preview {
    position: relative;
    border-radius: var(--radius-small);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s;
}

.bbs-image-preview:hover {
    transform: scale(1.05);
}

.bbs-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbs-remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.bbs-remove-image:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 分页样式 */
.bbs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.bbs-page-prev,
.bbs-page-next,
.bbs-page-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.bbs-page-prev:hover,
.bbs-page-next:hover,
.bbs-page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bbs-page-current {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-small);
    font-weight: 500;
}

/* 空状态 */
.bbs-empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-muted);
}

.bbs-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.bbs-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.bbs-empty-state p {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

/* 登录提示 */
.bbs-login-prompt {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-medium);
    color: var(--text-secondary);
}

.bbs-login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.bbs-login-prompt a:hover {
    text-decoration: underline;
}

/* 图片模态框 */
.bbs-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: var(--spacing-md);
}

.bbs-modal-content-wrapper {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbs-modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-small);
    cursor: pointer;
}

.bbs-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbs-modal-caption {
    color: white;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 返回顶部按钮和主题切换按钮 */
.bbs-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    transition: all 0.3s;
}

.bbs-theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    transition: all 0.3s;
}

.bbs-back-to-top:hover,
.bbs-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 移动端按钮尺寸调整和位置修复 */
@media (max-width: 768px) {
    .bbs-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 100px;
        right: 15px;
        font-size: 1rem;
    }
    
    .bbs-theme-toggle {
        width: 44px;
        height: 44px;
        bottom: 160px;
        right: 15px;
        font-size: 1rem;
    }
}

/* 修复面包屑颜色问题 */
.bbs-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.bbs-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.bbs-breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.bbs-breadcrumb span {
    color: var(--text-primary);
}

/* 修复移动端页脚隐藏 */
@media (max-width: 768px) {
    .bbs-footer {
        display: none !important;
    }
}

/* 页脚 - 确保PC端显示 */
.bbs-footer {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.bbs-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.bbs-footer-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.bbs-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.bbs-footer-links a:hover {
    color: var(--primary-color);
}

/* 版块描述 */
.bbs-forum-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.bbs-header-actions {
    margin-top: var(--spacing-md);
}

/* 移动端搜索框 - 修复版 */
.bbs-mobile-search {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    z-index: 99;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.bbs-search-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-search-input-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
    width: 100%;
}

.bbs-search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.bbs-search-input:focus {
    border-color: var(--primary-color);
}

.bbs-search-submit {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.bbs-search-submit:hover {
    background: var(--primary-dark);
}

.bbs-search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.bbs-search-close:hover {
    background: var(--bg-secondary);
}

/* =========================== */
/* 搜索页面样式修复 */
/* =========================== */

.bbs-search-page {
    padding: var(--spacing-md) 0;
}

.bbs-search-form-container {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

.bbs-search-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.bbs-search-input-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
}

.bbs-search-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-size: 1rem;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.bbs-search-input:focus {
    border-color: var(--primary-color);
}

.bbs-search-submit {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-medium);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-search-submit:hover {
    background: var(--primary-dark);
}

/* 搜索结果样式 */
.bbs-search-results {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
}

.bbs-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.bbs-search-results-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bbs-search-results-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* 搜索提示面板 */
.bbs-search-tips {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
}

.bbs-search-tips p {
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.bbs-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.bbs-tag-link {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.bbs-tag-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* =========================== */
/* 发帖页面样式修复 */
/* =========================== */

/* 发帖页面容器 */
.bbs-post-page {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

/* 发帖表单 */
.bbs-post-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* 字符计数器 */
.bbs-char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* Markdown编辑器样式 */
.bbs-markdown-editor {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.bbs-markdown-toolbar {
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.bbs-markdown-toolbar button {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-small);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.bbs-markdown-toolbar button:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.bbs-markdown-body {
    display: flex;
    min-height: 300px;
}

.bbs-markdown-editor-area {
    flex: 1;
    padding: var(--spacing-md);
    border-right: 1px solid var(--border-color);
}

.bbs-markdown-editor-area textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
}

.bbs-markdown-preview-area {
    flex: 1;
    padding: var(--spacing-md);
    overflow: auto;
    background: var(--bg-primary);
}

/* 审核提示 */
.bbs-audit-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.bbs-audit-notice i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bbs-audit-notice h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.bbs-audit-notice p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 发帖提示样式 */
.bbs-form-tips {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.bbs-form-tips h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-form-tips h4 i {
    color: var(--primary-color);
}

.bbs-form-tips ul {
    margin: 0;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
}

.bbs-form-tips li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.bbs-form-tips li:last-child {
    margin-bottom: 0;
}

/* 帮助模态框样式 */
.bbs-help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.bbs-help-modal.show {
    display: flex;
}

.bbs-help-content {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bbs-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.bbs-help-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.bbs-help-header h3 i {
    color: var(--primary-color);
}

.bbs-help-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: background-color 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbs-help-close:hover {
    background: var(--bg-tertiary);
}

.bbs-help-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.bbs-help-body h4 {
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--spacing-sm);
}

.bbs-help-body h4:first-child {
    margin-top: 0;
}

.bbs-help-body ul {
    margin: 0 0 var(--spacing-lg) 0;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
}

.bbs-help-body li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.bbs-help-body code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.bbs-help-body p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 成功状态样式 */
.bbs-success-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.bbs-success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: #28a745;
}

.bbs-success-state h3 {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* =========================== */
/* 移动端侧边栏菜单样式修复 */
/* =========================== */

.bbs-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-medium);
    z-index: 1500;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bbs-mobile-sidebar.show {
    right: 0;
}

.bbs-mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1499;
    display: none;
}

.bbs-mobile-sidebar-overlay.show {
    display: block;
}

.bbs-mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.bbs-mobile-sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.bbs-mobile-sidebar-header > * {
    position: relative;
    z-index: 1;
}

.bbs-mobile-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.bbs-mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbs-mobile-sidebar-content {
    flex: 1;
    padding: var(--spacing-lg);
}

.bbs-mobile-user-panel {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.bbs-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.bbs-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-small);
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.bbs-mobile-nav-link:hover {
    background: var(--bg-secondary);
}

.bbs-mobile-nav-link .bbs-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.bbs-mobile-stats {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-light);
}

/* 移动端用户信息样式 */
.bbs-mobile-user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.bbs-mobile-user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-mobile-user-details h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.bbs-mobile-user-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.bbs-mobile-user-stats {
    display: flex;
    justify-content: space-around;
}

.bbs-mobile-user-stat {
    text-align: center;
}

.bbs-mobile-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.bbs-mobile-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

/* =================== 新增：等级排行榜名次勋章样式 =================== */
/* 排行榜名次勋章样式 */
.bbs-ranking-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    margin-right: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bbs-ranking-medal:hover {
    transform: scale(1.1);
}

/* 金牌样式 - 第一名 */
.bbs-medal-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8a6d00;
    border: 1px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 银牌样式 - 第二名 */
.bbs-medal-silver {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #4a4a4a;
    border: 1px solid #c0c0c0;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

/* 铜牌样式 - 第三名 */
.bbs-medal-bronze {
    background: linear-gradient(135deg, #cd7f32, #e49b5c);
    color: white;
    border: 1px solid #cd7f32;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

/* 其他名次样式 */
.bbs-medal-other {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 1px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bbs-medal-normal {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: 1px solid #95a5a6;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

/* 排行榜头像圆形样式 */
.bbs-ranking-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    box-shadow: var(--shadow-light);
}

.bbs-ranking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bbs-ranking-avatar i {
    font-size: 14px;
    color: var(--text-muted);
}

/* 排行榜前三名特殊样式 */
.bbs-ranking-top-1 .bbs-ranking-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px #ffd700;
}

.bbs-ranking-top-2 .bbs-ranking-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 0 2px #c0c0c0;
}

.bbs-ranking-top-3 .bbs-ranking-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 0 2px #cd7f32;
}

/* 排行榜项目布局 */
.bbs-ranking-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.bbs-ranking-item:hover {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.bbs-ranking-item:last-child {
    border-bottom: none;
}

.bbs-ranking-info {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

.bbs-ranking-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0; /* 确保文本溢出正常工作 */
}

.bbs-ranking-credits {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 确保用户名、勋章和标签正确排列 */
.bbs-ranking-info .bbs-username-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 防止换行 */
    gap: 4px;
    margin-bottom: 2px;
    width: 100%;
}

/* 调整用户名和勋章的布局 */
.bbs-ranking-info .bbs-ranking-medal {
    flex-shrink: 0;
}

.bbs-ranking-info .bbs-ranking-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 调整角色徽章和等级徽章的大小和位置 */
.bbs-ranking-info .bbs-role-badge,
.bbs-ranking-info .bbs-level-badge-name {
    flex-shrink: 0;
    font-size: 9px !important;
    padding: 1px 4px !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .bbs-ranking-avatar {
        width: 28px;
        height: 28px;
    }
    
    .bbs-ranking-medal {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 4px;
    }
    
    .bbs-ranking-name {
        font-size: 13px;
    }
    
    .bbs-ranking-credits {
        font-size: 11px;
    }
    
    .bbs-ranking-info .bbs-role-badge,
    .bbs-ranking-info .bbs-level-badge-name {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }
}

/* 深色主题适配 */
.bbs-body-modern.dark .bbs-ranking-item:hover {
    background-color: var(--bg-tertiary);
}

.bbs-body-modern.dark .bbs-ranking-avatar {
    background: var(--bg-tertiary);
    border-color: var(--bg-primary);
}

.bbs-body-modern.dark .bbs-medal-other {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-color: #4facfe;
}

.bbs-body-modern.dark .bbs-medal-normal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}
/* =================== 新增结束 =================== */

/* 帖子操作按钮样式 */
.bbs-like-btn, .bbs-like-reply-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbs-like-btn:hover, .bbs-like-reply-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bbs-like-btn.liked, .bbs-like-reply-btn.liked {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(7, 193, 96, 0.1);
}

.bbs-like-count {
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.bbs-like-count:hover {
    color: var(--primary-color);
}

.bbs-like-count.liked {
    color: var(--primary-color);
}

.bbs-share-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbs-share-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bbs-post-actions, .bbs-reply-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.bbs-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 等级名称徽章样式 */
.bbs-level-badge-name {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: white;
}

.bbs-username-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.bbs-user-greeting-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* 等级进度条 */
.bbs-level-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.bbs-progress-bar {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bbs-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    background: var(--primary-color);
}

.bbs-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.bbs-level-max {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.bbs-level-max i {
    margin-right: 5px;
    color: var(--primary-color);
}

.bbs-level-max span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 修复主题切换时的进度条颜色 */
.bbs-body-modern.dark .bbs-progress-bar {
    background: var(--bg-tertiary);
}

.bbs-body-modern.dark .bbs-progress-text,
.bbs-body-modern.dark .bbs-level-max span {
    color: var(--text-secondary);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .bbs-container {
        padding-bottom: var(--mobile-nav-height);
        background: var(--bg-secondary);
    }
    
    .bbs-header {
        display: none;
    }
    
    .bbs-mobile-header {
        display: block;
    }
    
    .bbs-mobile-nav {
        display: flex;
    }
    
    .bbs-main-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .bbs-sidebar {
        display: none;
    }
    
    .bbs-forums-grid {
        grid-template-columns: 1fr;
    }
    
    .bbs-slider {
        height: 200px;
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: none;
    }
    
    .bbs-slide-content h3 {
        font-size: 1.2rem;
    }
    
    .bbs-slide-content p {
        font-size: 0.9rem;
    }
    
    .bbs-form-actions {
        flex-direction: column;
    }
    
    .bbs-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bbs-pagination {
        flex-wrap: wrap;
    }
    
    .bbs-footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* 移动端内容区域优化 */
    .bbs-forum-card,
    .bbs-topic-card,
    .bbs-topic-content,
    .bbs-reply,
    .bbs-reply-form {
        background: var(--bg-primary);
        border-radius: var(--radius-medium);
        margin: var(--spacing-sm) 0;
        box-shadow: var(--shadow-light);
        border: none;
    }
    
    .bbs-topics-list {
        background: transparent;
        box-shadow: none;
        margin: 0;
    }
    
    .bbs-recent-section {
        margin: var(--spacing-lg) 0;
    }
    
    .bbs-section-header {
        padding: 0;
    }
    
    .bbs-pagination {
        margin: var(--spacing-lg) 0;
    }
    
    .bbs-modern-topic-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* 移动端图片预览优化 */
    .bbs-topic-images-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bbs-topic-images-preview.single-image {
        grid-template-columns: 1fr;
    }
    
    .bbs-topic-images-preview.single-image .bbs-topic-image {
        max-height: 200px;
    }
    
    .bbs-post-form {
        padding: var(--spacing-md);
        border-radius: var(--radius-medium);
    }
    
    .bbs-page-header h1 {
        font-size: 1.5rem;
    }
    
    /* 移动端搜索页面优化 */
    .bbs-search-form-container {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .bbs-search-input-group {
        flex-direction: column;
    }
    
    .bbs-search-options {
        justify-content: center;
    }
    
    .bbs-popular-searches {
        padding: var(--spacing-md);
    }
    
    .bbs-popular-tags {
        justify-content: center;
    }
    
    .bbs-search-results {
        padding: var(--spacing-md);
    }
    
    .bbs-search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    /* 移动端Markdown内容优化 */
    .bbs-markdown-content h1 {
        font-size: 1.5rem;
    }
    
    .bbs-markdown-content h2 {
        font-size: 1.3rem;
    }
    
    .bbs-markdown-content h3 {
        font-size: 1.1rem;
    }
    
    .bbs-markdown-content pre {
        padding: 0.8em;
        font-size: 0.9em;
    }
    
    .bbs-markdown-content table {
        font-size: 0.9em;
    }
    
    .bbs-markdown-content th,
    .bbs-markdown-content td {
        padding: 0.5em 0.8em;
    }
    
    /* 移动端Markdown编辑器优化 */
    .bbs-markdown-body {
        flex-direction: column;
        min-height: 400px;
    }
    
    .bbs-markdown-editor-area {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 200px;
    }
    
    .bbs-markdown-preview-area {
        min-height: 200px;
    }
    
    .bbs-markdown-toolbar {
        justify-content: center;
    }
    
    /* 移动端帮助模态框优化 */
    .bbs-help-content {
        margin: var(--spacing-md);
        max-height: calc(100vh - var(--spacing-lg) * 2);
    }
    
    .bbs-help-header {
        padding: var(--spacing-md);
    }
    
    .bbs-help-body {
        padding: var(--spacing-md);
    }
    
    .bbs-back-to-top, .bbs-theme-toggle {
        width: 44px;
        height: 44px;
        right: 15px;
    }

    .bbs-back-to-top {
        bottom: 100px;
    }

    .bbs-theme-toggle {
        bottom: 160px;
    }
}

/* 大屏幕适配 */
@media (min-width: 1200px) {
    .bbs-container {
        box-shadow: var(--shadow-light);
        margin: var(--spacing-md) auto;
        border-radius: var(--radius-large);
        overflow: hidden;
    }
}

/* 加载动画 */
.bbs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-secondary);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: bbs-spin 1s linear infinite;
}

@keyframes bbs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具类 */
.bbs-text-center {
    text-align: center;
}

.bbs-text-left {
    text-align: left;
}

.bbs-text-right {
    text-align: right;
}

.bbs-mt-1 { margin-top: var(--spacing-xs); }
.bbs-mt-2 { margin-top: var(--spacing-sm); }
.bbs-mt-3 { margin-top: var(--spacing-md); }
.bbs-mt-4 { margin-top: var(--spacing-lg); }
.bbs-mt-5 { margin-top: var(--spacing-xl); }

.bbs-mb-1 { margin-bottom: var(--spacing-xs); }
.bbs-mb-2 { margin-bottom: var(--spacing-sm); }
.bbs-mb-3 { margin-bottom: var(--spacing-md); }
.bbs-mb-4 { margin-bottom: var(--spacing-lg); }
.bbs-mb-5 { margin-bottom: var(--spacing-xl); }

.bbs-hidden {
    display: none !important;
}

.bbs-visible {
    display: block !important;
}

/* 安全区域适配 */
@supports(padding: max(0px)) {
    .bbs-mobile-nav {
        padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }
    
    .bbs-container {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }
    
    .bbs-back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .bbs-theme-toggle {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --border-light: #333333;
    }
    
    .bbs-btn {
        border: 2px solid;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 消息提示样式 */
.bbs-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    z-index: 2000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.bbs-message-content {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
}

.bbs-message-info .bbs-message-content {
    border-left-color: #3498db;
}

.bbs-message-success .bbs-message-content {
    border-left-color: #07c160;
}

.bbs-message-warning .bbs-message-content {
    border-left-color: #f39c12;
}

.bbs-message-error .bbs-message-content {
    border-left-color: #ff4757;
}

.bbs-message-text {
    flex: 1;
    margin-right: var(--spacing-md);
    font-weight: 500;
    color: var(--text-primary);
}

.bbs-message-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 移动端消息提示 */
@media (max-width: 768px) {
    .bbs-message {
        left: var(--spacing-md);
        right: var(--spacing-md);
        top: var(--spacing-md);
        max-width: none;
    }
}

/* 移动端菜单样式 */
.bbs-mobile-sidebar-header {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
}

.bbs-mobile-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.bbs-mobile-user-panel {
    text-align: center;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-light);
}

.bbs-mobile-user-panel .bbs-user-details {
    margin-top: 10px;
}

.bbs-mobile-user-panel .bbs-username-line {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center; 
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap; 
}

.bbs-mobile-user-panel .bbs-username-line h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap; 
}

.bbs-mobile-user-panel .bbs-user-credits {
    display: none; 
}

.bbs-mobile-user-panel .bbs-user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.bbs-mobile-user-panel .bbs-user-stat {
    text-align: center;
}

.bbs-mobile-user-panel .bbs-stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.bbs-mobile-user-panel .bbs-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.bbs-mobile-user-panel .bbs-level-progress {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.bbs-mobile-user-panel .bbs-progress-bar {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bbs-mobile-user-panel .bbs-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    background: var(--primary-color);
}

.bbs-mobile-user-panel .bbs-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.bbs-mobile-user-panel .bbs-level-max {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.bbs-mobile-user-panel .bbs-level-max i {
    margin-right: 5px;
    color: var(--primary-color);
}

.bbs-mobile-user-panel .bbs-level-max span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 角色徽章样式 */
.bbs-mobile-user-panel .bbs-role-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

/* 等级徽章样式 */
.bbs-mobile-user-panel .bbs-level-badge-name {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: white;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .bbs-mobile-user-panel .bbs-username-line {
        gap: 4px; 
    }
    
    .bbs-mobile-user-panel .bbs-username-line h4 {
        font-size: 14px; 
    }
    
    .bbs-mobile-user-panel .bbs-role-badge,
    .bbs-mobile-user-panel .bbs-level-badge-name {
        font-size: 9px; 
        padding: 1px 4px;
    }
}

.bbs-body-modern.dark .bbs-mobile-user-panel .bbs-stat-value,
.bbs-body-modern.dark .bbs-mobile-user-panel .bbs-progress-text,
.bbs-body-modern.dark .bbs-mobile-user-panel .bbs-level-max span {
    color: var(--text-primary);
}

.bbs-body-modern.dark .bbs-mobile-user-panel .bbs-stat-label {
    color: var(--text-secondary);
}

.bbs-body-modern.dark .bbs-mobile-user-panel .bbs-progress-bar {
    background: var(--bg-tertiary);
}

.bbs-back-to-top, .bbs-theme-toggle {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: none;
}

.bbs-back-to-top:hover, .bbs-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--primary-dark);
}

.bbs-back-to-top {
    bottom: 20px;
}

.bbs-theme-toggle {
    bottom: 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.bbs-theme-toggle:hover {
    background: var(--bg-secondary);
}

/* 统一按钮悬停效果 */
.bbs-like-btn:hover, 
.bbs-like-reply-btn:hover,
.bbs-share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 验证码样式 */
.bbs-captcha-container {
    margin: 15px 0;
}

.bbs-captcha-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.bbs-captcha-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 0; /* 防止flex项目溢出 */
}

.bbs-captcha-image {
    height: 40px;
    width: 120px; /* 固定宽度与图片生成一致 */
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bbs-captcha-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bbs-captcha-tip {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

/* 图片操作按钮样式 */
.bbs-image-preview {
    position: relative;
    display: inline-block;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bbs-image-preview img {
    display: block;
    max-width: 150px;
    max-height: 150px;
}

.bbs-image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.bbs-insert-image, .bbs-remove-image {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}

.bbs-insert-image:hover {
    background: #28a745;
    color: white;
}

.bbs-remove-image:hover {
    background: #dc3545;
    color: white;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .bbs-captcha-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bbs-captcha-image {
        align-self: center;
        margin-top: 5px;
    }
}





/* 
 * 论坛图片/视频板块样式修复
 * 图片板块：真正的瀑布流布局
 * 视频板块：保持现有网格布局
 * 新闻板块：图文列表布局
 */

/* === 图片板块 - 真正的瀑布流布局 === */
.bbs-image-grid-container {
    column-count: 4;
    column-gap: 20px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* 图片网格项目 */
.bbs-image-grid-item {
    display: inline-block;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
}

.bbs-image-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* === 视频板块 - 保持原有网格布局 === */
.bbs-video-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* 视频网格项目 */
.bbs-video-grid-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bbs-video-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* === 新闻板块 - 图文列表布局 === */
.bbs-news-list-container {
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.bbs-news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    min-height: 200px;
    border: 1px solid #e9ecef;
}

.bbs-news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

.bbs-news-item-left {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bbs-news-item-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.bbs-news-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    z-index: 1;
}

.bbs-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.bbs-news-item-image img.loaded {
    opacity: 1;
}

.bbs-news-item:hover .bbs-news-item-image img {
    transform: scale(1.05);
}

.bbs-news-item-right {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbs-news-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    align-self: flex-start;
}

.bbs-news-category-tag i {
    font-size: 12px;
}

.bbs-news-title {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.bbs-news-title a {
    color: #212529;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbs-news-title a:hover {
    color: #0d6efd;
}

.bbs-news-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.bbs-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #adb5bd;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.bbs-news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbs-news-meta-item i {
    font-size: 12px;
}

.bbs-news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bbs-news-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

.bbs-news-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-news-author-name {
    color: #495057;
    font-weight: 500;
}

.bbs-news-time {
    white-space: nowrap;
}

.bbs-news-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.bbs-news-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.bbs-news-stat i {
    color: #adb5bd;
    font-size: 12px;
}

.bbs-news-news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #dc3545;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === 通用样式 === */

/* 图片/缩略图容器 */
.bbs-image-grid-image,
.bbs-video-grid-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bbs-image-grid-image img,
.bbs-video-grid-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* 图片加载完成后显示 */
.bbs-image-grid-image img.loaded,
.bbs-video-grid-thumbnail img.loaded {
    opacity: 1;
}

/* 加载动画 */
.bbs-image-loading,
.bbs-video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

/* 悬停覆盖层 - 图片板块专用 */
.bbs-image-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 2;
    pointer-events: none;
}

.bbs-image-grid-item:hover .bbs-image-grid-overlay {
    opacity: 1;
}

/* 信息区域 */
.bbs-image-grid-info,
.bbs-video-grid-info {
    color: white;
    width: 100%;
}

.bbs-image-grid-title,
.bbs-video-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bbs-image-grid-meta,
.bbs-video-grid-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    opacity: 0.9;
}

.bbs-image-grid-meta i,
.bbs-video-grid-meta i {
    margin-right: 4px;
}

/* 图片板块统计信息 - 悬停时显示，透明背景 */
.bbs-image-grid-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* 将统计信息推到容器底部 */
}

.bbs-image-grid-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bbs-image-grid-stat i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

/* 视频特定样式 */
.bbs-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.bbs-video-grid-item:hover .bbs-video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.bbs-video-play-btn i {
    color: #dc3545;
    font-size: 24px;
    margin-left: 4px;
}

.bbs-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

/* 视频板块悬停覆盖层 */
.bbs-video-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
    pointer-events: none;
}

.bbs-video-grid-item:hover .bbs-video-grid-overlay {
    opacity: 1;
}

/* 视频板块统计信息（保持在图片下方） */
.bbs-video-grid-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.bbs-video-grid-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.bbs-video-grid-stat i {
    color: #adb5bd;
    font-size: 12px;
}

/* === 问答板块样式 === */
.bbs-qa-list-container {
    margin: 20px 0;
}

.bbs-qa-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.bbs-qa-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.bbs-qa-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bbs-qa-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.bbs-qa-status-unanswered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.bbs-qa-status-answered {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.bbs-qa-status-resolved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bbs-qa-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bbs-qa-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bbs-qa-title a:hover {
    color: #0d6efd;
}

.bbs-qa-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bbs-qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.bbs-qa-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    color: #495057;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bbs-qa-tag:hover {
    background: #dee2e6;
    color: #212529;
    transform: translateY(-1px);
}

.bbs-qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.bbs-qa-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbs-qa-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.bbs-qa-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-qa-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bbs-qa-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.bbs-qa-stat i {
    color: #adb5bd;
}

/* 空状态样式 */
.bbs-empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 40px auto;
}

.bbs-empty-icon {
    font-size: 64px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.bbs-empty-state h3 {
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.bbs-empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 16px;
}

/* 版块类型徽章 */
.bbs-type-image-badge,
.bbs-type-video-badge,
.bbs-type-qa-badge,
.bbs-type-news-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.bbs-type-image-badge {
    background: #e7f5ff;
    color: #0d6efd;
    border: 1px solid #b3d7ff;
}

.bbs-type-video-badge {
    background: #fff0f0;
    color: #dc3545;
    border: 1px solid #f8b2b2;
}

.bbs-type-qa-badge {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.bbs-type-news-badge {
    background: #e7f5f0;
    color: #198754;
    border: 1px solid #badbcc;
}

/* 板块类型标签样式 */
.bbs-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    margin-left: 4px;
    transition: all 0.3s ease;
}

/* 普通板块标签 */
.bbs-type-normal {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    border-color: #2980b9;
}

/* 问答板块标签 */
.bbs-type-qa {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3);
    border-color: #8e44ad;
}

/* 图片板块标签 */
.bbs-type-image {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    border-color: #c0392b;
}

/* 视频板块标签 */
.bbs-type-video {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3);
    border-color: #d35400;
}

/* 新闻板块标签 */
.bbs-type-news {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
    border-color: #27ae60;
}

/* 板块卡片上的类型标签（右上角） */
.bbs-forum-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* 深色主题适配 */
.bbs-body-modern.dark .bbs-type-tag,
.bbs-body-modern.dark .bbs-forum-type-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 帖子列表中的板块类型标签 */
.bbs-topic-tags .bbs-type-tag {
    margin-left: 0;
    margin-right: 4px;
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* 板块卡片容器调整为相对定位 */
.bbs-forum-card {
    position: relative;
    overflow: hidden;
}

/* 图片加载完成的动画 */
img.loaded {
    animation: imageLoaded 0.5s ease forwards;
}

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

/* 移除加载动画 */
.bbs-image-loading.hidden,
.bbs-video-loading.hidden,
.bbs-news-image-loading.hidden {
    display: none;
}

/* ===== 响应式设计 ===== */

/* 图片板块 - 瀑布流列数调整 */
@media (max-width: 1200px) {
    .bbs-image-grid-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .bbs-image-grid-container {
        column-count: 2; /* 移动端改为双列 */
        column-gap: 15px;
    }
    
    .bbs-image-grid-item {
        margin-bottom: 15px;
    }
    
    /* 新闻板块移动端适配 */
    .bbs-news-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .bbs-news-item-left {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .bbs-news-item-right {
        padding: 20px;
    }
    
    .bbs-news-title a {
        font-size: 20px;
    }
    
    .bbs-news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .bbs-news-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .bbs-image-grid-container {
        column-count: 2; /* 保持双列 */
        column-gap: 10px;
    }
    
    .bbs-news-item-left {
        flex: 0 0 180px;
    }
    
    .bbs-news-item-right {
        padding: 16px;
    }
    
    .bbs-news-title a {
        font-size: 18px;
    }
    
    .bbs-news-excerpt {
        font-size: 14px;
    }
}

/* 移动端小屏幕（小于400px）保持双列 */
@media (max-width: 400px) {
    .bbs-image-grid-container {
        column-count: 2; /* 改为双列 */
        column-gap: 10px;
    }
    
    /* 在小屏幕上调整统计信息的内边距 */
    .bbs-image-grid-stats {
        padding: 8px 10px;
    }
    
    .bbs-image-grid-stat {
        font-size: 11px;
    }
    
    /* 新闻板块小屏幕适配 */
    .bbs-news-item-left {
        flex: 0 0 150px;
    }
    
    .bbs-news-category-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .bbs-news-title a {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
    
    .bbs-news-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* 视频板块 - 网格列数调整 */
@media (max-width: 1200px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 15px;
    }
}

@media (max-width: 576px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 10px;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 992px) {
    .bbs-news-item-left {
        flex: 0 0 240px;
    }
    
    .bbs-news-title a {
        font-size: 20px;
    }
}

/* 
 * 图片/视频/问答/新闻板块的深色主题适配
 */

/* === 图片板块 - 真正的瀑布流布局 === */
.bbs-image-grid-container {
    column-count: 4;
    column-gap: 20px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.bbs-body-modern.dark .bbs-image-grid-container {
    background: transparent;
}

/* 图片网格项目 */
.bbs-image-grid-item {
    display: inline-block;
    width: 100%;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
}

.bbs-body-modern.dark .bbs-image-grid-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bbs-image-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

/* === 视频板块 - 网格布局 === */
.bbs-video-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.bbs-body-modern.dark .bbs-video-grid-container {
    background: transparent;
}

/* 视频网格项目 */
.bbs-video-grid-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.bbs-body-modern.dark .bbs-video-grid-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bbs-video-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

/* === 新闻板块 - 图文列表布局 === */
.bbs-news-list-container {
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.bbs-body-modern.dark .bbs-news-list-container {
    background: transparent;
}

.bbs-news-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    min-height: 200px;
    border: 1px solid var(--border-light);
}

.bbs-body-modern.dark .bbs-news-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bbs-news-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.bbs-body-modern.dark .bbs-news-item:hover {
    border-color: var(--primary-color);
}

.bbs-news-item-left {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.bbs-news-item-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.bbs-news-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    z-index: 1;
}

.bbs-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.bbs-news-item-image img.loaded {
    opacity: 1;
}

.bbs-news-item:hover .bbs-news-item-image img {
    transform: scale(1.05);
}

.bbs-news-item-right {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbs-news-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    align-self: flex-start;
}

.bbs-news-category-tag i {
    font-size: 12px;
}

.bbs-news-title {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.bbs-news-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbs-news-title a:hover {
    color: var(--primary-color);
}

.bbs-news-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.bbs-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.bbs-news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbs-news-meta-item i {
    font-size: 12px;
}

.bbs-news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bbs-news-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

.bbs-news-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-news-author-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.bbs-news-time {
    white-space: nowrap;
}

.bbs-news-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.bbs-news-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.bbs-news-stat i {
    color: var(--text-muted);
    font-size: 12px;
}

.bbs-news-news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #dc3545;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bbs-body-modern.dark .bbs-news-news-badge {
    background: rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

/* === 通用样式 === */

/* 图片/缩略图容器 */
.bbs-image-grid-image,
.bbs-video-grid-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.bbs-image-grid-image img,
.bbs-video-grid-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* 图片加载完成后显示 */
.bbs-image-grid-image img.loaded,
.bbs-video-grid-thumbnail img.loaded {
    opacity: 1;
}

/* 加载动画 */
.bbs-image-loading,
.bbs-video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

/* 悬停覆盖层 - 图片板块专用 */
.bbs-image-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 2;
    pointer-events: none;
}

.bbs-image-grid-item:hover .bbs-image-grid-overlay {
    opacity: 1;
}

/* 信息区域 */
.bbs-image-grid-info,
.bbs-video-grid-info {
    color: white;
    width: 100%;
}

.bbs-image-grid-title,
.bbs-video-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bbs-image-grid-meta,
.bbs-video-grid-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    opacity: 0.9;
}

.bbs-image-grid-meta i,
.bbs-video-grid-meta i {
    margin-right: 4px;
}

/* 图片板块统计信息 */
.bbs-image-grid-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.bbs-body-modern.dark .bbs-image-grid-stats {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bbs-image-grid-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bbs-image-grid-stat i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

/* 视频特定样式 */
.bbs-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    pointer-events: none;
}

.bbs-body-modern.dark .bbs-video-play-btn {
    background: rgba(255, 255, 255, 0.8);
}

.bbs-video-grid-item:hover .bbs-video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.bbs-video-play-btn i {
    color: #dc3545;
    font-size: 24px;
    margin-left: 4px;
}

.bbs-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

/* 视频板块悬停覆盖层 */
.bbs-video-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
    pointer-events: none;
}

.bbs-video-grid-item:hover .bbs-video-grid-overlay {
    opacity: 1;
}

/* 视频板块统计信息 */
.bbs-video-grid-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.bbs-body-modern.dark .bbs-video-grid-stats {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.bbs-video-grid-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bbs-video-grid-stat i {
    color: var(--text-muted);
    font-size: 12px;
}

/* === 问答板块样式 === */
.bbs-qa-list-container {
    margin: 20px 0;
}

.bbs-body-modern.dark .bbs-qa-list-container {
    background: transparent;
}

.bbs-qa-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.bbs-body-modern.dark .bbs-qa-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bbs-qa-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.bbs-body-modern.dark .bbs-qa-item:hover {
    border-color: var(--primary-color);
}

.bbs-qa-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bbs-qa-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.bbs-qa-status-unanswered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.bbs-body-modern.dark .bbs-qa-status-unanswered {
    background: rgba(255, 243, 205, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 234, 167, 0.3);
}

.bbs-qa-status-answered {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.bbs-body-modern.dark .bbs-qa-status-answered {
    background: rgba(209, 236, 241, 0.2);
    color: #4dd0e1;
    border: 1px solid rgba(190, 229, 235, 0.3);
}

.bbs-qa-status-resolved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bbs-body-modern.dark .bbs-qa-status-resolved {
    background: rgba(212, 237, 218, 0.2);
    color: #69f0ae;
    border: 1px solid rgba(195, 230, 203, 0.3);
}

.bbs-qa-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bbs-qa-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bbs-qa-title a:hover {
    color: var(--primary-color);
}

.bbs-qa-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bbs-qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.bbs-qa-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bbs-qa-tag:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.bbs-qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.bbs-body-modern.dark .bbs-qa-meta {
    border-top: 1px solid var(--border-color);
}

.bbs-qa-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbs-qa-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.bbs-qa-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-qa-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bbs-qa-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.bbs-qa-stat i {
    color: var(--text-muted);
}

/* 空状态样式 */
.bbs-empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 40px auto;
}

.bbs-empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bbs-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.bbs-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
}

/* 版块类型徽章 */
.bbs-type-image-badge,
.bbs-type-video-badge,
.bbs-type-qa-badge,
.bbs-type-news-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.bbs-type-image-badge {
    background: #e7f5ff;
    color: #0d6efd;
    border: 1px solid #b3d7ff;
}

.bbs-body-modern.dark .bbs-type-image-badge {
    background: rgba(13, 110, 253, 0.2);
    color: #6ea8fe;
    border: 1px solid rgba(110, 168, 254, 0.3);
}

.bbs-type-video-badge {
    background: #fff0f0;
    color: #dc3545;
    border: 1px solid #f8b2b2;
}

.bbs-body-modern.dark .bbs-type-video-badge {
    background: rgba(220, 53, 69, 0.2);
    color: #ea868f;
    border: 1px solid rgba(234, 134, 143, 0.3);
}

.bbs-type-qa-badge {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.bbs-body-modern.dark .bbs-type-qa-badge {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid rgba(173, 181, 189, 0.3);
}

.bbs-type-news-badge {
    background: #e7f5f0;
    color: #198754;
    border: 1px solid #badbcc;
}

.bbs-body-modern.dark .bbs-type-news-badge {
    background: rgba(25, 135, 84, 0.2);
    color: #75b798;
    border: 1px solid rgba(117, 183, 152, 0.3);
}

/* 图片加载完成的动画 */
img.loaded {
    animation: imageLoaded 0.5s ease forwards;
}

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

/* ===== 响应式设计 ===== */

/* 图片板块 - 瀑布流列数调整 */
@media (max-width: 1200px) {
    .bbs-image-grid-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .bbs-image-grid-container {
        column-count: 2;
        column-gap: 15px;
    }
    
    .bbs-image-grid-item {
        margin-bottom: 15px;
    }
    
    /* 新闻板块移动端适配 */
    .bbs-news-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .bbs-news-item-left {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .bbs-news-item-right {
        padding: 20px;
    }
    
    .bbs-news-title a {
        font-size: 20px;
    }
    
    .bbs-news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .bbs-news-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .bbs-image-grid-container {
        column-count: 2;
        column-gap: 10px;
    }
    
    .bbs-news-item-left {
        flex: 0 0 180px;
    }
    
    .bbs-news-item-right {
        padding: 16px;
    }
    
    .bbs-news-title a {
        font-size: 18px;
    }
    
    .bbs-news-excerpt {
        font-size: 14px;
    }
}

/* 移动端小屏幕（小于400px）保持双列 */
@media (max-width: 400px) {
    .bbs-image-grid-container {
        column-count: 2;
        column-gap: 10px;
    }
    
    /* 在小屏幕上调整统计信息的内边距 */
    .bbs-image-grid-stats {
        padding: 8px 10px;
    }
    
    .bbs-image-grid-stat {
        font-size: 11px;
    }
    
    /* 新闻板块小屏幕适配 */
    .bbs-news-item-left {
        flex: 0 0 150px;
    }
    
    .bbs-news-category-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .bbs-news-title a {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
    
    .bbs-news-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* 视频板块 - 网格列数调整 */
@media (max-width: 1200px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 15px;
    }
}

@media (max-width: 576px) {
    .bbs-video-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 10px;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 992px) {
    .bbs-news-item-left {
        flex: 0 0 240px;
    }
    
    .bbs-news-title a {
        font-size: 20px;
    }
}

/* 增加深色主题下的图片悬停效果 */
.bbs-body-modern.dark .bbs-image-grid-item:hover,
.bbs-body-modern.dark .bbs-video-grid-item:hover,
.bbs-body-modern.dark .bbs-news-item:hover,
.bbs-body-modern.dark .bbs-qa-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* 深色主题下问答板块标签优化 */
.bbs-body-modern.dark .bbs-qa-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.bbs-body-modern.dark .bbs-qa-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* 深色主题下的链接颜色优化 */
.bbs-body-modern.dark .bbs-news-title a:hover,
.bbs-body-modern.dark .bbs-qa-title a:hover {
    color: var(--primary-light);
}

/* 深色主题下的新闻作者名颜色 */
.bbs-body-modern.dark .bbs-news-author-name {
    color: var(--text-secondary);
}

/* 深色主题下的新闻元数据颜色 */
.bbs-body-modern.dark .bbs-news-meta-item i,
.bbs-body-modern.dark .bbs-news-stat i,
.bbs-body-modern.dark .bbs-qa-stat i {
    color: var(--text-muted);
}