/* 详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    margin-bottom: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: white;
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-nav .current {
    color: white;
    font-weight: 500;
}

/* 主要内容区域 */
.detail-main {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧职位详情 */
.job-detail-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-detail-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 职位头部信息 */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.job-title-area {
    flex: 1;
}

.job-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.job-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-urgent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.tag-remote {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.job-salary {
    text-align: right;
    margin-left: 20px;
}

.salary-amount {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    line-height: 1;
}

.salary-period {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 职位元信息 */
.job-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #5a6c7d;
}

.meta-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* 职位描述 */
.job-description h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.description-content {
    line-height: 1.8;
    color: #5a6c7d;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content h4 {
    font-size: 16px;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 8px;
    position: relative;
}

.description-content li::marker {
    color: #667eea;
}

/* 右侧发布人信息 */
.publisher-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publisher-card,
.company-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publisher-card:hover,
.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 发布人头部 */
.publisher-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.publisher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.publisher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publisher-info {
    flex: 1;
}

.publisher-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.publisher-title {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 8px 0;
}

.publisher-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6c7d;
}

.publisher-company i {
    color: #667eea;
}

/* 发布人统计 */
.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 联系方式 */
.contact-section h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.contact-label {
    color: #7f8c8d;
    min-width: 70px;
}

.contact-value {
    color: #2c3e50;
    flex: 1;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-phone-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-phone-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary.favorited {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-secondary.favorited:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* 公司信息卡片 */
.company-card h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.company-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-details h5 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.company-details p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 3px 0;
}

.company-description {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.company-description p {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* 相关职位推荐 */
.related-jobs {
    padding: 50px 0;
    background: white;
}

.related-jobs .section-title {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.related-jobs .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.related-jobs .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-jobs .job-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.related-jobs .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.related-jobs .job-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.related-jobs .job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #7f8c8d;
}

.related-jobs .job-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.related-jobs .job-company {
    font-size: 14px;
    color: #5a6c7d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .publisher-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .detail-main {
        padding: 20px 0;
    }
    
    .job-detail-section,
    .publisher-card,
    .company-card {
        padding: 20px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .job-salary {
        text-align: left;
        margin-left: 0;
    }
    
    .job-title {
        font-size: 24px;
    }
    
    .salary-amount {
        font-size: 28px;
    }
    
    .job-meta-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .related-jobs .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 15px 0;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        gap: 8px;
    }
    
    .job-detail-section,
    .publisher-card,
    .company-card {
        padding: 15px;
    }
    
    .job-title {
        font-size: 20px;
    }
    
    .salary-amount {
        font-size: 24px;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .publisher-avatar {
        align-self: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-detail-section,
.publisher-card,
.company-card {
    animation: fadeInUp 0.6s ease-out;
}

.publisher-card {
    animation-delay: 0.2s;
}

.company-card {
    animation-delay: 0.4s;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}