/* ========== 首页样式 ========== */

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
    color: white;
    padding: 0;
    text-align: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-box .input-group {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    flex: 1;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn {
    background: #2c5aa0;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1a3a52;
    color: white;
}

.hot-keywords {
    margin-top: 1.5rem;
}

.keyword-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 0.5rem 0.5rem 0;
    transition: var(--transition);
}

.keyword-tag:hover {
    background: rgba(255,255,255,0.3);
    color: var(--white-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 统计数据 */
.stats-section {
    padding: 3rem 0;
    background: var(--white-color);
}

.stats-section .stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-section .stat-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 职位分类 */
.categories-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.category-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-jobs {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 热门职位 */
.jobs-section {
    padding: 4rem 0;
    background: var(--white-color);
}

.job-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.job-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.job-title a:hover {
    color: var(--primary-color);
}

.company-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    color: white !important;
}

.job-meta-item i {
    font-size: 0.85rem;
}

.job-meta-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* 深色系badge样式 */
.badge-success.job-meta-item {
    background-color: #1e5631 !important;
    color: white !important;
}

.badge-primary.job-meta-item {
    background-color: #1a3a52 !important;
    color: white !important;
}

.badge-info.job-meta-item {
    background-color: #0d4f5c !important;
    color: white !important;
}

.badge-warning.job-meta-item {
    background-color: #5a4a1a !important;
    color: white !important;
}

.job-tags {
    margin: 1rem 0;
}

.job-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.job-tag.salary {
    background: var(--success-color);
    color: var(--white-color);
    font-weight: 600;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-actions {
    display: flex;
    gap: 0.5rem;
}

/* 企业展示 */
.companies-section {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.company-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 使用指南 */
.guide-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.guide-step {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}
.search-box .input-group {
        border-radius: var(--border-radius);
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input-group .input-group {
        flex-direction: column;
    }
    
    .search-box .input-group {
        border-radius: var(--border-radius);
    }
    
    .search-input, .search-btn {
        width: 100%;
        border-radius: var(--border-radius) !important;
        text-align: center;
    }
    
    .hot-keywords {
        text-align: center;
    }
    
    .keyword-tag {
        margin: 0 0.25rem 0.5rem 0.25rem;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .company-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
