/* 职位列表项样式 */
.job-item {
    padding: 16px 20px;
    border-bottom: 1px solid #EFEFEF;
    transition: all 0.3s ease;
}

.job-item:last-child {
    border-bottom: none;
}

.job-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.job-main-info {
    flex: 1;
}

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.job-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.job-details-link {
    margin-left: auto;
}

.job-details-link a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.job-details-link a:hover {
    color: var(--primary-color);
}

.job-requirements {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.job-tag {
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.job-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.job-company,
.job-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.job-company img,
.job-location img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 实习/校招/社招标签 */
.job-status {
    background: #e6f3ff;
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}

.job-status.internship {
    background: #F9C84B33;
    color: #F9C84B;
}

.job-status.campus {
    background: #CA6BF833;
    color: #CA6BF8;
}

.job-status.social {
    background: #68C2FF33;
    color: #68C2FF;
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.job-actions .layui-icon {
    font-size: 14px !important;
}

.job-actions .layui-btn {
    height: 36px;
    font-size: 14px;
    border-radius: 6px;
    padding: 9px 16px;
    min-width: 88px;
    line-height: 14px;
}

.collect-btn {
    background: #FAFBFC;
    color: #9FA2A8;
    border: 1px solid #e0e0e0;
}

.collect-btn:hover {
    background: #f5f5f5;
    border-color: #ff4757;
    color: #ff4757;
}

.collect-btn.favorited {
    background: #fff2f2;
    color: #ff4757;
    border-color: #ff4757;
}

.collect-btn.favorited:hover {
    background: #ff4757;
    color: #fff;
}

.apply-btn {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.apply-btn.applied {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.apply-btn.applied:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}

/* 失效职位样式 */
.apply-btn.expired {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.apply-btn.expired:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}

.job-item.job-expired .job-details-link span {
    color: #ccc;
    cursor: not-allowed;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* 职位列表容器通用样式 */
.job-list, .applications-list {
    position: relative;
    min-height: 100px;
}

/* 职位列表的加载状态覆盖样式 */
.job-list-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 12px;
    min-height: 200px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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