/* 通用样式 */
.w1200 {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.job-detail-container {
    display: flex;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}
.left-side {
    flex: 1;
    min-width: 750px;
    max-width: 850px;
}
.right-side {
    flex: 1;
    min-width: 300px;
    max-width: 330px;
}
.section-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}
.section-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.section-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 600;
}
.section-header .more-link {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #666;
    font-size: 14px;
}
.section-body {
    padding: 20px;
}

/* 职位详情卡片 */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.job-title-container {
    flex: 1;
    min-width: 65%;
}
.job-title-container h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
}
.job-title-container h1 .urgent-tag {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: 400;
}
.job-salary {
    font-size: 24px;
    color: #ff4d4f;
    font-weight: 700;
    text-align: right;
    min-width: 150px;
}
.salary-period {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-top: 5px;
}
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.job-tag {
    background: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.job-tag i {
    margin-right: 5px;
}
.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}
.benefit-tag {
    background: #f6f9ff;
    color: #1890ff;
    border: 1px solid #91caff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}
.job-stats {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.job-stats span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}
.job-stats span i {
    margin-right: 5px;
}
.job-content {
    margin-top: 10px;
    line-height: 1.8;
    color: #333;
}
.job-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #333;
}
.job-content p {
    margin: 0 0 15px 0;
}
.job-content ul {
    padding-left: 20px;
    margin: 0 0 15px 0;
}
.job-content ul li {
    margin-bottom: 8px;
}

/* 公司信息卡片 */
.company-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}
.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.company-logo img {
    width: 95%;
    height: 95%;
    object-fit: contain;
}
.company-info {
    flex: 1;
    min-width: 200px;
}
.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}
.company-name:hover {
    color: #1890ff;
}
.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.company-meta-item {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.company-follow-btn {
    margin-left: auto;
    background: #fff;
    border: 1px solid #1890ff;
    color: #1890ff;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.company-follow-btn i {
    margin-right: 5px;
}
.company-follow-btn:hover {
    background: #1890ff;
    color: #fff;
}

/* 相关职位推荐 */
.related-jobs {
    border-top: 1px solid #f0f0f0;
}
.related-job-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.related-job-item:last-child {
    border-bottom: none;
}
.related-job-info {
    flex: 1;
    min-width: 0;
}
.related-job-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.related-job-title:hover {
    color: #1890ff;
}
.related-job-company {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.related-job-tag {
    font-size: 12px;
    color: #666;
}
.related-job-salary {
    font-size: 16px;
    color: #ff4d4f;
    font-weight: 600;
    margin-left: 15px;
    white-space: nowrap;
}

/* 应聘按钮 */
.actions-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}
.action-buttons {
    display: flex;
    gap: 15px;
}
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn i {
    margin-right: 8px;
}
.btn-primary {
    background: #1890ff;
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: #40a9ff;
}
.btn-primary:disabled {
    background: #bae7ff;
    cursor: not-allowed;
}
.btn-outline {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}
.btn-outline:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.btn-danger {
    background: #ff4d4f;
    color: #fff;
    border: none;
}
.btn-danger:hover {
    background: #ff7875;
}
.social-actions {
    display: flex;
    gap: 20px;
}
.social-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    cursor: pointer;
    position: relative;
}
.social-action i {
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s;
}
.social-action:hover i {
    transform: scale(1.2);
}
.social-action.active i.fa-thumbs-up {
    color: #1890ff;
}
.social-action.active i.fa-heart {
    color: #ff4d4f;
}
.social-action.active i.fa-share-alt {
    color: #52c41a;
}
.tooltip {
    position: absolute;
    top: -40px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    width: 80px;
    text-align: center;
}
.social-action:hover .tooltip {
    display: block;
}

/* 模态框样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}
.modal-container {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.modal-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 简历选择列表 */
.resume-list {
    margin-bottom: 20px;
}
.resume-item {
    padding: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.resume-item:hover {
    border-color: #1890ff;
}
.resume-item.selected {
    border-color: #1890ff;
    background: #e6f7ff;
}
.resume-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.resume-meta {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.resume-default {
    background: #52c41a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.no-resume {
    padding: 30px;
    text-align: center;
    color: #999;
}
.no-resume i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #d9d9d9;
}

/* Application Analysis Styles */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-card {
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.analysis-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.analysis-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.analysis-desc {
    font-size: 12px;
    color: #999;
}

.competition-analysis {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.competition-analysis h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.competition-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.competition-meter {
    flex: 1;
    min-width: 200px;
}

.meter-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.applicants-education {
    flex: 1;
    min-width: 200px;
}

.education-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.education-item {
    background-color: #f5f7fa;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
}

.education-name {
    font-weight: 500;
}

.education-count {
    color: #999;
}

.applicants-experience {
    flex: 1;
    min-width: 200px;
}

.experience-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.application-tips {
    background-color: #f9f9f9;
    border-left: 3px solid #1e88e5;
    padding: 15px;
    border-radius: 4px;
}

.application-tips h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.application-tips h4 i {
    color: #ffc107;
    margin-right: 8px;
}

.application-tips ul {
    margin: 0;
    padding-left: 25px;
}

.application-tips li {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .competition-metrics {
        flex-direction: column;
        gap: 15px;
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .w1200 {
        width: 100%;
    }
    .left-side, .right-side {
        min-width: 100%;
        max-width: 100%;
    }
    .job-detail-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
    }
    .job-salary {
        text-align: left;
        margin-top: 10px;
    }
    .company-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-follow-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    .actions-container {
        flex-direction: column;
        align-items: stretch;
    }
    .social-actions {
        justify-content: space-between;
    }
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}