/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #f8fffb 0%, #f7f8fa 120rpx);
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    -webkit-text-size-adjust: 100%;
}

.index-container {
    padding-bottom: 60px;
}

/* 搜索栏样式 */
.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: #e6f7ef;
}

.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;
}

/* 分类导航样式 */
.category-container {
    background-color: #fff;
    margin-top: 0px;
    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;
    -webkit-transition: max-height 0.5s ease;
    transition: max-height 0.5s ease;
    max-height: 210px;
}

.category-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[5];
    grid-template-columns: repeat(5, 1fr);
    padding: 5px 3px;
}

.category-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 5px 3px;
    color: #000;
    font-size: 16px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(20% - 2px);
            flex: 0 0 calc(20% - 2px);
    text-align: center;
    box-sizing: border-box;
}

.category-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: 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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: 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;
    border-radius: 4px;
    margin: 0 2px;
}

.toggle-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.toggle-icon.expanded {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            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;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.category-toggle .arrow.down {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

.category-scroll-wrapper.expanded {
    max-height: 700px;
}

/* 信息列表样式 */
.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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.post-item:hover {
    -webkit-transform: translateY(-1px);
        -ms-transform: translateY(-1px);
            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: 110px;
    height: 130px;
    padding: 10px 5px;
    line-height: 120px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    overflow: hidden;
    
}

.post-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;
}

.post-item:hover .post-image img {
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}

/* 信息内容 */
.post-content {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            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;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* 信息元数据 */
.post-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 30px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            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;
    -webkit-transform: rotate(45deg) translate(15px, -10px);
        -ms-transform: rotate(45deg) translate(15px, -10px);
            transform: rotate(45deg) translate(15px, -10px);
    z-index: 1;
    box-shadow: 0 1px 2.5px rgba(255, 125, 0, 0.2);
}

/* 多图布局样式 */
.post-images-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 6px;
}

.post-image-item {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 100px;
}

.post-item.multiple-images {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding: 0px 0px;
    
}

.post-item.multiple-images .post-image-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
       
}

.post-item.multiple-images .post-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* 广告位样式 */
.ad-banner {
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 8px;
    height: 100px;
    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: 5px 8px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
}

.hot-tags-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.tags-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 4px;
    justify-content: space-between;
}

.tag-item {
    background-color: #ffffff;
    color: #ff7d00;
    padding: 4px 8px;
    border-radius: 5px;
    margin: 2px;
    font-size: 14px;
    white-space: nowrap;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    border: 1px solid #ff7d00;
    cursor: pointer;
}

.tag-item:hover {
    background-color: #fff3e0;
}

/* 同城资讯样式 */
.city-news {
    background-color: #fff;
    padding: 8px 15px;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.news-title {
    font-size: 16px;
    color: #000;
    margin-right: 10px;
    white-space: nowrap;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    line-height: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.news-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-left: 0;
    -webkit-animation: jumpScale 0.8s infinite ease-in-out;
            animation: jumpScale 0.8s infinite ease-in-out;
}

@-webkit-keyframes jumpScale {
    0% {
        -webkit-transform: translate(0, 0) scale(1);
                transform: translate(0, 0) scale(1);
    }
    50% {
        -webkit-transform: translate(0, 0) scale(1.5);
                transform: translate(0, 0) scale(1.5);
    }
    100% {
        -webkit-transform: translate(0, 0) scale(1);
                transform: translate(0, 0) scale(1);
    }
}

@keyframes jumpScale {
    0% {
        -webkit-transform: translate(0, 0) scale(1);
                transform: translate(0, 0) scale(1);
    }
    50% {
        -webkit-transform: translate(0, 0) scale(1.5);
                transform: translate(0, 0) scale(1.5);
    }
    100% {
        -webkit-transform: translate(0, 0) scale(1);
                transform: translate(0, 0) scale(1);
    }
}

.news-container {
    height: 20px;
    overflow: hidden;
    position: relative;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.news-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -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;
}

.news-item {
    height: 20px;
    line-height: 20px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 招聘群卡片容器 */
.recruit-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.group-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e6f7ef;
    margin-right: 10px;
    background-image: url('../api/images/jiaqun.jpg');
    background-size: cover;
    background-position: center;
}

.group-text h3 {
    font-size: 16px;
    color: #000;
    margin-bottom: 3px;
}

.group-text p {
    font-size: 13px;
    color: #666;
}

.join-btn {
    width: 80px;
    height: 32px;
    line-height: 32px;
    background-color: #07c160;
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.join-btn:hover {
    background-color: #06b356;
}

/* 3张及以上图片专用样式 */
.post-item.three-or-more-images {
    gap: 8px;
    min-height: auto;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 4px;
    width: 100%;
    height: 100px;
    margin-bottom: 0px;
    background-color: #ffffff;
}

.three-or-more-images .post-image-item {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.three-or-more-images .post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-count-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px 0 0 0;
}

/* 加载更多样式 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #07c160;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
            animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* 加载更多提示 */
.load-more-container {
    padding: 0 10px 20px;
}

.load-more {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    cursor: pointer;
    background-color: #e6f7ef;
}

.load-more .loading-spinner {
    width: 14px;
    height: 14px;
    border: 1.5px solid #eee;
    border-top-color: #07c160;
    margin-right: 6px;
}

/* 空数据提示 */
.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;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.go-publish-btn:hover {
    background-color: #06b356;
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}



/* 弹窗样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    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;
    -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
            transform: scale(0.9);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.modal-mask.show .modal-content {
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.modal-close::before, .modal-close::after {
    content: '';
    width: 2px;
    height: 16px;
    background-color: #666;
    position: absolute;
}

.modal-close::before {
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
}

.modal-close::after {
    -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
            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;*/
    background:#fff;
    margin: 0 auto 15px;
    border-radius: 6px;
}

.modal-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
}