/* 企业人力资源中心样式 */

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-name {
    font-weight: 500;
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* 统计头部 */
.stats-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card.primary {
    border-left: 4px solid #10B981;
}

.stat-card.success {
    border-left: 4px solid #3B82F6;
}

.stat-card.warning {
    border-left: 4px solid #F59E0B;
}

.stat-card.danger {
    border-left: 4px solid #EF4444;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

/* 功能模块网格 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.module-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.module-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.module-icon {
    font-size: 1.5rem;
    color: #10B981;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.module-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.module-badge {
    background: #10B981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.module-content {
    padding: 1.5rem;
}

.module-description {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4B5563;
}

.feature-item i {
    color: #10B981;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.btn-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);
    color: white;
    border: none;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    transform: translateY(-2px);
}

.btn-dark {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
    color: white;
    border: none;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    transform: translateY(-2px);
}

/* 招聘数据区域 */
.recruitment-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: #10B981;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
}

.recruitment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.recruitment-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
}

.recruitment-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

/* 招聘漏斗样式 */
.funnel-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.funnel-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stage-name {
    min-width: 80px;
    color: #6B7280;
    font-size: 0.9rem;
}

.stage-bar {
    flex: 1;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.stage-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
    border-radius: 12px;
    transition: width 1s ease;
}

.stage-count {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: #1F2937;
}

/* 职位排行样式 */
.job-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.job-item:hover {
    transform: translateX(4px);
    border-color: #10B981;
}

.job-rank {
    width: 28px;
    height: 28px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.job-item:nth-child(2) .job-rank {
    background: #34D399;
}

.job-item:nth-child(3) .job-rank {
    background: #6EE7B7;
}

.job-item:nth-child(4) .job-rank {
    background: #A7F3D0;
}

.job-item:nth-child(5) .job-rank {
    background: #D1FAE5;
}

.job-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-title {
    font-weight: 500;
    color: #1F2937;
}

.job-company {
    font-size: 0.85rem;
    color: #6B7280;
}

.job-applicants {
    color: #10B981;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 效率指标样式 */
.efficiency-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.efficiency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.efficiency-label {
    color: #6B7280;
    font-size: 0.9rem;
}

.efficiency-value {
    font-weight: 600;
    color: #1F2937;
}

.efficiency-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.efficiency-change.positive {
    color: #10B981;
}

.efficiency-change.negative {
    color: #EF4444;
}

/* 日志区域 */
.logs-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.log-item.success {
    border-left-color: #10B981;
}

.log-item.info {
    border-left-color: #3B82F6;
}

.log-item.warning {
    border-left-color: #F59E0B;
}

.log-item i {
    font-size: 1.25rem;
}

.log-item.success i {
    color: #10B981;
}

.log-item.info i {
    color: #3B82F6;
}

.log-item.warning i {
    color: #F59E0B;
}

.log-time {
    min-width: 60px;
    color: #6B7280;
    font-size: 0.9rem;
}

.log-action {
    flex: 1;
    color: #1F2937;
}

/* 页脚 */
.footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.footer-link {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .recruitment-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .recruitment-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .brand-subtitle {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .module-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .module-title {
        text-align: center;
    }
    
    .funnel-stage {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stage-bar {
        width: 100%;
    }
}