/**
 * 职业介绍页面专用样式
 * 为职业卡片、分类导航等元素提供专门的样式
 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px; /* 导航栏高度 */
}

.page-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 职业分类导航 */
.job-categories {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.category-btn.active,
.category-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* 职业区域 */
.jobs-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.jobs-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02), rgba(247, 147, 30, 0.02));
}

/* 职业网格 */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 职业卡片 */
.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.job-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.job-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.job-requirements,
.job-benefits {
    margin-bottom: 1.5rem;
}

.job-requirements h4,
.job-benefits h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-requirements ul,
.job-benefits ul {
    list-style: none;
    padding: 0;
}

.job-requirements li,
.job-benefits li {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.job-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.job-benefits li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* 职业状态 */
.job-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.job-status.available {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.job-status.limited {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.job-status.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* 添加职业指南 */
.add-job-guide {
    background: var(--darker-bg);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.guide-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.guide-card > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.code-example {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.code-example h4 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.code-example pre {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
}

.code-example code {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .code-example pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-icon {
        font-size: 2.5rem;
    }
    
    .job-card h3 {
        font-size: 1.3rem;
    }
    
    .guide-card {
        padding: 2rem;
    }
    
    .guide-card h3 {
        font-size: 1.5rem;
    }
}

/* 动画效果 */
.job-card {
    animation: fadeInUp 0.6s ease-out;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

/* 悬停效果增强 */
.job-card:hover .job-icon {
    animation: pulse 1s infinite;
}

.job-card:hover .job-status {
    transform: scale(1.05);
}

/* 加载状态 */
.jobs-section.loading {
    opacity: 0.5;
    pointer-events: none;
}

.jobs-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 53, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}
