/* 首页专用样式 */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 顶部导航栏 - 保持与内页一致的蓝色风格 */
.header {
    background: #0D6BF2;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-img {
    height: 40px;
    margin-right: 12px;
}

.nav {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 58px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #fff;
    padding-bottom: 0;
}

.header-actions {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 20px;
    border-radius: 20px;
}

.link-text {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* Banner区域 */
.banner-section {
    background: url(/assets/img/banner-bg.png) center center / cover no-repeat;
    padding: 0;
    width: 100%;
}

.banner-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.content-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin:0 0 20px 0;
    color: #333;
    border-left: 4px solid #0D6BF2;
    padding-left: 10px;
}

/* 新闻列表样式 */
.news-container {
    display: flex;
    gap: 20px;
}

.news-list-wrapper {
    flex: 1;
}

.news-slider {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #fafafa;
}

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

.news-info {
    flex: 1;
}

.news-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.news-title:hover {
    color: #E02020;
}

.news-date {
    font-size: 14px;
    color: #999;
}

.news-action {
    margin-left: 20px;
}

.view-btn {
    padding: 8px 20px;
    background-color: #E02020;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #C01818;
}

/* 热门推荐样式 */
.recommend-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -10px;
}
.recommend-tabs {
    display: flex;
    gap: 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tab-item {
    color: #4A90E2;
    font-size: 16px;
    cursor: pointer;
}
.tab-item.active {
    color: #0D6BF2;
    font-weight: 600;
}
.recommend-tabs.pill {
    background: rgba(13, 107, 242, 0.08);
    padding: 6px 16px;
    border-radius: 999px;
}
.tab-divider {
    color: #8aa0b8;
    margin: 0 12px;
    line-height: 1;
}
.recommend-box {
    position: relative;
    padding: 16px 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.recommend-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(/assets/img/banner-bg.png) center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}
.recommend-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 8px;
}
.recommend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.recommend-item .title {
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 16px;
    position: relative;
}
.recommend-item .title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #4A90E2;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}
.recommend-tag {
    color: #FF6A00;
    font-size: 14px;
    margin-left: 12px;
    flex-shrink: 0;
}
.recommend-dots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.recommend-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d9d9d9;
}
.recommend-dots .dot.active {
    background-color: #4A90E2;
}
@media (max-width: 768px) {
    .recommend-list {
        grid-template-columns: 1fr;
    }
}

/* 职位列表样式 */
.job-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    cursor: default;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.job-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-info {
    width: 100%;
}

.job-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nature-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.nature-state {
    background-color: #E96F52;
}

.nature-foreign {
    background-color: #4A90E2;
}

.nature-private {
    background-color: #52C41A;
}

.nature-public {
    background-color: #FF8C00;
}

.nature-joint {
    background-color: #722ED1;
}

.nature-listed {
    background-color: #FA8C16;
}

.nature-other {
    background-color: #6AD197;
}

.job-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
    white-space: nowrap;
}

.job-title:hover {
    color: #E02020;
}

.job-tags-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.job-tag {
    padding: 3px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.job-tag.highlight {
    background-color: #fff0f0;
    color: #E02020;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    gap: 20px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.company-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.company-details {
    display: flex;
    gap: 8px;
}

.company-detail {
    color: #666;
    padding: 3px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 13px;
}

.company-detail-batch {
    color: #666;
    padding: 3px 10px;
    background-color: #f0fbea;
}

.apply-btn {
    padding: 8px 24px;
    border: 1px solid #E02020;
    border-radius: 4px;
    font-size: 14px;
    color: #E02020;
    background-color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
}

.apply-btn:hover {
    background-color: #fff5f5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #E02020;
}

.copyright {
    font-size: 12px;
    color: #888;
}

.copyright a {
    color: #888;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-actions {
        font-size: 12px;
        gap: 10px;
        padding: 6px 15px;
    }

    .banner-container {
        padding: 0 15px;
    }

    .banner-img {
        border-radius: 4px;
    }

    .main-content {
        margin: 15px auto;
        padding: 0 15px;
    }

    .content-container {
        padding: 15px 20px;
    }

    .section-title {
        font-size: 20px;
        margin: 15px 0;
    }

    .news-container {
        flex-direction: column;
    }

    .news-slider {
        width: 100%;
        height: 200px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .news-action {
        margin-left: 0;
        margin-top: 15px;
    }

    .job-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .job-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .job-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .job-meta {
        gap: 12px;
        font-size: 12px;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .social-links {
        gap: 15px;
    }
}