/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@supports (--css: variables) {
  :root {
    /* 基础颜色系统 - 便于整体风格切换 */
    /* 主色调 */
    --primary-color: #1e88e5;
    --primary-dark: #0066cc;
    --primary-light: #3594fa;
    
    /* 辅助色 */
    --error-color: #ef5350;
    --warning-color: #ffe08a;
    
    /* 中性色 */
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --border-light: #ddd;
    --border-lighter: #eee;
    
    /* 背景色 */
    --bg-light: #f5f5f5;
    --bg-medium: #f8f9fa;
    --bg-white: #fff;
    
    /* 特殊颜色 */
    --burgundy: #800020;
    --marksgreen: #008c8c;
    --tiffany: #81d8d0;
    --deep-blue: #182C61;
    --navy: #2c3e50;
    --link-color: #111e36;
  }
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 8px; /* 控制分页项间距 */
}
.pagination span {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
}
.pagination .more {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: var(--bg-medium);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 500;
}

.page-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-medium);
    color: var(--text-light);
}
.back-button {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: var(--bg-medium);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}
.pagination  a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin: 0 3px; /* 增加左右间距 */
}

.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
}

/* Collapsible Navigation Styles */
.collapsible .nav-header {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    padding: 4px 0;
}
.nav-title {
    width: 200px;
    margin-right: 10px;
    white-space: nowrap;
}

.toggle-btn {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: var(--bg-light);
    font-size: 0.9em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-title  {
    width: auto;
    margin-right: 10px;
    white-space: nowrap;
}

.nav-content,.nav-content-line {
    flex-grow: 1;    
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    max-width: 85%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-content.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    height: auto;
}

/* Category Navigation Styles */
.category-nav {
    background: var(--bg-white);
    padding: 10px 2%;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 6px;
}
.breadcrumbs {
    margin-bottom: 10px;
    padding: 5px 8px;
    background-color: var(--bg-medium);
    border-radius: 6px;
}
.search-box {
    margin-bottom: 5px;
    padding: 2px 10px;
    background: var(--bg-medium);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-box a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 1px 10px;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 0.9em;
    /* 初始未选中状态 */
    /* 选中状态通过.active类控制 */
}

.search-box a:hover {
    color: #fff;
    background: #0066cc;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.search-box a.active {
    color: #fff;
    background: #0066cc;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.date-picker {
    padding: 1px 10px;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    background: #fff;
    font-size: 0.9em;
    margin-left: 10px;
}
.header  {
    color: var(--text-medium);
}
.header .tab-nav  {
    color: var(--primary-color);
    padding: 5px 10px;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size:medium;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header .tab-nav.active {
    color: var(--navy);
    cursor: not-allowed;
    pointer-events: none;
    font-size: unset;   
}
.header .tab-nav a:hover {
    color: #007bff;
    transform: scale(1.05);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(120deg, rgba(0,123,255,0.1) 0%, transparent 80%);
}
.header .h1pagetip {
    color: var(--text-medium);
    cursor: not-allowed;  
    font-size: 0.6em;
}
.tag_new {
    font-size: 12px;
    color: #f0f0f0;
    padding: 0px 4px;
    border-radius: 3px;
    background-color: rgb(255, 56, 82);
}
.tag_Luck {
    font-size: 12px;
    color: #f0f0f0;
    padding: 0px 4px;
    border-radius: 3px;
    background-color:#007bff;
}

@keyframes underline {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}
/* Footer Styles */
.site-footer {
    background-color: var(--navy);
    color: white;
    padding: 50px 5% 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.footer-column p {
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qrcode a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.2s;
}

.qrcode a:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
}


/* Job List Styles */
#job-list {
    margin: 20px 0;
    display: grid;
    grid-gap: 15px;
}
.header .tab-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: #007bff;
    animation: underline 0.3s ease-out;
}



/* SEO Section Styles */
.msg {
    display: flex;
    gap: 0.8rem;
    background: #fff9e6;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--warning-color);
}

.msg > span {
    font-weight: 600;
    color: #856404;
    min-width: 80px;
}

.msg p {
    margin: 0;
    flex: 1;
}

.seo-section {
    margin: 20px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.seo-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.seo-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-content p {
    margin: 0;
    text-align: justify;
}

.seo-content a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-content a:hover {
    color: #004499;
    text-decoration: underline;
}
.seo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-links li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.seo-links li  a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.seo-blocks {
    list-style: none;
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.seo-blocks li {
    display: inline-block;
    margin: 0;
    padding: 0;
    background: #f9f9f9; /* 浅灰背景更柔和 */
    border: 1px solid #e9e9e9; /* 浅灰细边框 */
    border-radius: 12px; /* 更大的圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* 更扩散的阴影 */
    padding: 4px 8px; /* 内边距 */
    border-radius: 4px; /* 圆角 */      
    font-size: 18px;
    line-height: 1.8;       
    gap: 8px;
}

/* 职位列表容器 */
.job-list {
  margin: 5px 0;
  overflow: hidden;
}

.detail-title-campus {
    text-align: center;
    color:#182C61;
    margin: 1.2rem 0 1rem;
}
.detail-PositionTitle {
    font-size: 18px;
    font-weight: normal;
    color: #333;
    margin: 15px 15px;
}
/* 职位元信息样式 */
.job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 15px;
  font-size: 14px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  color: #666;
}

.meta-item a {
  color: #666 !important;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.meta-item a:hover {
  opacity: 0.8;
}

.meta-item em.ps {
  color: #999;
  margin-right: 4px;
}

.meta-divider {
  color: #ddd;
  padding: 0 5px;
}

/* 来源声明容器 */
.sourcetips {
  margin: 12px 0;
  padding: 12px;
  background: #fff9e6;
  border-left: 2px solid #ffd90071;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.sourcetips > span {
  white-space: nowrap;
  font-size: 14px;
  color: #666;
  padding-top: 2px;
  font-weight: 600;
}

.sourcetips > p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.detail-content {
    padding-left: 2em;
    margin: 1.5rem 0;
    line-height: 1.5;
}
.detail-departmentIntro,
.detail-jobRequirement,
.detail-highLight,
.detail-jobDuty {
    margin-top: 2px;
    padding: 2px 0;
    font-size: 18px;
    display: block;
}

.job-detail label {
    display: block;
    margin: 0.8rem 0;
    padding-left: 1.2em;
    font-style: normal;
}

.job-detail .i {
    font-weight: 500;
    color: #2c3e50;
    margin-left: 0.5em;
}
  
/* 列表头部 */
.list-header {
  padding: 4px;
  background: #f8f9fa;
}

.list-header-grid {
  display: grid;
  grid-template-columns:1.5fr 1.8fr 1fr 0.9fr 0.8fr 120px 70px;
  gap: 4px;
}
.header-item {
  font-weight: 600;
  color: #495057;
}

.job-item-block {
    margin: 15px 0px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.job-item-header{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px;
    padding-left: 5px;
}
.job-item-header a:hover {
    padding-left: 10px;
}
.matched-content {
    padding: 2px;
    padding-left: 5px;
    line-height: 1.6;
}
.job-item-header .title-h2,
.job-item-header .title-h3,
.job-item-header .date-value {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.job-item-header .title-h2 {
    margin-right: 10px;
    color: var(--primary-color);
}

.job-item-header .title-h3 {
    margin-right: 10;
    color: var(--primary-color);
}
.wenku-item-block .title-h3 a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}
.wenku-item-summary {
    padding: 4px;
    padding-left: 20px;
    line-height: 1.6;
}
.job.job-item-block:hover {
  background-color: var(--bg-medium);
}
.job-item-block a:hover {
  color: var(--primary-light);
}

/* 修改匹配词为红色 */
.job-item-block em {
  color: var(--tiffany) !important;
  font-weight: bold;
  font-style: normal;
}
.list-body .job-item-block:nth-child(even) {
  background-color: var(--bg-medium);
}
.post-line{
    text-align: center;
    border: 0px solid #eee;
    padding: 12px; 
    gap: 12px;   
}
.post-button  {
    text-align: center;
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 8px 20px;
    border: 1px solid #2CBA9A;
    border-radius: 6px;
    background: #4e6ef2;
    color: white;
    border-color: #4e6ef2;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px; 
    line-height: 1.6;   
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);   
}
.post-tip-mouse {
    cursor: default;
}

.post-button:hover {
    background: white;
    color: #4e6ef2;
    border-color: #4e6ef2;
    filter: drop-shadow(0 2px 4px rgba(44,186,154,0.3));
    transform: translateY(-1px);
    padding-right: 21px;   
}

.share-line{
    text-align: right;
    border: 0px solid #eee;
    padding: 12px; 
    gap: 12px;
}
.share-line > a {
    color: #666;
    margin-left: 12px;
}

.source-name,
.experience-name,
.date-value,
.btn-view,
.location-name {
  color: #6c757d;
  font-size: 0.9em;
  opacity: 0.8;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

h4 {
    color: #6c757d;
    font-weight: normal;
    font-size: 1em;  
    font-weight: normal;  
}

@media (max-width: 768px) {
    .source-name,.experience,.location-name { max-width: 100px;}
    .btn-view {max-width: 70px;}
    .city-tab {padding: 5px;width: 150px;height: 110px;}
    .nav-content-line {-webkit-line-clamp: unset;line-clamp: unset;height: auto;}
    .seo-section {margin: 20px 0;padding: 15px;font-size: 13px;}
    .seo-section h2 {font-size: 16px;}
    .job-meta {flex-wrap: wrap;}
    .job-meta > div:last-child {width: 100%;text-align: right;margin-top: 8px;}    
    .sourcetips {padding: 0.8rem;margin: 1rem 0;}
    .job-detail label {padding-left: 0.8em;margin: 0.6rem 0;}
    .pagination {margin: 10px 0;gap: 2px; }    
    .pagination a { vertical-align: middle;padding: 4px 4px;margin: 0 2px;}   
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 2%;
    }
    .header-logo img {
        height: 40px;
    }
    .main-nav {
        width: 100%;
        margin-bottom: 10px;
    }
    .main-nav ul {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
        gap: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    .pagination a {
        padding: 6px 10px;
        margin: 2px;
    }
}   

/* 响应式适配 */
@media (max-width: 1200px) {
  .list-header-grid,
  .job-item {
    grid-template-columns: repeat(7, minmax(100px, 1fr));
  }
  .btn-view {
    max-width: 70px;
  }  
}