/**
* 招聘模块样式文件
* 基于Layui框架，实现现代化UI设计
*/

/* ===== 顶部样式 ===== */
.top_bg {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 6px 0;
    font-size: 12px;
}

.top_bg .top_left,
.top_bg .top_right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top_right a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.top_right a:hover {
    color: #1890ff;
}

.top_right a.current {
    color: #1890ff;
    font-weight: 600;
}

/* ===== Logo和搜索框背景 ===== */
.logo_search_bg {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo_search_bg > .layui-container > .layui-row {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo a img {
    max-height: 50px;
    width: auto;
}

.search_box {
    padding: 10px 0;
}

.unified_search_container {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 10px;
}

.search_type_selector {
    flex: 0 0 100px;
    border-right: 1px solid #e8e8e8;
}

.search_type_selector .layui-select {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 10px;
}

.search_input_container {
    flex: 1;
    display: flex;
    gap: 0;
}

.search_input_container .layui-input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 0;
    box-shadow: none;
}

.search_input_container .layui-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.search_btn {
    flex: 0 0 100px;
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0;
}

.search_btn:hover {
    background: #40a9ff;
}

.search_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
}

.suggestions_list {
    padding: 0;
    margin: 0;
}

.suggestion_item {
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion_item:hover {
    background: #f0f0f0;
}

.hot_keywords {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hot_label {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.hot_keyword {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 0;
    font-size: 12px;
    transition: all 0.3s;
}

.hot_keyword:hover {
    background: #1890ff;
    color: #fff;
}

.contact_info {
    text-align: right;
    padding-top: 5px;
}

.contact_info p {
    margin: 5px 0;
    color: #666;
    font-size: 12px;
}

.contact_info i {
    margin-right: 5px;
    color: #1890ff;
}

/* ===== 基础样式重置 ===== */
.recruitment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 导航栏样式 ===== */
.nav_bg {
    background: linear-gradient(90deg, #4986BE 0%, #3d73a8 100%);
    border-bottom: 3px solid #2c5a94;
    box-shadow: 0 2px 8px rgba(73, 134, 190, 0.2);
    position: relative;
    z-index: 10;
}

.nav_bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.nav_bg .layui-container {
    position: relative;
    z-index: 1;
}

.nav_bg .layui-nav {
    background: transparent;
    padding: 0;
    height: 40px;
    line-height: 40px;
}

.nav_bg .layui-nav-item {
    margin: 0;
    padding: 0;
    height: 40px;
    line-height: 40px;
    position: relative;
}

.nav_bg .layui-nav-item a {
    color: #fff;
    font-weight: 500;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav_bg .layui-nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav_bg .layui-nav-item:hover a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav_bg .layui-nav-item:hover a::before {
    width: 80%;
}

.nav_bg .layui-nav-item.layui-this a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

.nav_bg .layui-nav-item.layui-this a::before {
    width: 100%;
    background: #fff;
}

/* ===== 搜索框样式 ===== */
.search-container {
    background: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 20px;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    display: flex;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #40a9ff;
}

/* ===== 招聘信息卡片样式 ===== */
.recruitment-section {
border-radius: 0;
}

/* ===== 职位卡片网格布局 ===== */
.layui-card .layui-card-body .job-cards-grid {
display: grid !important;
grid-template-columns: repeat(4, 1fr) !important;
gap: 30px !important;
margin: 0 ;
width: 100% ;
padding: 0 ;
}

.job-card {
background: #fff ;
border: 2px solid #d9d9d9 ;
border-radius: 0 !important;
padding: 20px ;
transition: all 0.3s ease !important;
position: relative !important;
overflow: hidden !important;
box-sizing: border-box !important;
box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
margin-bottom: 5px !important;
}

.job-card:hover {
transform: translateY(-4px) !important;
box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
border-color: var(--primary-color) ;
border-width: 2px ;
}

.job-card-header {
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #f0f0f0;
}

.job-title {
margin: 0;
margin-right: 10px;
}

.job-title a {
color: #333 ;
font-size: 16px ;
font-weight: 600 !important;
text-decoration: none !important;
line-height: 1.4 ;
display: block !important;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

.job-title a:hover {
color: #ff0000;
}

.job-salary {
background: linear-gradient(135deg, #ff6b6b, #ff8e53) ;
color: #fff ;
padding: 5px 10px ;
border-radius: 0 !important;
font-size: 13px ;
white-space: nowrap !important;
text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.job-tags {
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}

.job-tag {
display: flex !important;
align-items: center !important;
color: #666 ;
background: #f8f9fa ;
border-radius: 0 !important;
border-left: 3px solid var(--primary-color) !important;
font-weight: 500 !important;
}

.job-tag i {
margin-right: 4px;
font-size: 12px;
color: var(--primary-color);
}

.job-company {
font-size: 14px ;
margin-bottom: 8px !important;
}

.job-company i {
margin-right: 6px;
}

.job-time {
color: #999 ;
font-weight: 400 !important;
}

.job-time i {
color: #999;
}

.job-card-footer {
text-align: center;
padding-top: 10px;
border-top: 1px solid #f0f0f0;
}

.job-card-footer .layui-btn {
width: 100%;
border-radius: 0 !important;
height: 32px;
line-height: 32px;
}

.talent-salary {
background: linear-gradient(135deg, #52c41a, #73d13d) ;
}

.talent-tag {
border-left: 3px solid #52c41a !important;
}

.talent-tag i {
color: #52c41a;
}

.section-header {
padding: 15px 20px;
}

.section-header h3 {
font-size: 18px;
font-weight: 600;
}

.job-list, .talent-list {
padding: 20px;
}

.job-item:last-child, .talent-item:last-child {
border-bottom: none;
}

.job-item:hover, .talent-item:hover {
margin: 0 -20px;
border-radius: 0 !important;
}

/* ===== 职位信息样式 ===== */
.job-info h4 {
margin: 0 0 10px 0;
}

.job-info h4 a {
text-decoration: none;
transition: color 0.3s ease;
}

.job-details {
flex-wrap: wrap;
gap: 15px;
margin-bottom: 10px;
}

.job-details span {
background: #f0f0f0;
color: #666;
padding: 4px 8px;
}

.job-details .salary {
background: #fff2e8;
color: #fa8c16;
}

.job-details .location {
background: #e6f7ff;
}

.company-info {
align-items: center;
}

.talent-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
flex-shrink: 0;
}

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

.talent-details h4 {
margin: 0 0 8px 0;
}

.talent-meta {
gap: 10px;
margin-bottom: 8px;
}

.talent-meta span {
padding: 2px 6px;
border-radius: 0;
font-size: 11px;
}

.filter-row {
gap: 20px;
}

.filter-item {
gap: 8px;
}

.filter-item label {
white-space: nowrap;
}

.filter-item .layui-select {
min-width: 120px;
}

/* ===== 分页样式 ===== */
.pagination-container {
margin-top: 30px;
}

.pagination {
display: inline-flex;
gap: 5px;
}

.pagination a {
display: inline-block;
padding: 8px 12px;
border: 1px solid #e6e6e6;
}

.pagination a:hover,
.pagination a.active {
background: #ff0000;
border-color: #ff0000;
}

.pagination a.disabled {
color: #ccc;
cursor: not-allowed;
}

.pagination a.disabled:hover {
border-color: #e6e6e6;
}

.position-item, .company-item {
padding: 10px 0;
}

.breadcrumb-item {
font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
content: '>';
margin: 0 8px;
}

.breadcrumb-item a:hover {
text-decoration: underline;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
position: fixed;
right: 30px;
bottom: 30px;
width: 50px;
display: none;
justify-content: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
z-index: 1000;
}

.back-to-top:hover {
transform: translateY(-2px);
}

/* ===== 消息提示样式 ===== */
.message {
top: 20px;
right: 20px;
z-index: 1001;
animation: slideIn 0.3s ease;
}

.message.success {
background: #52c41a;
}

.message.error {
background: #ff4d4f;
}

@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

/* ===== 加载状态样式 ===== */
.loading {
padding: 40px;
}

.loading::before {
content: '';
width: 20px;
height: 20px;
border: 2px solid #e6e6e6;
border-top: 2px solid #1890ff;
animation: spin 1s linear infinite;
vertical-align: middle;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.job-list-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0 !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: none !important;
}

.job-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border-color: #1890ff !important;
    transform: translateY(-2px) !important;
}

.job-item-main {
    flex: 1;
}

.job-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.job-item-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 15px 0 0 !important;
}

.job-item-title a {
    color: #333;
    text-decoration: none;
}

.job-item-title a:hover {
    color: #1890ff;
}

.job-item-salary {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ff4d4f !important;
    background: transparent !important;
}

.job-item-company {
    margin-bottom: 8px;
}

.job-item-company a {
    color: #666;
    font-size: 14px;
}

.job-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.job-item-meta .meta-item {
    display: flex;
    align-items: center;
}

.job-item-meta .meta-item i {
    margin-right: 4px;
    color: #ccc;
    font-size: 14px;
}

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

.job-item-time {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
.layui-card .layui-card-body .job-cards-grid,
.job-cards-grid {
grid-template-columns: repeat(3, 1fr) ;
gap: 25px !important;
}

.talent-cards-grid {
grid-template-columns: repeat(3, 1fr) !important;
}
}

@media (max-width: 768px) {
.recruitment-container {
padding: 0 10px;
}

    .nav_bg {
        background: linear-gradient(90deg, #4986BE 0%, #3d73a8 100%);
    }

    .nav_bg .layui-nav-item {
        margin: 0;
    }

    .nav_bg .layui-nav-item a {
        padding: 0 12px;
        font-size: 13px;
}

/* 移动端职位卡片优化 */
.layui-card .layui-card-body .job-cards-grid,
.job-cards-grid {
grid-template-columns: repeat(2, 1fr) !important;
gap: 20px !important;
}

.job-card {
padding: 15px;
}

.job-salary {
padding: 3px 6px;
}

.search_type_selector {
border-right: none;
}

.search_type_selector .layui-select {
height: 45px;
line-height: 45px;
border-radius: 0;
}

.search_input_container .layui-input {
border-radius: 0;
}

.search_btn {
border-radius: 0;
}

.filter-row {
align-items: stretch;
}

.talent-avatar {
align-self: center;
}

.back-to-top {
right: 15px;
bottom: 15px;
width: 45px;
}

.hot_keywords {
margin-top: 10px;
}

.hot_keyword {
margin: 0 4px 3px 0;
padding: 3px 8px;
}
}

@media (max-width: 480px) {
.section-header {
padding: 10px 15px;
}

.job-item, .talent-item {
padding: 15px 0;
}

.job-item:hover, .talent-item:hover {
margin: 0 -15px;
}

/* 超小屏幕单列布局 */
.layui-card .layui-card-body .job-cards-grid,
.job-cards-grid {
grid-template-columns: 1fr !important;
gap: 18px !important;
}

.job-card {
padding: 12px;
}

.job-title a {
font-size: 13px;
}

.job-tags {
gap: 4px;
}
}

.logo_search_bg .logo img {
max-width: 100%;
}

.search_type_selector {
border-right: 1px solid #e6e6e6;
}

.search_type_selector .layui-select {
min-width: 80px;
}

.search_type_selector .layui-select:focus {
box-shadow: none;
}

.search_btn {
background: var(--primary-color);
color: white;
transition: all 0.3s;
min-width: 60px;
}

.search_btn:hover {
background: #0d8ce8;
}

.search_suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
border-top: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
max-height: 300px;
overflow-y: auto;
}

.suggestions_list {
padding: 0;
}

.suggestion_item {
transition: background 0.2s;
}

.hot_keywords {
margin-top: 15px;
}

.hot_keyword {
margin: 0 8px 5px 0;
padding: 4px 12px;
border-radius: 0;
}

.contact_info {
text-align: right;
}

.contact_info p {
margin: 5px 0;
}

.contact_info i {
    margin-right: 5px;
}

/* ===== 页脚样式 ===== */
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    margin-top: 40px;
    padding: 30px 0;
    color: #666;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin: 10px 0;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #1890ff;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    margin: 0 15px;
}

/* ===== 打印样式 ===== */
@media print {
    .nav_bg, .search-container, .filter-container, .back-to-top, .pagination-container, .logo_search_bg {
        display: none;
    }

    .recruitment-section {
        box-shadow: none;
        border: 1px solid #e6e6e6;
    }

    .job-item, .talent-item {
        break-inside: avoid;
    }
}
/* 招聘分类 */
.recruitment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.recruitment-categories .category-item {
    display: block;
    padding: 12px 10px;
    text-align: center;
    background: #f8f9fa;
    color: #333;
    border-radius: 0;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.recruitment-categories .category-item:hover {
    background: #fff;
    color: #1e90ff;
    border-color: #1e90ff;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.1);
    transform: translateY(-2px);
}

/* 人才列表项目 */
.talent-list-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.talent-list-item:hover {
    border-color: #1e90ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.talent-item-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.talent-item-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 2px solid #f0f0f0;
}

.talent-item-info {
    flex: 1;
}

.talent-item-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.talent-item-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.talent-item-name a {
    color: #333;
    text-decoration: none;
}

.talent-item-name a:hover {
    color: #1e90ff;
}

.talent-item-salary {
    margin-left: 15px;
    color: #ff4d4f;
    font-weight: 600;
    font-size: 16px;
}

.talent-item-meta {
    margin-bottom: 10px;
}

.talent-item-meta .meta-item {
    margin-right: 15px;
    color: #666;
    font-size: 14px;
}

.talent-item-meta .meta-item i {
    margin-right: 4px;
    color: #1e90ff;
}

.talent-item-skills {
    color: #888;
    font-size: 13px;
}

.talent-item-right {
    text-align: right;
    min-width: 150px;
}

.talent-item-time {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

/* 企业列表项目 */
.company-list-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-list-item:hover {
    border-color: #1e90ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.company-item-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.company-item-logo {
    width: 70px;
    height: 70px;
    border-radius: 0;
    margin-right: 20px;
    border: 1px solid #eee;
    object-fit: contain;
    padding: 5px;
    background: #fff;
}

.company-item-info {
    flex: 1;
}

.company-item-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.company-item-name a {
    color: #333;
    text-decoration: none;
}

.company-item-name a:hover {
    color: #1e90ff;
}

.company-item-meta {
    margin-bottom: 10px;
}

.company-item-meta .meta-item {
    margin-right: 15px;
    color: #666;
    font-size: 14px;
}

.company-item-meta .meta-item i {
    margin-right: 4px;
    color: #1e90ff;
}

.company-item-bottom {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 13px;
}

.company-item-right {
    text-align: right;
    min-width: 150px;
}

/* ===== 筛选表单优化 ===== */
.layui-form[lay-filter="filterForm"] .layui-form-label,
.layui-form[lay-filter="companyFilterForm"] .layui-form-label,
.layui-form[lay-filter="talentFilterForm"] .layui-form-label {
    width: 70px;
    padding: 9px 5px;
    text-align: center;
}

.layui-form[lay-filter="filterForm"] .layui-input-block,
.layui-form[lay-filter="companyFilterForm"] .layui-input-block,
.layui-form[lay-filter="talentFilterForm"] .layui-input-block {
    margin-left: 80px;
}

/* 兼容小屏幕 md2 布局 */
@media screen and (min-width: 992px) {
    .layui-col-md2 .layui-form-label {
        width: 60px;
    }
    .layui-col-md2 .layui-input-block {
        margin-left: 70px;
    }
}

/* 强制等宽筛选栏 */
.filter-flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.filter-flex-item {
    flex: 1;
    min-width: 280px;
}

.filter-flex-btn {
    flex: 0 0 auto;
    padding-top: 1px;
}

@media screen and (max-width: 768px) {
    .filter-flex-item {
        flex: 1 1 100%;
    }
}
