/* 朋友圈样式 */

/* 容器样式 */
.ssn-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* 控制栏样式 */
.ssn-control {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.add-ssn-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-ssn-button:hover {
    background-color: #0069d9;
}

/* 页面内容容器样式 */
#page-primary {
    max-height: 100vh;
    overflow-y: auto;
}

/* 碎碎念项样式 - 朋友圈布局 */
.ssn-item {
    display: flex;
    padding: 16px;
    margin-bottom: 16px;
    background-color: #ffffff;
    border-radius: 8px;
}

/* 头像样式 */
.ssn-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.ssn-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

/* 主内容样式 */
.ssn-main {
    flex: 1;
    min-width: 0;
}

/* 头部样式 */
.ssn-header {
    margin-bottom: 5px;
}

.ssn-author {
    font-size: 16px;
    font-weight: 600;
    color: #576b95;
    margin: 0;
}

/* 头像链接样式 */
.ssn-avatar-link {
    display: block;
    text-decoration: none;
}

/* 作者链接样式 */
.ssn-author-link {
    color: #576b95;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ssn-author-link:hover {
    color: #3a4b6a;
    text-decoration: underline;
}

/* 内容样式 */
.ssn-content {
    margin-bottom: 12px;
    line-height: 1.6;
    word-break: break-word;
    color: #333333;
}

/* 图片容器样式 */
.ssn-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* 图片项样式 */
.ssn-image-item {
    flex: 1 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.ssn-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.ssn-image-item img:hover {
    transform: scale(1.05);
}

/* 底部样式 */
.ssn-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

/* 日期样式 */
.ssn-date {
    font-size: 12px;
    color: #999999;
}

/* 分类和标签样式 */
.ssn-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ssn-categories, .ssn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ssn-categories a, .ssn-tags a {
    color: #007bff;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e3f2fd;
    font-size: 11px;
}

.ssn-categories a:hover, .ssn-tags a:hover {
    background-color: #bbdefb;
}

/* 分页样式 */
.ssn-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.ssn-pagination .pagination {
    list-style: none;
    display: flex;
    gap: 8px;
}

.ssn-pagination .pagination li {
    margin: 0;
}

.ssn-pagination .pagination a, .ssn-pagination .pagination span {
    display: block;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
}

.ssn-pagination .pagination a:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.ssn-pagination .pagination .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 作者资料区域样式 */
.ssn-author-profile {
    position: relative;
    margin-bottom: 0;
    height: 120px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 8px;
}

.ssn-back-link {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.ssn-back-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: white;
}

.ssn-author-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-between;
    margin-top: -40px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 8px;
}

.ssn-author-details {
    flex: 1;
    margin-right: 12px;
}

.ssn-author-avatar {
    flex-shrink: 0;
}

.ssn-author-avatar img {
    width: 58px;
    height: 58px;
    border-radius: 5px;
    border: 0px solid white;
    margin: -14px 0px 0px 0px;
}

.ssn-author-details {
    flex: 1;
    color: #333;
}

.ssn-author-name {
    font-size: 16px;
    font-weight: normal;
    margin: -10px 0 5px 0;
    text-align: right;
    color: #ffffff;
    text-shadow: 1px 0px 1px #000;
}

.ssn-author-signature {
    font-size: 14px;
    line-height: 1.4;
    margin: 22px 0px 0px 0px;
    color: #666;
    text-align: right;
    position: absolute;
    right: 20px;
    max-width: 80%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ssn-container {
        padding: 10px;
    }
    
    .ssn-item {
        padding: 12px;
    }
    
    .ssn-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .ssn-image-item {
        flex: 1 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    .ssn-control {
        justify-content: center;
    }
    
    /* 作者资料响应式样式 */
    .ssn-author-profile {
        padding: 20px;
    }
    
    .ssn-author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ssn-author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ssn-author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .ssn-author-name {
        font-size: 20px;
    }
    
    .ssn-author-signature {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ssn-item {
        padding: 10px;
    }
    
    .ssn-avatar {
        margin-right: 8px;
    }
    
    .ssn-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .ssn-author {
        font-size: 14px;
    }
    
    .ssn-content {
        font-size: 14px;
    }
    
    .ssn-image-item {
        flex: 1 0 100%;
        max-width: 100%;
    }
    
    .ssn-footer {
        gap: 4px;
    }
}

/* 单张图片样式 */
.ssn-images:only-child .ssn-image-item {
    flex: 1 0 auto;
    max-width: 300px;
}

/* 两张图片样式 */
.ssn-images:has(.ssn-image-item:nth-child(2)):not(:has(.ssn-image-item:nth-child(3))) .ssn-image-item {
    flex: 1 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
}

/* 图片弹出层样式 */
.ssn-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssn-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ssn-lightbox-content {
    position: relative;
    padding: 20px;
}

.ssn-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.ssn-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssn-lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 图片点击效果 */
.ssn-image-item img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ssn-image-item img:hover {
    transform: scale(1.02);
}

#taoswin{height: 100% !important;}