/* ============================================
   海智汇绍兴人才网 - 新首页样�?V4
   参考主流招聘网站设�?
   美观、大气、人性化、科技�?
   精细化设计，增强层次�?
   ============================================ */

/* ============================================
   1. 核心内容区域
   ============================================ */
.main-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
}



.main-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(52,152,219,0.02) 100%);
    pointer-events: none;
}

.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   2. 热门职位区域
   ============================================ */
.job-section {
    margin-bottom: 50px;
    position: relative;
}



.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

.title-en {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.section-more {
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border: 1px solid #3498db;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.section-more:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

/* 职位网格 */
.job-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52,152,219,0.15);
    border-color: rgba(52,152,219,0.2);
}

.job-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.job-name:hover {
    color: #3498db;
}

.job-company {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-salary {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 12px;
}

.job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(52,152,219,0.1), rgba(41,128,185,0.1));
    color: #666;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid rgba(52,152,219,0.2);
}

/* ============================================
   3. 招聘资讯区域（四个独立板块）
   ============================================ */
.news-section {
    margin-bottom: 50px;
    position: relative;
}



.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}

.news-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-section-title i {
    font-size: 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-section-title h2 {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

/* 四个独立卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(240,240,240,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 12px 35px rgba(52,152,219,0.2);
    border-color: rgba(52,152,219,0.3);
    transform: translateY(-8px);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.05));
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-title i {
    font-size: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-card-title h3 {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.news-card-more {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.news-card-more:hover {
    color: #2980b9;
    gap: 6px;
}

.news-card-body {
    padding: 15px 20px;
    min-height: 280px;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: linear-gradient(90deg, rgba(52,152,219,0.03), transparent);
    padding-left: 8px;
}

.news-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #3498db;
}

.news-date {
    color: #999;
    font-size: 11px;
    margin-left: 10px;
    white-space: nowrap;
}

/* 响应式设�?*/
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-section-title h2 {
        font-size: 24px;
    }
}

/* ============================================
   4. 招聘资讯和招聘会区域（旧版，保留兼容�?
   ============================================ */
.info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 40px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(240,240,240,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 12px 35px rgba(52,152,219,0.2);
    border-color: rgba(52,152,219,0.3);
    transform: translateY(-6px);
}

.info-card:hover::before {
    opacity: 1;
}

.info-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.05));
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-title i {
    font-size: 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-title h3 {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.info-more {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.info-more:hover {
    color: #2980b9;
    gap: 8px;
}

.info-body {
    padding: 20px 25px;
    min-height: 280px;
}

/* 资讯列表 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: linear-gradient(90deg, rgba(52,152,219,0.03), transparent);
    padding-left: 10px;
}

.news-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #3498db;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-left: 15px;
    white-space: nowrap;
}

/* 招聘会轮�?*/
.fair-body {
    position: relative;
    min-height: 280px;
}

.fair-carousel {
    position: relative;
    overflow: hidden;
}

.fair-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.fair-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fair-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fair-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF7B1A, #FF9F4A);
}

.fair-card:hover {
    box-shadow: 0 8px 25px rgba(255,123,26,0.15);
    border-color: rgba(255,123,26,0.3);
}

.fair-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.fair-card-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.fair-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF7B1A, #FF9F4A);
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.fair-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fair-info-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.fair-info-row i {
    width: 20px;
    color: #FF7B1A;
    margin-right: 8px;
    font-size: 16px;
}

.fair-info-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fair-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fair-card-views {
    font-size: 13px;
    color: #999;
}

.fair-card-views i {
    color: #FF7B1A;
    margin-right: 5px;
}

.fair-card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #FF7B1A, #FF9F4A);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,123,26,0.3);
}

.fair-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,123,26,0.4);
}

/* 招聘会指示器 */
.fair-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.fair-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fair-indicator.active {
    background: linear-gradient(135deg, #FF7B1A, #FF9F4A);
    width: 24px;
    border-radius: 4px;
}

.fair-indicator:hover {
    background: #FF9F4A;
}

.fair-info-item i {
    color: #3498db;
}

/* ============================================
   4. 加载状态和空数�?
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-spinner::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-data i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* ============================================
   5. 响应式设�?
   ============================================ */
@media (max-width: 1200px) {
    .job-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .job-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-more {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 20px;
    }
    
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-more {
        align-self: flex-end;
    }
}

/* ============================================
   6. 科技感装饰元�?
   ============================================ */
.tech-decoration {
    position: absolute;
    pointer-events: none;
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52,152,219,0.3), transparent);
    animation: techLine 3s ease-in-out infinite;
}

@keyframes techLine {
    0%, 100% { opacity: 0.3; width: 0; }
    50% { opacity: 1; width: 100%; }
}

.glow-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   7. 公示公告和图片新闻区�?
   ============================================ */
.announcement-section {
    
    padding: 50px 0;
    position: relative;
    margin-top: -30px;
}



.announcement-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    
}

.announcement-section .info-section {
    margin-bottom: 0;
}

/* 公示公告卡片 */
.announcement-card .info-header {
    background: linear-gradient(135deg, rgba(255,107,107,0.05), rgba(255,142,83,0.05));
}

.announcement-card .info-title i {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-card .info-more {
    color: #ff6b6b;
}

.announcement-card .info-more:hover {
    color: #ff8e53;
}

/* 公告列表 */
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-item {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: linear-gradient(90deg, rgba(255,107,107,0.03), transparent);
    padding-left: 10px;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.announcement-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    transition: color 0.3s ease;
}

.announcement-title:hover {
    color: #ff6b6b;
}

.announcement-date {
    color: #999;
    font-size: 12px;
    margin-left: 15px;
    white-space: nowrap;
}

/* 图片新闻卡片 */
.photo-news-card .info-header {
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.05));
}

.photo-news-body {
    padding: 20px 25px;
    min-height: 280px;
}

/* 图片新闻网格 */
.photo-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-news-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
}

.photo-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-news-item:hover .photo-news-img {
    transform: scale(1.05);
}

.photo-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.photo-news-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 响应式调�?*/
@media (max-width: 992px) {
    .photo-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .announcement-section {
        padding: 30px 0;
    }
    
    .photo-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   8. 背景图片区域过渡优化
   ============================================ */
#mslider {
    position: relative;
}

#mslider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, 
        rgba(255,255,255,1) 0%, 
        rgba(255,255,255,0.95) 20%, 
        rgba(255,255,255,0.7) 50%, 
        rgba(255,255,255,0.3) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#mslider img {
    display: block;
    width: 100%;
}

/* ============================================
   9. 整体页面层次感增�?
   ============================================ */
body {
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #f8f9fa 100%);
}

/* 加载动画优化 */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #3498db;
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 空数据提示优�?*/
.empty-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.empty-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 板块分隔线动�?*/
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

.section-header::after,
.news-section-header::after {
    animation: slideIn 0.8s ease-out;
}
