  /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background-color: #f8f8f8;
            font-size: 16px;
            color: #333;
            line-height: 1.6;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
           /* 主容器水平居中 */
            display: flex;
            justify-content: center;
            min-height: 100vh;
            padding-right: 170px; 
        
        }
        
        .container {
            padding-bottom: 0px;
            width: 850px; /* 主容器固定宽（根据你的需求调整） */
            flex-shrink: 0; /* 防止被挤压 */
            background-color: #e6f7ef;
        }
        


        .right-sidebar {
        width: 180px; /* 固定宽度 */
        height: 100%; /* 和主容器高度对齐（可选） */
        background: #fff; /* 背景色，区分主容器 */
        /* 核心：固定定位 + 精准计算水平位置 */
        padding:0 5px;
        text-align:center;
        position: fixed;
        z-index: 3;
        left: calc(50% + 350px); /* 50%（页面中轴） + 主容器宽度的一半（600/2）= 主容器右边缘 */
        top: 0; /* 顶部对齐主容器 */
        /* 若要垂直居中，替换top：
        top: 50%;
        transform: translateY(-50%);
        */
        }



        /* 内容容器 */
        .content {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
            line-height: 1.8;
        }
        
        /* 头部样式 */
        .header__title {
            font-size: 20px;
            font-weight: 600;
            line-height: 1.4;
            margin-bottom: 12px;
            color: #1a1a1a;
        }
        
        .header__meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #888;
            font-size: 13px;
            padding-bottom: 14px;
            border-bottom: 1px solid #f5f5f5;
            margin-bottom: 15px;
        }
        
        .meta__category {
            background-color: #f5f7f5;
            padding: 5px 12px;
            border-radius: 10px;
            font-size: 14px;
        }
        
        /* 详情内容 */
        .detail__content {
            font-size: 16px;
            line-height: 1.8;
            margin: 16px 0;
            white-space: pre-line;
            color: #333;
           
        }
        
        .show-contact-btn {
            color: #07c160;
            cursor: pointer;
            text-decoration: underline;
        }
        
        /* 图片区域 */
        .detail__images {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
            margin: 18px 0 5px;
        }
        
        .images__item {
            width: 31%;
            border-radius: 6px;
            overflow: hidden;
            background-color: #f5f5f5;
        }
        
        .images__img {
            width: 100%;
            height: 110px;
            object-fit: cover;
            transition: transform 0.2s ease;
        }
        
        .images__img:active {
            transform: scale(0.98);
        }
        
        /* 底部信息 */
        .footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid #f5f5f5;
        }
        
        .footer__author {
            display: flex;
            align-items: center;
        }
        
        .author__avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 8px;
            background-color: #f5f5f5;
        }
        
        .info__name {
            font-weight: 500;
            margin-bottom: 2px;
            color: #333;
        }
        
        .info__view {
            font-size: 13px;
            color: #888;
            margin-left: 20px;
        }
        
        /* 评论区域 */
        .comments-section {
            background-color: #fff;
            border-radius: 8px;
            padding: 18px 5px;
        }
        
        .comments-header {
            display: flex;
            align-items: center;
            padding-left: 15px;
            margin-bottom: 15px;
            padding-bottom: 9px;
            border-bottom: 1px solid #f5f5f5;
            background-color: #e6f7ef;
        }
        
        .comments-title {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a1a;
        }
        
        .comments-count {
            font-size: 13px;
            color: #888;
            margin-left: 5px;
        }
        
        .comments-list {
            margin-bottom: 15px;
        }
        
        .comment-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #f5f5f5;
        }
        
        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-content {
            flex: 1;
            margin-left: 9px;
        }
        
        .comment-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            color: #888;
            margin-bottom: 4px;
        }
        
        .comment-author {
            color: #333;
            font-weight: 500;
        }
        
        .comment-text {
            font-size: 15px;
            color: #333;
            line-height: 1.6;
        }
        
        .empty-comments {
            text-align: center;
            padding: 30px 0;
            font-size: 14px;
            color: #888;
        }
        
        /* 加载更多评论样式 */
        .load-more-container {
            display: flex;
            justify-content: center;
            padding: 10px 0;
        }
        
        .load-more-btn {
            width: 150px;
            height: 35px;
            line-height: 35px;
            background-color: #f5f5f5;
            color: #666;
            font-size: 14px;
            border-radius: 17px;
            border: none;
            cursor: pointer;
        }
        
        .load-more-btn:active:not([disabled]) {
            background-color: #e5e5e5;
        }
        
        .load-more-btn[disabled] {
            color: #999;
            background-color: #f5f5f5;
        }
        
        .no-more-text {
            font-size: 13px;
            color: #999;
            padding: 10px 0;
        }
        
        /* 评论输入区域 */
        .comment-input-area {
            display: flex;
            align-items: flex-start;
            background-color: #f7f7f7;
            border-radius: 20px;
            padding: 6px 10px;
            position: relative;
            margin-top: 5px;
        }
        
        .comment-input {
            flex: 1;
            min-height: 80px;
            line-height: 1.5;
            font-size: 14px;
            color: #333;
            padding: 5px 0;
            padding-right: 80px;
            border: none;
            background: transparent;
            resize: none;
            outline: none;
        }
        
        .comment-submit-btn {
            position: absolute;
            right: 10px;
            bottom: 10px;
            max-width: 120px;
            height: 30px;
            line-height: 30px;
            background-color: #07c160;
            color: #fff;
            font-size: 13px;
            border-radius: 15px;
            border: none;
            cursor: pointer;
            padding: 0 10px;
        }
        
        .comment-submit-btn:active:not([disabled]) {
            background-color: #05a850;
        }
        
        .comment-submit-btn[disabled] {
            background-color: #e5e5e5;
            color: #b3b3b3;
            cursor: not-allowed;
        }
        
        /* 登录提示 */
        .login-tip {
            text-align: center;
            margin-top: 10px;
            font-size: 12px;
            color: #07c160;
            cursor: pointer;
        }
        
        .login-tip:active {
            color: #05a850;
        }
        
        /* 输入为空提示 */
        .empty-tip {
            text-align: center;
            margin-top: 10px;
            font-size: 12px;
            color: #ff7d00;
        }
        
        /* 评论提交消息 */
        .comment-message {
            text-align: center;
            margin: 10px 0;
            padding: 8px;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .comment-message.success {
            background-color: #e6f7ef;
            color: #07c160;
        }
        
        .comment-message.error {
            background-color: #fee;
            color: #e53935;
        }
        
       
        /* 图片预览模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }
                /* 图片容器：Flex布局，自动换行 */
            .detail_images {
                display: flex;
                flex-wrap: wrap; /* 超出自动换行 */
                gap: 10px; /* 图片之间的间距（可选，替代margin） */
            }

            /* 图片项：控制一行显示3个，自动计算宽度 */
            .images_item {
                flex: 0 0 calc(33.333% - 10px); /* 33.333% 实现一行3个，减去gap的间距 */
                box-sizing: border-box; /* 确保padding/border不影响宽度计算 */
                width: 31%;
                border-radius: 12rpx;
                overflow: hidden;
                background-color: #f5f5f5;
            }

            /* 图片：自适应容器宽度，避免变形 */
            .images_img {
                width: 100%; /* 填满容器 */
                height: 220px;
                object-fit: cover;
                transition: transform 0.2s ease;
                border-radius: 4px;
            }
            .images_img:hover {
            -webkit-transform: scale(1.05);
                -ms-transform: scale(1.05);
            transform: scale(1.05);
            }
            

/* 信息图片 */
.rightpost-image {
    width: 170px;
    height: 120px;
    padding: 5px 5px;
    line-height: 120px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: flex;

}

.rightpost-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    border-radius: 4px; /* 已有圆角 */
    overflow: hidden; /* 关键：裁剪子元素超出的部分 */
    
}

.rightpost-image  img:hover {
       -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform
            : scale(1.05);
}


.rightpost2-image {
    width: 170px;
    height: 170px;
    padding: 2px 5px;
    line-height: 120px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: flex;

}
.rightpost2-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    border-radius: 4px; /* 已有圆角 */
    overflow: hidden; /* 关键：裁剪子元素超出的部分 */
    
}

.rightpost2-image img:hover {
       -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}

 .rightpost-title {
    font-size: 14px;
    color: #000;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    text-decoration: none;
}
a {
  text-decoration: none;
}
            


/* 底部版权区域容器 */
.footer-copyright {
  width: 100%;
  background-color: #333333; /* 深灰色背景 */
  color: #ffffff; /* 文字白色，提升可读性 */
  padding: 20px 0; /* 上下内边距，增加空间感 */
  font-size: 14px; /* 适合版权文字的字号 */
  line-height: 1.6; /* 行高优化阅读体验 */
  text-align: center; /* 文字居中（也可根据需求改为左/右对齐） */
}

/* 处理p标签的间距（对应原代码里的mt-2） */
.footer-copyright p {
  margin: 0;
}
.footer-copyright .mt-2 {
  margin-top: 8px; /* 第二个p标签的上边距 */
}

/* 链接样式（如ICP备案、营业执照） */
.footer-copyright a {
  color: #cccccc; /* 链接浅灰色，区分普通文字 */
  text-decoration: none; /* 去掉默认下划线 */
}
.footer-copyright a:hover {
  color: #ffffff; /*  hover时变白色 */
  text-decoration: underline; /*  hover时下划线提示可点击 */
}


/* 搜索栏样式 */
.search-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 8px 10px;
    background-color: #ffffff;
    border-bottom: 3px solid #06b356;
}




.search-wrapper {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 34px;
    padding: 0 12px;
    background-color: #fff;
    border-radius: 17px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    margin-right: 8px;
}

.search-wrapper:focus-within {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.search-icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.search-input {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    height: 100%;
    font-size: 13px;
    border: none;
    outline: none;
    background: transparent;
}

.search-placeholder {
    color: #999;
}

.search-btn {
    max-width: 60px;
    height: 34px;
    line-height: 34px;
    background-color: #07c160;
    color: #fff;
    font-size: 13px;
    border-radius: 12.5px;
    margin-left: 8px;
    padding: 0 10px;
    border: none;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #06b356;
}