/* Container */
.xiaozuowen-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /*max-width: 1000px;*/
    margin: 0 auto;
    padding: 2rem 0;
}

/* Speaker section */
.speaker-section {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header */
.speaker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.speaker-avatar,
.avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    background-color: #1890ff;
}

.speaker-avatar {
    object-fit: cover;
    background-color: transparent;
    color: #000;
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 600;
    flex-grow: 1;
}

.view-all {
    font-size: 0.9rem;
    color: #1890ff;
    text-decoration: none;
    border: 1px solid #1890ff;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    transition: all 0.2s;
}

.view-all:hover {
    background: #1890ff;
    color: #fff;
}

/* Mini writing list */
.mini-writing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Card */
.mini-writing-card {
    color:#000;
    border-radius: 6px;
    padding: 1rem;
    background: #fafafa;
    flex: 1 1 calc(50% - 1rem);
    min-width: 250px;
    transition: all 0.3s;
    cursor: pointer;
}

.mini-writing-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.mini-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mini-content {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-date {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .mini-writing-card {
        flex: 1 1 100%;
    }

    .speaker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .view-all {
        align-self: flex-end;
    }
}
