main{overflow: hidden;}
.home,.site-footer{background:#F0F2F5;}
/* 容器：全宽，隐藏溢出，水平滚动视图 */
.danmaku-container {
    position: relative;
    width: 100vw;
    height: 187px; /* 你可以根据卡片高度调整 */
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 滚动轨道，宽度足够容纳所有卡片，两倍宽实现无缝循环 */
.danmaku-track {
    display: flex;
    white-space: nowrap;
    animation: scrollLeft 30s linear infinite;
}

/* 弹幕每条卡片 */
.danmaku-item {
    display: inline-block;
    background: #f5f7fa;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgb(0 0 0 / 0.1);
    padding: 0.5rem 1rem;
    margin-right: 1.5rem;
    min-width: 280px;
    max-width: 350px;
    box-sizing: border-box;
    color: #333;
    user-select: none;
    transition: box-shadow 0.3s;
}
.danmaku-item:hover {
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
}
a:hover{color:initial;}
/* 头像样式 */
.message__avatar img,
.avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #bbb;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* 头像和用户名布局 */
.message__header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.message__user {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}
.message__time {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

/* 图像内容 */
.message__figure img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* 留言文本 */
.message__content {
    font-size: 0.9rem;
    line-height: 1.3;
    max-height: 3.9em; /* 3行溢出隐藏 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 滚动动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
