/* 页面背景 - 添加渐变过渡效果 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #dcdcdc 0%, #f9f9f9 100%);
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    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; 

}



/* 原有主容器 */
.index-container {
  padding-bottom: 0px;
  width: 850px; /* 主容器固定宽（根据你的需求调整） */
  flex-shrink: 0; /* 防止被挤压 */
}

.right-sidebar {
  width: 180px; /* 固定宽度 */
  height: 100%; /* 和主容器高度对齐（可选） */
  background: #f9f9f9; /* 背景色，区分主容器 */
  /* 核心：固定定位 + 精准计算水平位置 */
  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%);
  */
}




/* 1. 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 8px 10px;
     background-color: #ffffff;
    border-bottom: 3px solid #06b356;
}

.search-wrapper {
    flex: 1;
    display: flex;
    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);
    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 {
    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;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #06b356;
}

/* 2. 分类导航样式 - 网格布局 */
.category-container {
    background-color: #fff;
    margin-top: 5px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 10px;
    position: relative;
    padding-bottom: 10px;
}

.category-scroll-wrapper {
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 210px;
}

.category-scroll-wrapper.expanded {
    max-height: 700px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 5px;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    color: #000;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    flex: 0 0 calc(20% - 2px);
    text-align: center;
    box-sizing: border-box;
}

.category-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #f5f5f5;
}

.category-icon img {
    width: 45px;
    height: 45px;
}

.category-name {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 15px;
}

.category-item.active {
    color: #07c160;
}

.category-item.active .category-icon {
    background-color: #e6f7ef;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #07c160;
}

.category-toggle {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07c160;
    font-size: 13px;
    background-color: #fafafa;
    border-top: 0.5px solid #f0f0f0;
    cursor: pointer;
    text-align: center;
    padding: 0px 0;
    font-size: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin: 0 2px;
}

.toggle-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.category-toggle .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 5px solid #666;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.category-toggle .arrow.down {
    transform: rotate(180deg);
}

/* 3. 信息列表样式 */
.post-list-container {
    padding: 10px;
    background-color: #f9f9f9;
}

.post-list {
    margin-bottom: 10px;
}

/* 置顶信息标签 */
.top-post-label {
    font-size: 12px;
    color: #ff7d00;
    margin: 8px 0;
    padding-left: 8px;
    border-left: 2px solid #ff7d00;
    font-weight: 500;
}

/* 单条信息样式 */
.post-item {
    display: flex;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.post-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 置顶信息特殊样式 */
.post-item.top-post {
    border-top: 2px solid #ff7d00;
}

/* 信息图片 */
.post-image {
    width: 100px;
    height: 100px;
    padding: 15px 5px;
    line-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-item:hover .post-image img {
    transform: scale(1.05);
}

/* 信息内容 */
.post-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 信息标题 */
.post-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 信息描述 */
.post-desc {
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* 信息元数据（分类、时间、浏览量） */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

.post-category {
    color: #999999;
    margin-right: 8px;
    font-weight: 500;
    background-color: #eeeeeee0; 
    border: 0.5px solid #a0a0a031;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 14px;
}

.view-count {
    display: flex;
    max-width: 30px;
    align-items: center;
}

/* 置顶标签 */
.top-tag {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 24px;
    line-height: 24px;
    background-color: #ff7d00;
    color: #fff;
    font-size: 11px;
    text-align: center;
    transform: rotate(45deg) translate(15px, -10px);
    z-index: 1;
    box-shadow: 0 1px 2.5px rgba(255, 125, 0, 0.2);
}

/* 加载更多提示 */
.load-more-container {
    padding: 0 10px 20px;
}

.load-more {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #e6f7ef;
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 1.5px solid #eee;
    border-top-color: #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #07c160;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空数据提示 */
.empty-tip {
    text-align: center;
    padding: 75px 0;
}

.empty-tip img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-tip text {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.go-publish-btn {
    width: 120px;
    height: 36px;
    line-height: 36px;
    background-color: #07c160;
    color: #fff;
    font-size: 14px;
    border-radius: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.go-publish-btn:hover {
    background-color: #06b356;
    transform: scale(1.05);
}

/* 4. 悬浮发布按钮 */
.publish-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #07c160;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(7, 193, 96, 0.4);
    z-index: 99;
    transition: all 0.3s;
    text-decoration: none;
}

.publish-btn:hover {
    transform: scale(1.08);
    background-color: #06b356;
}

.publish-text {
    font-size: 10px;
    color: #fff;
    margin-top: 3px;
}

/* 图片布局样式调整 */
/* 3张及以上图片专用样式 */
.post-item.three-or-more-images {
    gap: 8px; /* 行间距 */
    min-height: auto; /* 移除固定高度限制 */
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.three-or-more-images .post-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5; 
}

.three-or-more-images .post-images-container {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 150px; /* 固定图片区域高度 */
    margin-bottom: 0px; /* 增加图片区域底部间距 */
    background-color: #ffffff; 
}

.three-or-more-images .post-image-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.three-or-more-images .post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     transition: transform 0.3s ease;
}
.three-or-more-images .post-image-item img:hover {
  transform: scale(1.05); /* 1.05表示放大到105%，可自行调整数值 */
}

.three-or-more-images .image-count-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 1px 4px;
    border-radius: 2px;
}

.three-or-more-images .post-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 5px; /* 增加元数据顶部间距 */
}

/* 2张及以下图片保持原有样式 */
.post-item.multiple-images {
    display: flex;
    padding: 10px;
    gap: 8px;
}

.post-item.multiple-images .post-title {
    margin-bottom: 5px;
}

.post-item.multiple-images .post-images-container {
    display: flex;
    gap: 4px;
    height: 150px;
}

.post-item.multiple-images .post-image-item {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.post-item.multiple-images .post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-item.multiple-images .post-image-item img:hover {
  transform: scale(1.05); /* 1.05表示放大到105%，可自行调整数值 */
}

.post-item.multiple-images .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 13px;
}


/* 广告位样式 */
.ad-banner {
    width: calc(100% - 0px);
    max-width: 100%;
    margin: 0 auto 5px;
    overflow: hidden;
    border-radius: 8px;
    height: 215px;
    padding: 0;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
    
}

.ad-slides {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
    height: 100%;
}

.ad-slide {
    min-width: 100%;
    height: 100%;
}

.ad-slide img {
    width: 100%;
    display: block;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.ad-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 6px;
}

.ad-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.ad-indicator.active {
    background-color: #ffffff;
}

/* 热门标签样式 */
.hot-tags {
    padding: 10px 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
}
.hot-tags-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    background-color: #ffffff; 
    color: #ff7d00;
    padding: 2px 5px;
    border-radius: 5px; /* 圆角更柔和 */
    margin: 2px;
    font-size: 14px;
    white-space: nowrap; /* 标签文字不换行 */
    transition: all 0.3s;
    border: 1px solid #ff7d00;
    cursor: pointer;
}
.tag-item:hover {
    background-color: #ffffff;
    color: #ff7d00;
}


.tag-itemon {
    background-color: #e2fced; 
    color: #00b95a;
    padding: 2px 5px;
    border-radius: 5px; /* 圆角更柔和 */
    margin: 2px;
    font-size: 14px;
    white-space: nowrap; /* 标签文字不换行 */
    transition: all 0.3s;
    border: 1px solid #07c160;
    cursor: pointer;
}
.tag-itemon:hover {
  background-color: #e2fced;
  color: #00b95a;
}

/* 同城资讯横向布局样式 */
.city-news { 
    background-color: #fff; 
    padding: 5px 15px; 
    margin: 10px 0; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative;
    display: flex; 
    align-items: center;
}
.news-title {
    font-size: 18px;
    color: #000;
    margin-right: 20px; 
    white-space: nowrap; 
    flex-shrink: 0; 
    line-height:18px;
}

.news-container { 
    height: 20px; 
    overflow: hidden; 
    position: relative; 
    flex: 1;
}
.news-list {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    transition: transform 0.5s ease;
}
.news-item { 
    height: 20px; 
    line-height: 20px;
    font-size: 13px;
    color: #333; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-left: 10px;
    animation: jumpScale 0.8s infinite ease-in-out;
}
/* 定义跳动+缩放的动画关键帧 */
@keyframes jumpScale {
    0% {
        transform: translate(0, 0) scale(1); /* 初始状态：原位、原尺寸 */
    }
    50% {
        transform: translate(0, 0) scale(1.5); /* 中间状态：上跳+放大 */
    }
    100% {
        transform: translate(0, 0) scale(1); /* 结束状态：回到原位、原尺寸 */
    }
}

/* 招聘群卡片容器 */
.recruit-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* 左侧内容（头像+文字） */
.group-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* 群头像 */
.group-avatar {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: url("../../api/images/jiaqun.jpg") center/cover;
}
/* 文字内容 */
.group-text h3 {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    margin-bottom: 3px;
}
.group-text p {
    font-size: 12px;
    color: #999;
    line-height: 1.0;
    margin-top: 0;
    padding-top: 0;
}
/* 右侧进群按钮 */
.join-btn {
    padding: 5px 10px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.join-btn:hover {
    background-color: #06b058;
}

/* 弹窗遮罩层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
/* 弹窗显示状态 */
.modal-mask.show {
    opacity: 1;
    visibility: visible;
}
/* 弹窗主体 */
.modal-content {
    width: 85%;
    max-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-mask.show .modal-content {
    transform: scale(1);
}
/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close::before, .modal-close::after {
    content: '';
    width: 2px;
    height: 16px;
    background-color: #666;
    position: absolute;
}
.modal-close::before {
    transform: rotate(45deg);
}
.modal-close::after {
    transform: rotate(-45deg);
}
/* 弹窗内容样式 */
.modal-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}
.modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}
/* 二维码占位（替换为实际群二维码） */
.qrcode {
    width: 180px;
    height: 180px;
    background: url("../../api/images/erweima.jpg") center/cover;
    margin: 0 auto 15px;
    border-radius: 6px;
}
.modal-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
}


/* 信息图片 */
.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: 160px;
    height: 160px;
    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;
}

.post-images-single {
  width: 100%;
  margin: 8px 0;
}
/* 单张图片盒子 */
.post-image-single {
  width: 100%;
}
/* 图片自适应通栏 */
.post-image-single img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}
.iscolor {
    
    background-color: #e6f7ef;
    
}
