.card-carousel-container {
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.card-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
}

.card-carousel-track {
    display: flex;
    position: relative;
    left: 0;
    transition: left 0.5s ease-in-out;
    width: auto;
}

.comment-card {
    flex: 0 0 auto;
    display: block;
}

.comment-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

/* 头像和昵称一行显示 */
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    margin-right: 10px;
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 50%;
    display: block;
    width: 32px;
    height: 32px;
}

.comment-author {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 原文标题（放在评论内容上方） */
.comment-post-title {
    margin-bottom: 10px;
    text-align: center;
}

.post-title-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 8px;
    background: #f0f8ff;
    border-radius: 4px;
    transition: all 0.2s ease;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border: 1px solid #cce6ff;
}

.post-title-link:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

/* 评论内容区域 */
.comment-content {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    overflow-y: auto;
    text-align: left;
    color: #333;
    word-wrap: break-word;
    max-height: calc(100% - 100px);
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content br {
    line-height: 1.5;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #0073aa;
}

.indicator:hover {
    background: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-card-inner {
        padding: 12px;
    }
    
    .comment-author {
        font-size: 13px;
    }
    
    .post-title-link {
        font-size: 12px;
    }
    
    .comment-content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comment-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .comment-post-title {
        margin-bottom: 8px;
    }
    
    .post-title-link {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .comment-content {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}