/* 招聘页红色区域独立样式（仅参考 community 风格，与 community 页面无关） */

.job-feed-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.job-feed-wrap .job-tabs {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-feed-wrap .job-tab-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.job-feed-wrap .job-tab-btn.active {
    color: #ff3b30;
    border-bottom-color: #ff3b30;
}

.job-feed-wrap .job-tab-btn:hover {
    color: #ff3b30;
}

.job-feed-wrap .job-content {
    min-height: 200px;
    display: grid;
    gap: 15px;
}

.job-feed-wrap .loading-posts {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-feed-wrap .job-publish-row {
    text-align: center;
    margin-bottom: 20px;
}

.job-feed-wrap .job-publish-btn {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255,59,48,0.3);
    transition: all 0.3s;
}

.job-feed-wrap .job-publish-btn:hover {
    background: #ff1f14;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255,59,48,0.4);
}

/* 帖子卡片（风格参考 community） */
.job-feed-wrap .job-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.job-feed-wrap .job-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.job-feed-wrap .job-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.job-feed-wrap .job-post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.job-feed-wrap .job-post-user-info {
    flex: 1;
}

.job-feed-wrap .job-post-username {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.job-feed-wrap .job-post-level {
    display: inline-block;
    background: #ff3b30;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.job-feed-wrap .job-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.job-feed-wrap .job-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}

.job-feed-wrap .job-post-content {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: break-word;
}

.job-feed-wrap .job-post-content p {
    margin: 0 0 12px 0;
}

.job-feed-wrap .job-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.job-feed-wrap .job-post-content img:hover {
    transform: scale(1.02);
}

.job-feed-wrap .job-post-content a {
    color: #1890ff;
    text-decoration: none;
}

.job-feed-wrap .job-post-content a:hover {
    text-decoration: underline;
}

.job-feed-wrap .job-post-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.job-feed-wrap .job-post-video-container {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.job-feed-wrap .job-post-video-container video {
    width: 100%;
    max-height: 500px;
    display: block;
}

.job-feed-wrap .job-post-actions {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.job-feed-wrap .job-post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 50px;
}

.job-feed-wrap .job-post-action-btn:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
}

.job-feed-wrap .job-post-action-btn.active {
    color: #ff3b30;
    font-weight: 600;
}

/* 发布弹窗 */
.job-publish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
}

.job-publish-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.job-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
}

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

.job-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.job-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.job-modal-body {
    padding: 20px;
}

.job-form-group {
    margin-bottom: 16px;
}

.job-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.job-form-group input[type="text"],
.job-form-group textarea,
.job-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.job-form-group textarea {
    resize: vertical;
}

.job-upload-btn {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

.job-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.job-submit-btn {
    flex: 1;
    padding: 12px 20px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.job-submit-btn:hover {
    background: #ff7875;
}

.job-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.job-cancel-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.job-cancel-btn:hover {
    background: #e8e8e8;
}

.job-video-preview-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.job-video-preview-container video {
    width: 100%;
    max-height: 400px;
    display: block;
}

/* 富文本编辑器 - 与截图二一致 */
.job-rich-editor {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}
.job-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: #fafafa;
    border-bottom: 1px solid #d9d9d9;
}
.job-rich-toolbar button {
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
.job-rich-toolbar button:hover {
    background: #e6f7ff;
    color: #1890ff;
}
.job-rich-toolbar button.active {
    background: #e6f7ff;
    color: #1890ff;
}
.job-rich-toolbar .job-rich-toolbar-label {
    display: inline-block;
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    margin: 0;
}
.job-rich-toolbar .job-rich-toolbar-label:hover {
    background: #e6f7ff;
    color: #1890ff;
}
.job-rich-toolbar .job-separator {
    width: 1px;
    background: #d9d9d9;
    margin: 0 6px;
    align-self: stretch;
}
/* 图片选择框：视觉隐藏但可被 label 触发，支持多选 */
.job-form-group.job-rich-editor-has-file-input {
    position: relative;
}
.job-rich-image-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.job-form-group .job-post-content-editor {
    border: none;
    outline: none;
    min-height: 200px;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
}
.job-form-group .job-post-content-editor:empty:before {
    content: attr(data-placeholder);
    color: #999;
}
.job-form-group .job-post-content-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}
.job-form-group .job-post-content-editor a {
    color: #1890ff;
    text-decoration: underline;
}
/* 视频（可选）一行：输入框 + 蓝色「上传视频」按钮 */
.job-video-upload-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.job-video-upload-row input[type="text"] {
    flex: 1;
    min-width: 0;
}
.job-upload-video-btn {
    padding: 10px 16px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}
.job-upload-video-btn:hover {
    background: #40a9ff;
}
.job-upload-video-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.job-upload-image-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.job-upload-image-btn:hover {
    background: #73d13d;
}
.job-upload-image-btn.go-uploading,
.job-upload-image-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* 帖子下方留言框（黄色圈：评论） */
.job-feed-wrap .job-comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.job-feed-wrap .job-comments-list {
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.job-feed-wrap .job-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.job-feed-wrap .job-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.job-feed-wrap .job-comment-body {
    flex: 1;
}

.job-feed-wrap .job-comment-author {
    font-weight: 600;
    color: #333;
}

.job-feed-wrap .job-comment-date {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}

.job-feed-wrap .job-comment-text {
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

.job-feed-wrap .job-no-comments {
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}

.job-feed-wrap .job-comment-form {
    margin-top: 10px;
}

.job-feed-wrap .job-comment-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.job-feed-wrap .job-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.job-feed-wrap .job-emoji-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.job-feed-wrap .job-emoji-btn:hover {
    background: #eee;
}

.job-feed-wrap .job-comment-submit {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.job-feed-wrap .job-comment-submit:hover {
    background: #ff1f14;
}

.job-feed-wrap .job-comment-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 多图网格展示 */
.job-post-images-grid {
    display: grid;
    gap: 8px;
    margin: 15px 0;
}

.job-post-images-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.job-post-images-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.job-post-images-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.job-post-images-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.job-post-images-grid img:hover {
    transform: scale(1.03);
}

/* 图片灯箱效果 */
.job-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.job-image-lightbox.active {
    display: flex;
}

.job-image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.job-image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-image-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 文章详情链接 */
.job-post-detail-link {
    display: inline-block;
    padding: 8px 16px;
    background: #1890ff;
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s;
}

.job-post-detail-link:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* 加载更多按钮 */
.job-load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.job-load-more-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #f0f7ff;
}

.job-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.job-load-more-btn.loading {
    color: #1890ff;
}

/* 分页信息 */
.job-pagination-info {
    text-align: center;
    padding: 10px;
    color: #999;
    font-size: 13px;
}

/* 单张图片样式 */
.job-post-image-single {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.job-post-image-single:hover {
    transform: scale(1.02);
}
