/**
 * 直播图文章前端样式
 * 小红书风格: 上面图片,下面文字和标签
 */

/* 文章容器 */
.lip-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部图片区域 */
.lip-image-wrapper {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lip-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.lip-image-wrapper:hover .lip-featured-image {
    transform: scale(1.02);
}

/* 内容区域 */
.lip-content-wrapper {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* 开篇介绍 */
.lip-intro {
    font-size: 16px;
    color: #555;
    border-left: 4px solid #ff2442;
    padding-left: 16px;
    margin-bottom: 24px;
    background: linear-gradient(to right, rgba(255, 36, 66, 0.05), transparent);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

/* 小标题 */
.lip-content-wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 设计亮点列表 */
.lip-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.lip-highlights li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px dashed #eee;
}

.lip-highlights li:last-child {
    border-bottom: none;
}

.lip-highlights li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #ff2442;
    font-size: 14px;
}

/* 总结 */
.lip-summary {
    background: linear-gradient(135deg, #fff5f5, #fff0f5);
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 24px;
    font-size: 15px;
    color: #333;
    border: 1px solid rgba(255, 36, 66, 0.1);
}

.lip-summary strong {
    color: #ff2442;
}

/* 标签区域 */
.lip-tags-wrapper {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.lip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lip-tag-item,
.entry-tags a,
.post-tags a,
.tags-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff0f5, #ffe6eb);
    color: #ff2442;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 36, 66, 0.15);
}

.lip-tag-item:hover,
.entry-tags a:hover,
.post-tags a:hover,
.tags-links a:hover {
    background: #ff2442;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.lip-tag-item::before,
.entry-tags a::before,
.post-tags a::before,
.tags-links a::before {
    content: "#";
    margin-right: 2px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lip-article {
        padding: 15px;
    }

    .lip-image-wrapper {
        border-radius: 8px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .lip-content-wrapper {
        font-size: 14px;
    }

    .lip-content-wrapper h3 {
        font-size: 16px;
    }

    .lip-intro {
        font-size: 15px;
        padding: 10px 12px;
    }

    .lip-tag-item {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .lip-content-wrapper {
        color: #e0e0e0;
    }

    .lip-content-wrapper h3 {
        color: #fff;
    }

    .lip-intro {
        background: linear-gradient(to right, rgba(255, 36, 66, 0.15), transparent);
        color: #ccc;
    }

    .lip-highlights li {
        border-bottom-color: #333;
    }

    .lip-summary {
        background: linear-gradient(135deg, #2a1a1a, #251520);
        border-color: rgba(255, 36, 66, 0.2);
        color: #ddd;
    }

    .lip-tag-item {
        background: linear-gradient(135deg, #2a1a1a, #251520);
        border-color: rgba(255, 36, 66, 0.3);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lip-image-wrapper,
.lip-content-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.lip-content-wrapper {
    animation-delay: 0.2s;
}