/* === single-message.css === */

.message-single {
    margin: 0 auto;
    padding: 1rem 1rem;
    color: #333;
}

/* 面包屑 */
.breadcrumb {
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumb a {
    color: #1890ff;
    text-decoration: none;
    position: relative;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 用 ::after 生成分隔符 */
.breadcrumb a:not(:last-child)::after {
    content: "/";
    display: inline-block;
    margin: 0 0.5rem;
    color: #999;
}

/* 当前页面文字 */
.breadcrumb .current {
    color: #555;
}

/* 文章卡片 */
.message-single-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
}

/* header */
.message-single-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar-wrapper {
    flex-shrink: 0;
}

.speaker-avatar,
.avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #ddd;
    color: #fff;
    font-size: 1.25rem;
}

.text-wrapper {
    flex: 1;
}

.text-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.text-meta {
    font-size: 0.875rem;
    color: #888;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-meta a.speaker-link {
    color: #1890ff;
    text-decoration: none;
}
.text-meta a.speaker-link:hover {
    text-decoration: underline;
}

/* 图片 */
.message-single-media {
    margin-bottom: 1.5rem;
}
.message-single-media .message-img {
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* 内容 */
.message-single-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

/* footer */
.message-single-footer {
    text-align: right;
}
.btn-back {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    color: #1890ff;
    border: 1px solid #1890ff;
    border-radius: 4px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-back:hover {
    background: #1890ff;
    color: #fff;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .message-single-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .avatar-wrapper {
        margin-bottom: 0.5rem;
    }
}
