/**
 * 论坛模板示例 - 样式
 * CSS 类名统一以 jinsom-module-bbs-template-demo- 开头
 */

/* ==================== 页面主布局 ==================== */
.jinsom-module-bbs-template-demo-page {
    margin: 0 auto;
    padding: 0 12px 24px;
}

.jinsom-module-bbs-template-demo-body {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.jinsom-module-bbs-template-demo-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==================== 头部 Banner ==================== */
.jinsom-module-bbs-template-demo-header {
    position: relative;
    border-radius: var(--ls-border-radius, 12px);
    overflow: hidden;
    margin-top: 12px;
}

.jinsom-module-bbs-template-demo-header-bg {
    height: 160px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.65);
}

.jinsom-module-bbs-template-demo-header-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 24px;
}

.jinsom-module-bbs-template-demo-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jinsom-module-bbs-template-demo-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.jinsom-module-bbs-template-demo-header-text {
    color: #fff;
}

.jinsom-module-bbs-template-demo-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.jinsom-module-bbs-template-demo-desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
}

/* ==================== 头部操作区 ==================== */
.jinsom-module-bbs-template-demo-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jinsom-module-bbs-template-demo-stats {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    margin-right: 8px;
}

.jinsom-module-bbs-template-demo-follow-btn,
.jinsom-module-bbs-template-demo-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.jinsom-module-bbs-template-demo-follow-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
}

.jinsom-module-bbs-template-demo-follow-btn.is-followed {
    background: rgba(255, 255, 255, 0.15);
}

.jinsom-module-bbs-template-demo-publish-btn {
    background: #fff;
    color: var(--ls-primary, #1a73e8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jinsom-module-bbs-template-demo-publish-btn:hover {
    transform: translateY(-1px);
}

/* ==================== 导航菜单 ==================== */
.jinsom-module-bbs-template-demo-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-border-radius, 12px);
    padding: 6px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    position: sticky;
    top: var(--ls-header-height, 56px);
    z-index: 90;
}

.jinsom-module-bbs-template-demo-nav::-webkit-scrollbar {
    display: none;
}

.jinsom-module-bbs-template-demo-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text-secondary, #606060);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    user-select: none;
}

.jinsom-module-bbs-template-demo-nav-item:hover {
    background: var(--ls-bg, #f5f6f7);
    color: var(--ls-text, #1f1f1f);
}

.jinsom-module-bbs-template-demo-nav-item.is-active {
    background: var(--ls-primary, #1a73e8);
    color: #fff;
}

.jinsom-module-bbs-template-demo-nav-icon {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
}

/* ==================== 公告 ==================== */
.jinsom-module-bbs-template-demo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-border-radius, 12px);
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 13px;
    color: var(--ls-text, #1f1f1f);
}

.jinsom-module-bbs-template-demo-notice > i {
    color: #ff4d4f;
    font-size: 16px;
    flex-shrink: 0;
}

.jinsom-module-bbs-template-demo-notice-slider {
    flex: 1;
    min-width: 0;
}

.jinsom-module-bbs-template-demo-notice-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 帖子列表 ==================== */
.jinsom-module-bbs-template-demo-post-list {
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-border-radius, 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.jinsom-module-bbs-template-demo-post-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ls-bg, #f5f6f7);
    transition: background 0.15s;
    cursor: pointer;
}

.jinsom-module-bbs-template-demo-post-item:last-child {
    border-bottom: none;
}

.jinsom-module-bbs-template-demo-post-item:hover {
    background: var(--ls-bg-light, rgba(0, 0, 0, 0.01));
}

/* 头像 */
.jinsom-module-bbs-template-demo-post-avatar-wrap {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}

.jinsom-module-bbs-template-demo-post-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: var(--ls-border-radius-avatar, 50%);
    object-fit: cover;
}

/* 内容区 */
.jinsom-module-bbs-template-demo-post-content {
    flex: 1;
    min-width: 0;
}

/* 标题 */
.jinsom-module-bbs-template-demo-post-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.jinsom-module-bbs-template-demo-post-title a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ls-text, #1f1f1f);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jinsom-module-bbs-template-demo-post-title a:hover {
    color: var(--ls-primary, #1a73e8);
}

/* 标签 */
.jinsom-module-bbs-template-demo-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(var(--ls-primary-rgb, 26, 115, 232), 0.1);
    color: var(--ls-primary, #1a73e8);
}

.jinsom-module-bbs-template-demo-tag.is-pin {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 摘要 */
.jinsom-module-bbs-template-demo-post-excerpt {
    font-size: 13px;
    color: var(--ls-text-secondary, #606060);
    line-height: 1.6;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 图片 */
.jinsom-module-bbs-template-demo-post-images {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.jinsom-module-bbs-template-demo-post-images img {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
}

/* 元信息 */
.jinsom-module-bbs-template-demo-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--ls-text-muted, #909090);
}

.jinsom-module-bbs-template-demo-post-meta a {
    color: var(--ls-text-secondary, #606060);
    font-weight: 500;
    text-decoration: none;
}

.jinsom-module-bbs-template-demo-post-meta a:hover {
    color: var(--ls-primary, #1a73e8);
}

.jinsom-module-bbs-template-demo-post-meta i {
    font-size: 13px;
    vertical-align: -1px;
}

/* ==================== 加载更多 ==================== */
.jinsom-module-bbs-template-demo-load-more {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.jinsom-module-bbs-template-demo-load-btn {
    padding: 10px 32px;
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-border-radius, 12px);
    font-size: 14px;
    color: var(--ls-text-secondary, #606060);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.jinsom-module-bbs-template-demo-load-btn:hover {
    color: var(--ls-primary, #1a73e8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== 空状态 ==================== */
.jinsom-module-bbs-template-demo-post-list .ls-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: var(--ls-text-muted, #909090);
}

.jinsom-module-bbs-template-demo-post-list .ls-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}
