.pyq-zan{

    width:100%;
    height:100%;
    margin-top: 0;
}

.fa-chain:before, .fa-link:before {
    content: "\f0c1";
    color: #4573ff;
}

/* 文本链接样式 */
.moment-text-link {
    background-color: #e2e8ff;
    padding: 0px 6px;
    color: #4573ff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 0 2px;
}

.moment-text-link:hover {
    background-color: #d3dfff;
    text-decoration: none;
}

.moment-text-link-wrapper {
    display: inline-block;
    margin: 2px 0;
}

.moment-link {
    background-color: #e2e8ff;
    padding: 2px 6px;;
    color: #4573ff;
    font-weight: 600;
    border-radius: 6px; /* 可选：给图片添加圆角效果 */
    text-decoration: none;
    
}

.header-content-05 {
    height: 135px;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 40px;
}

/* 顶部横线 */
.header-line-top {
    border-bottom: 0.5px solid #c8c8c8;
    padding-bottom: 15px;
}

.header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #c8c8c8;
    padding-bottom: 15px;
    padding-top: 5px;
}

.icon {
    margin-right: 10px;
    color: #868686;
}

.line-text {
    font-weight: 400;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.line-text-public {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-right: 2px; /* 增加右侧的间距，调整"公开"位置 */
}

.arrow {
    color: #666;
    margin-left: 10px;
}

/* 去掉最后一行的 border-bottom: none; 让它有下划线 */
.header-line:last-child {
    border-bottom: 0.5px solid #c8c8c8;
}

.header-content-04 {
    height: 135px;
    
    width: 90%;
    display: flex;
    justify-content: space-between; /* 图片之间均匀分布 */
    gap: 5px; /* 图片之间的间距 */
    align-items: center; /* 垂直居中对齐 */
}

.color-block {
    position: relative; /* 设置父容器为相对定位 */
    width: 32.5%;
    height: 130px; /* 图片高度 */
    background-color: var(--token-3040fe1f-5f4d-4e77-90e5-8a7885968ddc, rgba(214, 214, 214, 0.5));
    
    position: relative; /* 为了让伪元素定位相对于方块 */
}

.color-block::before, .color-block::after {
    content: ''; /* 伪元素的内容为空 */
    position: absolute;
    background-color: #8c8c8c; /* 线条的颜色，可以根据需求修改 */
}

.color-block::before {
    width: 30%; /* 横线的宽度 */
    height: 2px; /* 横线的高度 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 精确居中 */
}

.color-block::after {
    width: 2px; /* 竖线的宽度 */
    height: 30%; /* 竖线的高度 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 精确居中 */
}

.header-content-03 {
    height: 135px;
    
    width: 90%;
    display: flex;
    justify-content: space-between; /* 图片之间均匀分布 */
    gap: 5px; /* 图片之间的间距 */
    align-items: center; /* 垂直居中对齐 */
}

.header-image {
    width: 33.33%;
    height: 130px; /* 图片高度 */
    object-fit: cover; /* 保证图片裁剪成正方形，且保持图片的比例 */
    border-radius: 2px; /* 可选：给图片添加圆角效果 */
}

.header-content-02 {
    display: flex;
    height: 160px;
    width: 90%;
    padding-left: 20px;
    padding-top: 10px;
    font-weight: 600;
    text-align: left; /* 左对齐 */
    color: black; /* 黑色文字 */
    font-size: 14px; /* 可根据需要调整字体大小 */
    line-height: 1.5; /* 行高，增加文本间距，方便阅读 */
    font-size: 14px;
    display: flex;
    flex-direction: column;  /* 垂直排列 */
    justify-content: center; /* 垂直居中 */   
}

.header-content-01 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    margin-top: 10px;
    height: 50px;
}

.left-text {
    font-size: 14px;
    color: black;
    text-decoration: underline;
    cursor: pointer;
}

.right-btn {
    background-color: rgb(6, 166, 83);
    color: white; /* 白色文字 */
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: underline; /* 下划线 */
    cursor: pointer;
    font-size: 14px;
}

.right-btn:hover {
    background-color: #45a049; /* 鼠标悬停时颜色变化 */
}

.header-content {
    margin: auto;
    width: 65%;
    position: relative;
    display: flex;
    flex-direction: column;
 
    align-items: center;
    height: 100%;
    color: #fff;
    text-align: center;
    z-index: 1;
}

.moments-container {
    max-width: 650px;
    margin: 0 auto;
    
}

.moments-header {
    position: relative;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
    opacity: 0.9;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.header-content .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.post-moment-form {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
}

.form-container textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: vertical;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 16px;
}

.form-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-buttons {
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: #f0f2f5;
    color: #1a73e8;
}

.publish-btn {
    background: #06a653;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3sease;
}

.publish-btn:hover {
    background: #1557b0;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.media-preview img,
.media-preview video {
    max-width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.moments-list {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    
}

.moment-left {
    flex-shrink: 0;
}

.moment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 20%;
}

.moment-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
}

.moment-header {
    display: flex;
    justify-content: space-between;
    width: 100%; /* 保证名字和时间两边对齐 */
}

.moment-author {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.moment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
    text-align: left;
    white-space: pre-wrap;
}

.moment-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.moment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.moment-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.moment-link {
    color: #4d79ff;

    transition: opacity 0.3s;
}

.moment-link:hover {
    opacity: 1;
}

/* 优化动画过渡效果 */
.moment-item {
    transition: transform 0.3s ease-out, opacity 0.5s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform-origin: center;
    backface-visibility: hidden; /* 提高动画性能 */
}

/* 高亮动画类 */
@keyframes highlight-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.highlight-moment {
    animation: highlight-pulse 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
   
}

/* 当被锚点定位时的特殊样式 */
.moment-item:target {
    z-index: 2; /* 确保目标元素在上层 */
}

/* 移除透明度动画，只保留缩放动画 */
.moment-item[style*="opacity: 0"] {
    opacity: 1 !important;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .moment-link {
        padding: 5px;
    }
}

.delete-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.moment-author {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.moment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.moment-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.moment-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 13px;
}

.moment-location {
    color: inherit;

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.moment-media img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.moment-media video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* 修改加载更多按钮样式 */
.load-more {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    border: none; /* 移除边框 */
    color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

/* 加载动画 - 只保留内圈 */
.load-more-btn::after {
    content: "";
    position: absolute;
    width: 24px; /* 增加尺寸 */
    height: 24px; /* 增加尺寸 */
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px; /* 调整偏移量 */
    border: 2px solid #eee; /* 添加淡色底圈 */
    border-top-color: #3274ff; /* 保持顶部边框颜色 */
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

/* 悬停效果 */
.load-more-btn:hover::after {
    border-top-color: #1a73e8;
}

/* 加载中状态 */
.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 适配移动端 */
@media (max-width: 768px) {
    .load-more-btn {
        width: 36px;
        height: 36px;
    }
    
    .load-more-btn::after {
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
    }
}

.moment-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: #ffffff;
    padding: 30px 30px 30px 30px;
    border-radius: 24px;
}

.pyq-01 {
    margin-right: 14px; /* 为头像和右边内容之间留点空隙 */
    display: flex;
        flex-direction: column;
        align-items: center;
}

.pyq-02 {
    display: flex;
    flex-direction: column; /* 让内容垂直排列 */
    justify-content: flex-start;
    align-items: flex-start; /* 保证内容从顶部开始 */
    width: 80%;
    height: auto;
}

.moment-header {
    display: flex;
    justify-content: space-between;
    width: 100%; /* 保证名字和时间两边对齐 */
}

.moment-info {
    display: flex;
    flex-direction: column;
}

.moment-author,
.moment-time {
    margin: 0;
}

.moment-content {
    margin-top: 10px;
}

.pyq-04 {
    margin-top: 10px;
}

.pyq-05 {
    display: flex;
    justify-content: flex-end;
  
    margin-top: 10px;
}

.delete-moment {
    cursor: pointer;
}

/* 日期选择器样式 */
#custom-date {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#custom-date:hover i {
    color: #007bff;
}

#custom-date i {
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
}

#moment-date {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 当日期选择器获得焦点时显示 */
#moment-date:focus {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
}

/* 时间显示样式优化 */
.moment-time {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    cursor: help;
}

.moment-time:hover {
    color: #333;
}

/* 发布按钮状态样式 */
#publish-moment:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* 媒体预览区域样式优化 */
#media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-wrapper {
    position: relative;
    max-width: 200px;
}

.preview-item {
    max-width: 100%;
    border-radius: 4px;
}

.preview-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.preview-delete:hover {
    background: rgba(0,0,0,0.7);
}

/* 日期选择器样式 */
.date-picker-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#custom-date {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#custom-date:hover i {
    color: #007bff;
}

#custom-date i {
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
}

#moment-date {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#selected-date {
    font-size: 14px;
    color: #666;
}

/* 动态加载动画优化 */
.moment-item {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 优化图片加载 */
.moment-media img {
    background-color: #f5f5f5; /* 图片加载前的背景色 */
    min-height: 100px; /* 预留空间防止布局跳动 */
}

/* 优化视频加载 */
.moment-media video {
    background-color: #000; /* 视频加载前的背景色 */
    min-height: 200px; /* 预留空间 */
}

/* 优化图片加载效果 */
.moment-avatar {
    transition: opacity 0.3s ease-in;
}

.moment-media img {
    transition: opacity 0.3s ease-in;
    background-color: #f5f5f5;
    min-height: 100px;
}

.moment-media video {
    transition: opacity 0.3s ease-in;
    background-color: #000;
    min-height: 200px;
}

/* 动态加载动画优化 */
.moment-item {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 优化图片和头像加载动画 */
.moment-avatar {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.moment-avatar[style*="opacity: 1"] {
    transform: scale(1);
}

.moment-media img,
.moment-media video {
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    background-color: #f5f5f5;
}

.moment-media img[style*="opacity: 1"],
.moment-media video[style*="opacity: 1"] {
    opacity: 1;
    transform: scale(1);
}

/* 添加卡片阴影效果增强立体感 */
.moment-item {
 
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
}

.moment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* 朋友圈媒体内容样式 */
.moment-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.moment-media-item {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 图片特定样式 */
.moment-media img.moment-media-item {
    max-height: 300px;
    cursor: pointer;
}

/* 视频特定样式 */
.moment-media video.moment-media-item {
    max-height: 400px;
    background: #000;
}

/* 确保图片容器有合适的尺寸 */
.moment-media img {
    display: block;
    max-width: 100%;
    height: auto;
    min-height: 100px;
    background-color: #f5f5f5;
}

/* 优化加载状态 */
.moment-media-item[style*="opacity: 0"] {
    min-height: 100px;
    background-color: #f5f5f5;
}

/* 修复可能的布局问题 */
.pyq-04 {
    width: 100%;
    overflow: hidden;
    margin: 0%;
}

/* 标签按钮样式 */
#add-tag {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-tag:hover i {
    color: #007bff;
}

#add-tag i {
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
}

/* 内容中标签的样式 */
.moment-content .tag {
    color: #007bff;
    cursor: pointer;
}

/* 标签样式优化 */
.moment-tag {
    display: flex;
    justify-content: space-between; /* 两端对齐 */
    align-items: center;
    width: 100%; /* 确保标签占满整行 */
    padding: 5px 10px; /* 调整内边距 */
    margin-bottom: 5px; /* 标签间距 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.moment-tag:hover {
    background-color: #e8f0fe;
}

.moment-tag.active {
    background-color: #e8f0fe;
    color: #1967d2;
    font-weight: 500;
}

/* 标签计数右对齐样式 */
.tag-count {
    display: inline-flex;
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    margin-left: auto; /* 自动左边距推到右侧 */
    font-weight: normal;
}

/* 标签文本样式 */
.tag-name {
    font-size: 13px;
    flex: 1; /* 占用剩余空间 */
    text-align: left; /* 文本左对齐 */
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 溢出隐藏 */
    text-overflow: ellipsis; /* 文本溢出时显示省略号 */
}

/* 确保所有标签（包括中文标签）都有一致的样式 */
.content-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #d9e6f3;
    border-radius: 4px;
    color: #1a73e8;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 2px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.content-tag:hover {
    background-color: #e8f0fe;
    color: #1967d2;
}

/* 确保标签内的文本正确显示 */
.content-tag {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

/* 标签被选中时的样式 */
.content-tag.active {
    background-color: #e8f0fe;
    color: #1967d2;
    font-weight: 500;
}

/* 确保编辑表单只出现一次，并有良好的样式 */
.edit-form {
    width: 500px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.edit-content {
    margin-bottom: 15px;
}

.edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

/* 编辑表单日期选择器样式 */
.edit-date {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-date-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.date-picker-btn {
    padding: 8px 15px;
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-picker-btn:hover {
    background: #e4e6e9;
    color: #007bff;
}

/* 媒体编辑区域 */
.edit-media {
    margin-bottom: 15px;
}

.edit-media h4 {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

.edit-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.edit-media-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.edit-media-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background: #f0f2f5;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-media-buttons button:hover {
    background: #e4e6e9;
    color: #007bff;
}

.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.edit-actions button {
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-edit {
    background: #06a653;
    color: #fff;
}

.save-edit:hover {
    background: #048b45;
}

.cancel-edit {
    background: #f0f2f5;
    color: #666;
}

.cancel-edit:hover {
    background: #e4e6e9;
}

/* 预览项样式 */
.preview-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-delete:hover {
    background: rgba(0,0,0,0.7);
}

/* 确保emoji选择器在编辑模式下正确显示 */
.edit-form .emojionearea {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
}

.edit-form .emojionearea.focused {
    border-color: #06a653 !important;
    box-shadow: 0 0 0 2px rgba(6, 166, 83, 0.2) !important;
}

.edit-form .emojionearea-editor {
    min-height: 100px !important;
}

/* 媒体网格布局样式 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
   
    width: 100%;
}

/* 网格项基础样式 */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f2f5;
    aspect-ratio: 1;
}

/* 媒体项样式 */
.media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频特殊处理 */
video.media-item {
    background: #000;
}

/* 预览图片时的样式 */
.media-item:hover {
    cursor: pointer;
}

/* 编辑表单样式 */
.moment-form {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-content {
    margin-bottom: 15px;
}

.form-content .emojionearea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
}

.form-content .emojionearea-editor {
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.form-footer {
    margin-top: 15px;
}

.media-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.media-buttons .button {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #f0f2f5;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-buttons .button:hover {
    background: #e4e6e9;
    color: #007bff;
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.selected-date {
    color: #666;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.form-actions .button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-edit {
    background: #007bff;
    color: #fff;
}

.save-edit:hover {
    background: #0056b3;
}

.cancel-edit {
    background: #f0f2f5;
    color: #666;
}

.cancel-edit:hover {
    background: #e4e6e9;
}

/* 媒体选择按钮样式 */
.select-media-btn {
    margin-right: 5px;
}

.select-media-btn i {
    font-size: 16px;
}

/* 调整按钮间距 */
.media-buttons .button {
    margin-right: 5px;
}

.media-buttons .button:last-child {
    margin-right: 0;
}

/* 图片查看器样式优化 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(48, 55, 66, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-viewer.active {
    opacity: 1;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.image-viewer.active .viewer-content {
    transform: scale(1);
}

.viewer-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 图片网格项样式 */
.grid-item img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

/* 模态对话框样式 */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 400px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-header {
    margin-bottom: 15px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-body {
    margin-bottom: 20px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-btn.confirm {
    background: #ff4d4f;
    color: white;
}

.modal-btn.confirm:hover {
    background: #ff7875;
}

.modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.cancel:hover {
    background: #d9d9d9;
}

.pyq-pinglun {
    margin-top: 0;
}

.pyq-pinglun .loading {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pyq-pinglun .loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3274ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.comment-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f5f5f5;
    font-size: 12px;
}

.comment-button:hover {
    color: #3274ff;
    background: #e8f0ff;
}

.comment-button i {
    font-size: 12px; /* 调整图标大小 */
}

.comment-button span {
    font-size: 12px;
    color: inherit;
    white-space: nowrap; /* 防止评论数文字换行 */
    margin-left: 2px; /* 增加图标和数字间的间距 */
}

.comment-area {
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
}

/* 评论表单样式 */
.comment-respond {
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    margin-bottom: 15px;
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-form-comment textarea {
    height: 80px;
    resize: vertical;
}

.submit {
    background: #3274ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submit:hover {
    background: #2461e6;
}

/* 评论列表样式 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.comment-author .fn {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.comment-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.comment-metadata time {
    color: #999;
}

.comment-reply-link {
    color: #3274ff;
    text-decoration: none;
    font-size: 12px;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* 评论分页样式 */
.comment-navigation {
    margin: 15px 0;
    text-align: center;
}

.page-numbers {
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.page-numbers.current {
    background: #3274ff;
    color: white;
    border-color: #3274ff;
}

/* 暂无评论样式 */
.no-comments {
    text-align: center;
    color: #666;
    padding: 15px;
    font-size: 14px;
}

/* 回复表单样式 */
#respond {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.children {
    margin-left: 20px;
    list-style: none;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
}

/* 朋友圈评论区容器 */
.moment-comments {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 评论区标题 */
.moment-comments__header {
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* 评论表单容器 */
.moment-comments__form {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

/* 表单输入行 */
.moment-comments__form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap; /* 防止换行 */
}

/* 输入框项 */
.moment-comments__input-item {
    flex: 1;
    min-width: 0; /* 允许输入框缩小 */
}

/* 输入框样式 */
.moment-comments__input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

/* 在小屏幕上允许换行 */
@media (max-width: 480px) {
    .moment-comments__form-row {
        flex-wrap: wrap;
    }
    
    .moment-comments__input-item {
        width: 100%;
    }
}

/* 评论文本框容器 */
.moment-comments__textarea-wrap {
    margin-bottom: 10px;
}

/* 评论文本框 */
.moment-comments__textarea {
    width: 100%;
    min-height: 70px;
    max-height: 150px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
}

/* 评论表单操作区域 */
.moment-comments__actions {
    display: flex;
    justify-content: flex-end; /* 内容靠右对齐 */
}

/* 提交按钮容器 */
.moment-comments__submit-wrap {
    display: flex;
    justify-content: flex-end; /* 按钮靠右对齐 */
    width: 100%; /* 确保容器占满宽度 */
}

/* 提交按钮样式 */
.moment-comments__submit {
    background: #3274ff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.moment-comments__submit:hover {
    background: #2461e6;
}

/* 表情按钮区域 */
.moment-comments__emoji {
    display: flex;
    gap: 8px;
}

/* 表情按钮 */
.moment-comments__emoji-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

/* 评论列表容器 */
.moment-comments__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 评论项基础布局 */
.moment-comments__item {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: #00000000;
    border-radius: 6px;
    padding: 15px 10px 15px 10px;
    position: relative;
}

/* 头像样式 */
.moment-comments__avatar {
    width: 42px;
    height: 42px;
    border-radius: 20%;
    flex-shrink: 0; /* 防止头像被压缩 */
}

/* 评论主体内容区域 */
.moment-comments__content-wrapper {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

/* 作者信息和时间 */
.moment-comments__author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

/* 评论内容和回复按钮容器 */
.moment-comments__body {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 让回复按钮垂直居中 */
    gap: 10px;
}

/* 评论内容区域样式 */
.moment-comments__content {
    flex: 1;
    font-size: 14px !important;
    line-height: 1.5;
    color: #666;
    word-break: break-word;
    margin-right: 10px; /* 给回复按钮留出一些空间 */
}

/* 回复按钮样式 */
.moment-comments__reply {
    color: #999; /* 灰色 */
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.moment-comments__reply i {
    font-size: 12px; /* 图标大小 */
}

.moment-comments__reply:hover {
    color: #3274ff; /* 鼠标悬停时变蓝 */
}

/* 确保段落内容在同一行 */
.moment-comments__content p {
    margin: 0;
    display: inline;
    font-size: 14px !important;
}

/* 回复评论引用样式 */
.comment-reply-author {
    color: #3274ff;
    font-weight: 500;
    margin-right: 5px;
    display: inline;
    font-size: 14px !important;
}

/* 移除可能冲突的样式 */
.moment-comments__content * {
    font-size: inherit;
}

/* 回复评论样式 */
.moment-comments__item.comment-reply,
.moment-comments__children {
    margin-left: 10px; /* 减小缩进距离 */
    padding-left: 0px; /* 减小内边距 */
}

/* 防止多层嵌套的缩进 */
.moment-comments__children .moment-comments__children {
    margin-left: 0;
    padding-left: 0;
}

/* 回复评论样式 */
.moment-comments__item.comment-reply {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* 表情选择器 */
.moment-comments__emoji-picker {
    position: absolute;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 280px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

/* 无评论提示 */
.moment-comments__empty {
    text-align: center;
    color: #999;
    padding: 15px 0;
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .moment-comments__form {
        padding: 8px;
    }
    
    .moment-comments__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .moment-comments__submit-wrap {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* 成功提示弹窗样式 */
#custom-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: none;
    text-align: center;
    min-width: 200px;
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#popup-message {
    color: #333333;
    font-size: 14px;
    margin: 0;
}

/* 移除关闭按钮 */
#popup-close-button {
    display: none;
}

/* 错误提示样式 */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    text-align: center;
    color: #ff4d4f;
    min-width: 200px;
}

/* 禁用状态样式 */
.moment-comments__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 评论嵌套样式 */
.moment-comments__children {
    list-style: none;
}

/* 所有回复评论的统一缩进 */
.comment-reply {
    margin-left: 36px !important; /* 统一的缩进距离 */
    padding-left: 0 !important;
}

/* 移除原有的嵌套缩进样式 */
.moment-comments__children {
    margin-left: 0 !important;
    padding-left: 0 !important;
    list-style: none;
}

/* 移除多层嵌套的额外缩进 */
.moment-comments__children .moment-comments__children {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 回复评论的分隔样式 */
.comment-reply {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}


.moment-comments__time{
    font-size: 12px;
    color: #9a9a9a;
}

.moment-comments__name{
    font-weight: 800;
    color: #272727;
    font-size: 12px;
}

/* 主评论项样式 */
.moment-comments__list > .moment-comments__item {
    position: relative;
}

/* 主评论的分隔线 */
.moment-comments__list > .moment-comments__item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1.5px; /* 增加线条高度 */
    background: linear-gradient(to right, transparent, #e0e0e0, transparent); /* 稍微加深颜色 */
}

/* 移除最后一个主评论的分隔线 */
.moment-comments__list > .moment-comments__item:last-child::after {
    display: none;
}

/* 移除回复评论的分隔线 */
.moment-comments__children .moment-comments__item::after {
    display: none;
}

/* 调整主评论的下边距，为分隔线留出空间 */
.moment-comments__list > .moment-comments__item {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.moment-comments__pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.moment-comments__page-btn {
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.moment-comments__page-btn:hover {
    background: #e0e0e0;
}

.moment-comments__page-btn:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
}

.moment-actions {
    display: flex;
 
}

.edit-moment, .delete-moment {
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.edit-moment i, .delete-moment i {
    font-size: 15px;
    color: #666;
    transition: all 0.2s ease;
}

.edit-moment:hover i {
    color: #1a73e8;
}

.delete-moment:hover i {
    color: #dc3545;
}

/* 创建一个容器来放置两个按钮 */
.moment-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

/* 调整按钮样式以保持一致性 */
.like-button,
.comment-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px 0px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap; /* 防止文字换行 */
}

/* 评论按钮的图标和文字布局 */
.comment-button i,
.comment-button span {
    display: inline-block; /* 改为行内块元素 */
    vertical-align: middle; /* 垂直居中对齐 */
}

/* 保持其他样式不变 */
.like-button:hover {
    color: #ff4b4b;
}

.comment-button:hover {
    color: #3274ff;
    background: #e8f0ff;
}

.like-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px 0px;
    border-radius: 15px;
    font-size: 12px;
}

.like-button.liked {
    color: #ff4b4b;
}

.like-button.liked i {
    color: #ff4b4b;
}

.like-button:hover {
    color: #ff4b4b;
}

.like-button.liking {
    opacity: 0.7;
    cursor: wait;
}

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

/* 按钮组样式 */
.button-group {
    display: flex;
    align-items: center;
    width: 100%; /* 确保按钮组占满整行 */
}

/* 点赞和分享按钮容器 */
.left-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 评论按钮容器 */
.right-buttons {
    margin-left: auto; /* 将评论按钮推到最右侧 */
}

/* 调整按钮组中所有按钮的统一样式 */
.button-group button {
    background: #f5f8fa00;
    border: none;

    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .left-buttons {
        gap: 10px;
    }
}

/* 复制成功提示框样式 */
#copy-toast {
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toast-in-out 0.3s ease;
}

#copy-toast i {
    color: #52c41a;
}

@keyframes toast-in-out {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
    #copy-toast {
        background-color: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

/* 修改分享按钮样式 */
.share-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px 0px;
    border-radius: 15px;
    font-size: 12px;
    background: none;
    border: none;
}

.share-button:hover {
    color: #3274ff;
}

.share-button i {
    font-size: 12px; /* 稍微调小一点纸飞机图标 */
    transform: rotate(45deg) scale(1); /* 让纸飞机斜向上飞 */
}

.share-button:hover i {
    transform: rotate(45deg) scale(1.1); /* 悬停时稍微放大 */
}

/* 主要布局包装容器 - 现在包含三个部分 */
.content-layout-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 14px;
    margin-top: 40px;
}

/* 社交媒体关注盒子 */
.social-follow-container {
    width: 100%;
    margin-bottom: 20px; /* 添加底部间距 */
}

/* 标题样式 - 左对齐 */
.wid_title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: left;
    color: #92918c;
    width: 100%;
    
}

/* 社交图标容器 - 调整为一行 */
.social-icons {
    display: flex;
    flex-direction: row;

    width: 100%;
    gap: 5px;
}

/* 单个社交图标项 */
.social-item {
    margin-bottom: 0; /* 移除底部边距 */
}

/* 社交图标链接 - 去掉下划线 */
.social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 20%;
    background-color: #000;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* 图标样式 - 减小尺寸 */
.social-item i {
    color: #ffffff;
    font-size: 12px; /* 减小图标大小 */
}

/* 主内容容器样式 */
.moments-main-container {
    flex: 1;
    max-width: 740px;
    margin: 0 auto; /* 居中显示 */
}

/* 标签容器样式 */
.tags-container {
    width: 18%;
    background-color: #fafaf8;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    z-index: 100;
    height: fit-content;
    margin: 0%;
    width: 100%;
}

/* 标签列表垂直排列 */
.tags-list {
    display: contents;
    flex-direction: column;
    gap: 8px;
}

/* 标签样式 */
.moment-tag {
    display: flex;
    justify-content: space-between; /* 两端对齐 */
    align-items: center;
    width: 100%; /* 确保标签占满整行 */
    padding: 5px 10px; /* 调整内边距 */
    margin-bottom: 5px; /* 标签间距 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.moment-tag:hover {
    background-color: #e8f0fe;
}

.moment-tag.active {
    background-color: #e8f0fe;
    color: #1967d2;
    font-weight: 500;
}

/* 标签计数右对齐样式 */
.tag-count {
    display: inline-flex;
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    margin-left: auto; /* 自动左边距推到右侧 */
    font-weight: normal;
}

/* 标签文本样式 */
.tag-name {
    font-size: 16px;
    flex: 1; /* 占用剩余空间 */
    text-align: left; /* 文本左对齐 */
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 溢出隐藏 */
    text-overflow: ellipsis; /* 文本溢出时显示省略号 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-layout-wrapper {
        flex-direction: column;
    }
    
    .social-follow-container {
        width: 100%;
        margin-bottom: 15px;
        position: static;
    }
    
    .social-icons {
        flex-direction: row;
    }
    
    .moments-main-container,
    .tags-container {
        width: 100%;
        max-width: 100%;
    }
    
    .tags-container {
        margin-bottom: 15px;
        margin-top: 15px;
        position: static;
    }
}

/* 左侧边栏容器 */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 110px;
    z-index: 100;
    width: 18%;
    background-color: #fafaf8;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* About Me 容器样式 */
.about-me-container {
    width: 100%;
}

/* 在两个部分之间添加分隔线 */
.social-follow-container:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #eee;
    margin-top: 20px;
}

/* About Me 项目列表 */
.about-me-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 单个信息项样式 */
.info-item {
    display: flex;
    align-items: center; /* 改为居中对齐 */
    gap: 10px;
}

/* 图标包装器 - 移除背景样式 */
.icon-wrap {
 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图标样式 */
.icon-wrap i {
    font-size: 14px; /* 稍微增大图标尺寸 */
    color: #666; /* 改为灰色图标 */
}

/* 信息内容样式 */
.info-content {
    
    flex: 1;
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: #333;
    font-family: 'OPPOSans_300', sans-serif;
    font-weight: 500;
}

.info-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: #383631;
}

.info-content a {
    color: #383631;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #18478f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-sidebar {
        width: 100%;
        flex-direction: column;
    }
    
    .about-me-container {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* 微信图标容器 */
.wechat-container {
    position: relative;
}

/* 二维码容器 */
.wechat-qrcode {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* 初始状态为完全透明 */
    visibility: hidden; /* 初始状态为隐藏 */
    z-index: 1000;
    margin-top: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* 添加过渡效果 */
}

/* 二维码图片 */
.wechat-qrcode img {
    width: 120px;
    height: 120px;
    display: block;
}

/* 添加小三角 */
.wechat-qrcode:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* 显示二维码 - 添加渐变效果 */
.wechat-container:hover .wechat-qrcode {
    opacity: 1; /* 悬停时变为完全不透明 */
    visibility: visible; /* 悬停时显示 */
}

/* 站点统计容器 - 减小上边距 */
.site-stats-container {
    width: 100%;
    margin-top: 15px; /* 减小上边距 */
}

/* 统计信息网格布局 - 进一步减小尺寸 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px; /* 进一步减小间距 */
    margin-top: 10px; /* 减小顶部边距 */
}

/* 单个统计项 - 进一步减小内边距和尺寸 */
.stat-item {
    background-color: #eeede999;
    border-radius: 5px; /* 减小圆角 */
    padding: 10px 4px; /* 进一步减小内边距 */
    text-align: center;
}

/* 统计项全宽 */
.stats-full-width {
    grid-column: span 2;
}

/* 统计项标题 - 进一步减小字体大小 */
.stat-title {
    font-size: 12px; /* 进一步减小字体大小 */
    color: #747474;
    margin-bottom: 4px; /* 减小下边距 */
    font-family: 'OPPOSans_300', sans-serif;
}

/* 统计项数值 - 进一步减小字体大小 */
.stat-value {
    font-size: 14px; /* 进一步减小字体大小 */
    color: #555555;
    font-weight: 800;
    font-family: 'OPPOSans_300', sans-serif;
}

/* 专题推荐容器 */
.topic-recommendations {
    width: 100%;
    margin-bottom: 20px;
}

/* 专题列表 */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 专题项 */
.topic-item {
    display: block;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-2px);
}

/* 专题名称 */
.topic-name {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;

    background: rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* 模块分隔线 */
.module-divider {
    height: 0.5px;
    background-color: #eaeaea;
    margin: 10px 0;
    width: 100%;
}

/* 调整模块间距 */
.about-me-container,
.topic-recommendations,
.site-stats-container {
    margin-bottom: 0; /* 移除底部边距，由分隔线控制间距 */
}

/* 标签数量样式 */
.tag-count {
    display: inline-block; /* 确保显示为内联块级元素 */
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    margin-left: 4px;
    font-weight: normal;
}

/* 调试用标签计数样式 */
.debug-count {
    display: inline-block !important;
    font-size: 12px !important;
    color: #fff !important;
    background-color: #ff5722 !important;
    border-radius: 10px !important;
    padding: 2px 8px !important;
    margin-left: 5px !important;
    font-weight: bold !important;
}

/* 活动热力图容器 */
.activity-heatmap {
    width: 100%;
    border-radius: 12px;
    padding: 0 8px;
    margin-bottom: 20px;
   
}

/* 活动统计数字区域 */
.activity-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    text-align: center;
    background: #f4f3ef;
    padding: 10px;
}

/* 每个统计块 */
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 统计数字 */
.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #5a6268;
}

/* 统计标签 */
.stat-label {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
    text-transform: uppercase;
}

/* 热力图网格 */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    margin-top: 10px;
}

/* 热力图单元格 */
.heatmap-cell {
    width: 100%;
    height: 8px;
    border-radius: 2px;
}

/* 热力图级别颜色 - 黑白系列 */
.heatmap-cell.level-0 {
    background-color: #f0f0f0; /* 最浅，几乎白色 */
}
.heatmap-cell.level-1 {
    background-color: #d9d9d9; /* 淡灰色 */
}
.heatmap-cell.level-2 {
    background-color: #b3b3b3; /* 中灰色 */
}
.heatmap-cell.level-3 {
    background-color: #737373; /* 深灰色 */
}
.heatmap-cell.level-4 {
    background-color: #424242; /* 最深，接近黑色 */
}

/* 用户资料盒子 */
.user-profile-box {
    width: 100%;
    height: 260px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 用户资料内容容器 - 调整为水平居中对齐 */
.profile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end; /* 靠右对齐 */
    align-items: center; /* 改为中心对齐，使文字和头像在同一水平线上 */
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    gap: 15px; /* 添加间距控制 */
    padding-right: 40px;
}

/* 用户信息 - 垂直居中 */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 文字右对齐 */
    text-align: right; /* 文本右对齐 */
    justify-content: center; /* 垂直居中 */
}

/* 用户名 */
.profile-name {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 用户标语 */
.profile-tagline {
    font-size: 12px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 用户头像 - 去掉白边 */
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: none; /* 移除白色边框 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片加载中的占位样式 */
.user-profile-box.loading {
    background-image: none !important;
    background-color: #f5f5f5;
    transition: background-image 0.3s ease;
}

.profile-avatar.loading {
    background-color: #e0e0e0;
    position: relative;
}

.profile-avatar.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 点赞按钮动画效果 */
@keyframes like-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #ff4757;
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: like-pulse 0.5s ease-in-out;
}

/* 已点赞状态 */
.like-button .fas.fa-heart {
    color: #ff4757;
}

.fa-heart:before {
    content: "\f004";
    font-size: 12px;
}

/* Toast通知样式 */
.toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: auto;
    max-width: 80%;
}

.toast-message {
    background-color: #f8fff8;
    color: #20ab0e;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 修改toast图标颜色 */
.toast-message .toast-icon {
    margin-right: 10px;
    color: #20ab0e; /* 更鲜明的绿色 */
    font-size: 18px;
}

.toast-message .toast-text {
    flex: 1;
    font-size: 14px;
}

/* 修改loader的透明度 */
.toast-message .toast-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(243, 243, 243, 0.3); /* 降低透明度 */
    border-top: 2px solid rgba(76, 175, 80, 0.5); /* 绿色边框也降低透明度 */
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
    opacity: 0.6; /* 整体降低透明度 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 更具体地针对图标元素 */
.toast-message .toast-icon i,
.toast-message .toast-icon .fas,
.toast-message .toast-icon .fa-check-circle {
    color: #20ab0e !important; /* 使用!important确保优先级 */
}

/* 搜索弹出层样式 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.search-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#post-search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#do-post-search {
    background: #06a653;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* 搜索结果样式 */
.search-result-item {
    display: flex;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-result-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.search-result-excerpt {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章卡片样式 */
.attached-post-card {
    display: none;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative; /* 添加相对定位，使内部的绝对定位元素相对于它定位 */
}

.attached-post-card.active {
    display: flex;
}

.post-card-content {
    display: flex;
    padding: 12px;
    gap: 12px;
    align-items: center;
    position: relative; /* 添加相对定位，确保删除按钮可以正确定位 */
}

.post-card-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-info {
    flex: 1;
    min-width: 0;
}

.post-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card-excerpt {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* 发布后的文章卡片样式 */
.pyq-02 .post-card {
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.pyq-02 .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 文章链接样式 */
.moment-link-wrapper {
    margin-top: 10px;
    display: block; /* 确保块级显示 */
}

.moment-link-wrapper br {
    display: none; /* 隐藏所有换行符 */
}

.moment-link {
    background-color: #e2e8ff;
    display: inline-block;
    color: #4573ff;

    border-radius: 6px;
    text-decoration: none;

    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;

    border: 1px solid #e0e0e0;
}








/* 确保内部元素样式不受WordPress自动格式化影响 */
.moment-link * {
    margin: 0;
    padding: 0;
}

.moment-link-thumbnail {
 
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

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

.moment-link-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.moment-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 4px;
   
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    white-space: nowrap; /* 强制单行显示 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 使用省略号表示超出部分 */
    max-width: 180px; /* 根据需要调整最大宽度 */
}

.moment-link-excerpt {
    font-size: 12px;
    color: #666;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示的最大行数 */
    -webkit-box-orient: vertical;
    overflow: hidden; /* 超出部分隐藏 */
    line-height: 1.4;
}

/* 确保图标样式正确 */
.fa-link {
    color: #4573ff;
    display: inline-block;
    margin-right: 4px;
}
.pyq-03{
    width: 100%;
}


.moment-link-wrapper .moment-link {
    background-color: #f3f2ef;
    padding: 0;
    color: #4573ff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: flex; /* 使用flex而不是flex!important */
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transform: translateY(0); /* 初始位置 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 初始阴影 */
}

/* 添加悬停放大效果 */
.moment-link-wrapper .moment-link:hover {
    transform: translateY(-3px) scale(1.02); /* 向上移动并放大 */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* 增强阴影效果 */
    border-color: #c5d7d2; /* 边框颜色变化 */
}

/* 普通链接使用这个选择器 */
.moment-content a:not(.moment-link) {
    color: #0078d7;
    text-decoration: none;
}

.moment-content a:not(.moment-link):hover {
    text-decoration: underline;
    text-decoration: none;
}

/* 作者标识的样式 */
.admin-tag {
    color: #18a52a;
    font-weight: bold;
    font-size: 0.9em;
    padding: 2px 5px;
    background-color: rgba(18, 185, 40, 0.1);
    border-radius: 3px;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

/* 编辑表单中的文章卡片容器 */
.edit-post-card {
    margin-top: 15px;
    margin-bottom: 15px;
}

.edit-post-card h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 编辑表单中的文章卡片预览 */
.post-card-preview {
    display: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.post-card-preview.active {
    display: block;
}

/* 确保编辑表单和发布表单中的删除按钮样式一致 */
.post-card-preview .post-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: all 0.2s ease;
}

.post-card-preview .post-card-remove:hover,
.attached-post-card .post-card-remove:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.custom-svg-icon{
    width: 10px;

}

/* 为新增的自定义SVG图标添加白色滤镜 */
.social-item .custom-svg-icon {
    width: 15px;  /* 设置合适的图标大小 */
    height: 15px;
    filter: brightness(0) invert(1); /* 这会将SVG图标转换为白色 */
    transition: opacity 0.3s ease; /* 添加过渡效果 */
}

/* 悬停效果 */
.social-item:hover .custom-svg-icon {
    opacity: 0.8; /* 悬停时轻微降低不透明度 */
}

/* 右侧边栏包装容器 */
.right-sidebar-wrapper {
    display: flex
;
    flex-direction: column;
    align-items: stretch;
    /* width: 20%; */
    /* background-color: #fafaf8; */
    /* border-radius: 12px; */
    /* padding: 15px 10px; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    position: sticky;
    top: 110px;
    z-index: 100;
    height: fit-content;
    margin: 0%;
    /* margin: auto; */
}
/* 标签容器样式保持不变 */
.tags-container {
    background-color: #fafaf8;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    z-index: 100;
    height: fit-content;
    margin: 0%;
    margin: auto;
}

/* 新增的小卡片样式 */
.sidebar-extra-card {
    background-color: #fafaf8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    width: 100%;
}

.extra-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #92918c;
}

.extra-card-content {
    font-size: 13px;
    color: #383631;
    line-height: 1.5;
}

.extra-card-footer {
    margin-top: 10px;
    font-size: 12px;
    color: #92918c;
    text-align: right;
}

.extra-card-date {
    font-style: italic;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .content-layout-wrapper {
        flex-direction: column;
    }
    
    .right-sidebar-wrapper {
        width: 100%;
        margin-top: 15px;
    }
    
    .sidebar-extra-card {
        margin-top: 15px;
    }
}

/* ... 保留其他现有样式 */

/* 精选文章卡片样式 */
.featured-post-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-post-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    order: 1;
}

.featured-post-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    width: 80%;
}

.featured-post-title a {
    color: #383631;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-post-title a:hover {
    color: #06a653;
}

/* 优化精选文章卡片简介，确保总是显示两行 */
.featured-post-excerpt {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制为2行 */
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 36px; /* 确保即使内容少也会占据两行高度 */
    margin: 0;
}

.featured-post-thumbnail {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    order: 2;
}

.featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-thumbnail:hover img {
    transform: scale(1.05);
}

.featured-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    order: 3;
}

.featured-post-avatars {
    display: flex;
    align-items: center;
}

.featured-post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    margin-right: -10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.featured-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-avatar:nth-child(1) {
    z-index: 3;
}

.featured-post-avatar:nth-child(2) {
    z-index: 2;
}

.featured-post-avatar:nth-child(3) {
    z-index: 1;
    margin-right: 0;
}

.featured-post-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #92918c;
}

.featured-post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-post-stat i {
    font-size: 12px;
}

.featured-post-loading {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 10px 0;
}

/* 调整右侧栏内元素的宽度对齐 */
.right-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 确保子元素拉伸填充整个宽度 */
    width: 20%;
}

/* 确保标签容器填充整个右侧栏宽度 */
.right-sidebar-wrapper .tags-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px 0; /* 底部间距 */
}

/* 确保精选内容卡片填充整个右侧栏宽度 */
.right-sidebar-wrapper .sidebar-extra-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* 如果有内边距，确保它是包含在元素宽度内的 */
.tags-container, .sidebar-extra-card {
    box-sizing: border-box;
}