/* ============================================================
   人力资源页面样式
   ============================================================ */

/* 页面横幅 */
.page-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #2989d8;
}

.breadcrumb-item.active {
    color: #2989d8;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
}

/* 主内容布局 */
.main-content {
    padding: 50px 0;
    background-color: #fff;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 左侧侧边栏 */
.sidebar {
    background-color: #fff;
}

.sidebar-header {
    background-color: #2989d8;
    padding: 20px;
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-top: none;
}

.sidebar-menu-item {
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-menu-link:hover {
    background-color: #f8f9fa;
    color: #2989d8;
    padding-left: 25px;
}

.sidebar-menu-item.active .sidebar-menu-link {
    color: #2989d8;
    font-weight: 500;
}

.sidebar-menu-item.active .sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #2989d8;
}

/* 右侧内容区域 */
.content-main {
    background-color: #fff;
}

/* 人力资源详情 */
.hr-detail {
    background-color: #fff;
}

.detail-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #2989d8;
    margin-bottom: 30px;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 详情内容 */
.detail-content {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #2989d8;
}

.detail-content h3:first-child {
    margin-top: 0;
}

.detail-content strong {
    color: #333;
    font-weight: 600;
}

.detail-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.detail-content ul li {
    padding-left: 20px;
    margin-bottom: 12px;
    position: relative;
}

.detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #2989d8;
    border-radius: 50%;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .breadcrumb-wrapper {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-content {
        font-size: 14px;
    }
    
    .detail-content h3 {
        font-size: 18px;
        margin: 25px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 160px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 13px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-content {
        font-size: 13px;
    }
    
    .detail-content h3 {
        font-size: 16px;
    }
    
    .detail-content p {
        text-indent: 1.5em;
    }
}
