/* 统一背景色 */
body, .archive, .site-footer {
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* 主容器 */
.xiaozuowen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
}

/* 人物信息卡片 */
.speaker-info-card {
    display: flex;
    align-items: flex-start; /* 顶部对齐头像和文字 */
    gap: 1.25rem;            /* 头像与文字间距 */
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.avatar-wrapper{
    position:relative;
}
.speaker-avatar,
.avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-fallback {
    background: #1890ff;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.speaker-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.speaker-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #222;
}

.speaker-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* 移动端 */
@media (max-width: 576px) {
    .speaker-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-avatar,
    .avatar-fallback {
        width: 64px;
        height: 64px;
        margin-bottom: 0.75rem;
    }
}



/* 每个板块 */
.speaker-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-left: 4px solid #1890ff;
    padding-left: 0.75rem;
}

/* Ant Design 卡片风格 */
.ant-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.ant-card a{color: #000;}
.ant-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card-title {
    display:flex;
    justify-content:start;
    align-items:center;
    column-gap:.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #222;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: #1890ff;
}
.ant-card:hover .kexue-link{color: #D6336C;}

.card-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 0.5rem;
}

.text-muted {
    font-size: 0.8rem;
    color: #888;
}

/* 关联人物 grid */
.related-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-speaker-item {
    flex: 0 0 10%;
    max-width: 10%;
    text-align: center;
}

.related-speaker-avatar {
    width: 70px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.fallback-avatar {
    background: #6c757d;
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.related-speaker-name {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 留言/磕学/小作文 卡片布局统一 */
.row.no-gutters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.row.no-gutters > .col-md-4 {
    flex: 0 0 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
}

@media (max-width: 992px) {
    .row.no-gutters > .col-md-4 {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    .related-speaker-item {
        flex: 0 0 32%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .row.no-gutters > .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .related-speaker-item {
        flex: 0 0 48%;
        max-width: 50%;
    }
    .speaker-info-card{
        gap:0;
        padding: 1rem;
    }
}

