/* ===== 文章卡片样式 ===== */
.link-card-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
}

.link-card {
    display: block;
    text-decoration: none !important;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    text-decoration: none !important;
    color: #333;
}

.link-card-inner {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
}

.link-card-img {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.link-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-card-content {
    min-width: 0;
}

.link-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card-url {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-card-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ===== 评论气泡样式 ===== */
.bubble-container {
    margin: 18px 0 !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
}

.bubble-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

.bubble-avatar-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 42px !important;
    margin-right: 10px !important;
}

.bubble-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
}

.bubble-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bubble-avatar img.lazy {
    background: #f0f0f0 !important;
}

.bubble-nickname {
    font-size: 10px !important;
    color: #999 !important;
    margin-top: 3px !important;
    max-width: 42px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.bubble-main {
    flex: 1 !important;
    min-width: 0 !important;
}

.bubble-content {
    position: relative !important;
    background: #95ec69 !important;
    color: #1a1a1a !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    word-break: break-all !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1) !important;
}

.bubble-content::after {
    content: "" !important;
    position: absolute !important;
    left: -6px !important;
    top: 12px !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 6px solid #95ec69 !important;
}

.bubble-meta {
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 4px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bubble-meta a {
    color: #999 !important;
    text-decoration: none !important;
}

/* 移动端 */
@media (max-width: 640px) {
    .link-card-inner {
        grid-template-columns: 90px 1fr;
        gap: 12px;
        padding: 12px;
    }
    .link-card-img {
        width: 90px;
        height: 70px;
    }
    .bubble-avatar-col {
        width: 36px !important;
        margin-right: 8px !important;
    }
    .bubble-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    .bubble-nickname {
        font-size: 9px !important;
        max-width: 36px !important;
    }
}
