/**
 * 微博功能样式
 */

/* 微博帖子容器 */
.weibo-posts {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 29px;
}

/* 单条微博帖子 */
.weibo-post {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weibo-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 头部区域 */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* 微博专属头像样式 - 避免与主题 .avatar 冲突 */
.weibo-post .weibo-avatar-container {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.weibo-post .weibo-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 5%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.username {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-left: 10px;
}

.header-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.post-time {
    font-size: 12px;
    color: #999;
}

/* 微博内容折叠样式 */
.weibo-content {
    position: relative;
}

.read-more-toggle {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}

.read-more-toggle:hover {
    text-decoration: underline;
}

.weibo-content-short {
    display: block;
}

.weibo-content-full {
    display: none;
}

/* 内容区域 */
.content {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* 图片网格 */
.images-grid {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.preview-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 底部区域 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.interaction-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weibo-shortcode-commentlink,
.post-like,
.address-inline {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #777;
}

.weibo-shortcode-commentlink img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.post-like a {
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.post-like a:hover {
    color: #ff4757;
}

.post-like .count {
    margin-left: 5px;
    font-weight: 600;
}

.post-like a.active .count {
    color: #ff4757;
}

.address-inline {
    font-size: 14px;
    color: #888;
}

.time-inline {
    font-size: 14px;
    color: #888;
}

/* 图片布局 */
.image-single {
    display: grid;
    grid-template-columns: 1fr;
}

.image-single img {
    aspect-ratio: 16/9;
}

.image-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.image-double img {
    aspect-ratio: 1/1;
}

.image-triple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.image-triple img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.image-triple img {
    aspect-ratio: 1/1;
}

.image-quadruple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.image-quadruple img {
    aspect-ratio: 1/1;
}

.image-nanuple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(auto-fit, 1fr);
    gap: 10px;
}

.image-nanuple img {
    aspect-ratio: 1/1;
}

/* 微博小工具样式 - 移除背景颜色 */
.weibo-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weibo-widget-list li {
    margin-bottom: 10px;
    padding: 10px;
    /* 移除 background-color: #f9f9f9; */
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.weibo-widget-list li:hover {
    /* 移除 background-color: #f1f1f1; */
    padding-left: 15px;
}

.weibo-widget-list li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.weibo-widget-list li a:hover {
    color: #0073aa;
}

/* 移动端样式 */
@media (max-width: 767px) {
    .weibo-posts {
        padding: 10px;
    }

    .weibo-post {
        padding: 15px;
    }

    .weibo-post .weibo-avatar-container {
        width: 40px;
        height: 40px;
    }

    .weibo-post .weibo-avatar-img {
        width: 40px;
        height: 40px;
    }

    .username {
        font-size: 14px;
    }

    .content {
        font-size: 13px;
    }

    .footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
    }

    .interaction-bar {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .weibo-shortcode-commentlink,
    .post-like,
    .address-inline,
    .time-inline {
        font-size: 12px;
        white-space: nowrap;
    }

    .weibo-shortcode-commentlink img {
        width: 12px;
        height: 12px;
    }

    .post-like a {
        font-size: 12px;
    }

    .post-like .count {
        font-size: 12px;
    }

    .preview-image {
        height: 110px;
    }

    .image-single img {
        aspect-ratio: 16/9;
    }

    .image-double {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-double img {
        aspect-ratio: 1/1;
    }

    .image-triple {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .image-triple img:first-child {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    .image-triple img {
        aspect-ratio: 1/1;
    }

    .image-quadruple {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .image-quadruple img {
        aspect-ratio: 1/1;
    }

    .image-nanuple {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(auto-fit, 1fr);
    }

    .image-nanuple img {
        aspect-ratio: 1/1;
    }
}