/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 顶部导航栏 */
.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 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
}

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

.logo-prefix {
    color: #fff;
    margin-right: 4px;
}

.logo-main {
    color: #fff;
}

.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;
}

/* 搜索区域 */
.search-section {
    background: url(/assets/img/banner-bg.png) center center / cover no-repeat;
}

.search-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.search-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-title-img {
    height: 40px;
    width: 155px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 800px;
    position: relative;
}

.search-notice-img {
    height: 200px;
    margin-right:60px;
    flex-shrink: 0;
}
/* 分类选择器包裹器 */
.search-category-wrapper {
    position: relative;
    display: inline-block;
}

/* 分类按钮 */
.search-category-btn {
    height: 48px;
    padding: 0 20px;
    background-color: #fff;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
    outline: none;
    transition: background-color 0.3s;
}

.search-category-btn:hover {
    background-color: #f8f8f8;
}

.search-category-btn .arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s;
}

.search-category-btn.active .arrow {
    transform: rotate(180deg);
}

/* 一级下拉菜单 */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    z-index: 1000;
    display: none;
}

.category-dropdown.show {
    display: block;
}

.category-option {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.3s;
}

.category-option:hover {
    background-color: #f8f8f8;
}

/* 二级下拉菜单 */
.subcategory-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.subcategory-dropdown.show {
    display: block;
}

.subcategory-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.subcategory-option:last-child {
    border-bottom: none;
}

.subcategory-option:hover {
    background-color: #f8f8f8;
    color: #E02020;
}

.search-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-left: 1px solid #e5e5e5;
    font-size: 16px;
    outline: none;
    min-width: 300px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    height: 48px;
    padding: 0 40px;
    background-color: #ff922d;
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* 筛选区域 */
.filter-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    width: 80px;
    font-size: 14px;
    color: #666;
    padding-top: 6px;
    flex-shrink: 0;
}

.filter-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 5px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 100%;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}

/* 标签文字省略显示 */
.tag .tag-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag .tag-text.truncated {
    max-width: 200px; /* 约20个汉字 */
}

.tag .tag-text.expanded {
    white-space: normal;
    word-break: break-all;
}

.tag:hover {
    border-color: #E02020;
    color: #E02020;
}

.tag.active {
    background-color: #E02020;
    color: #fff;
    border-color: #E02020;
}

.more-tag {
    color: #E02020;
    border-color: #e0e0e0;
    cursor: pointer;
}

.more-tag:hover {
    border-color: #E02020;
}

.collapse-tag {
    color: #E02020;
    border-color: #e0e0e0;
    cursor: pointer;
    display: inline-flex;
}

.collapse-tag:hover {
    border-color: #E02020;
    background-color: #fff;
}

/* 隐藏的地区标签 */
.location-extra {
    display: none;
}

/* 隐藏的行业标签 */
.industry-extra {
    display: none;
}

.filter-selects {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-select {
    padding: 5px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:hover {
    border-color: #E02020;
}

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

.content-container {
    display: flex;
    gap: 20px;
}

/* 职位列表 */
.job-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

.job-info {
    width: 100%;
}

/* 标签和元数据行 */
.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-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #fff;
}

.copyright {
    color: #bdc3c7;
    font-size: 14px;
}

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

.copyright a:hover {
    color: #fff;
}
/* 底部区域 */
.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    gap: 20px;
}

.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: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
}

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

.job-title.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.job-salary {
    font-size: 16px;
    color: #E02020;
    font-weight: 600;
}

.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;
}

.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::before {
    content: '·';
    margin-right: 8px;
}

.company-detail:first-child::before {
    content: '';
    margin-right: 0;
}

/* 招聘批次样式（不显示点号） */
.company-detail-batch {
    color: #666;
    padding: 3px 10px;
    background-color: #f0fbea;
}

.company-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 按钮区域 */
.job-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.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;
}

.apply-btn-primary {
    background-color: #E02020;
    color: #fff;
}

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

.publish-date {
    font-size: 12px;
    color: #999;
}

/* 右侧广告栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.ad-banner {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-banner-1 {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3E8 100%);
}

.ad-banner-2 {
    background: linear-gradient(135deg, #FFB347 0%, #FFCC33 100%);
}

.ad-banner-3 {
    background: linear-gradient(135deg, #E02020 0%, #FF4444 100%);
}

.ad-content {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.ad-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.ad-content p {
    font-size: 14px;
    line-height: 1.8;
}

/* 固定右侧导航 */
.fixed-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixed-nav-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    width: 80px;
}

.fixed-nav-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-5px);
}

.fixed-nav-item .icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.fixed-nav-item .text {
    font-size: 12px;
    color: #666;
}

/* 底部导航 */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

.footer-section p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

.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;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-item {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.page-item:hover {
    border-color: #E02020;
    color: #E02020;
}

.page-item.active {
    background-color: #E02020;
    color: #fff;
    border-color: #E02020;
}

.page-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

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

    .logo {
        font-size: 16px;
    }

    .nav {
        display: none;
    }

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

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

    .search-box {
        max-width: 100%;
    }

    .search-input {
        height: 44px;
        font-size: 14px;
    }

    .search-btn {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

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

    .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-label {
        width: 100%;
        padding-top: 0;
    }

    .filter-tags {
        gap: 8px;
    }

    .tag {
        padding: 4px 12px;
        font-size: 13px;
    }

    .filter-selects {
        gap: 8px;
    }

    .filter-select {
        min-width: calc(50% - 4px);
        font-size: 13px;
    }

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

    .content-container {
        flex-direction: column;
        gap: 15px;
    }

    .job-item {
        padding: 15px;
    }

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

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

    .job-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nature-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .job-title {
        font-size: 16px;
    }

    .job-salary {
        font-size: 15px;
    }

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

    .job-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .company-logo-section {
        width: 100%;
    }

    .sidebar {
        width: 100%;
    }

    .ad-banner {
        height: 150px;
    }

    .fixed-nav {
        right: 10px;
        gap: 8px;
    }

    .fixed-nav-item {
        width: 60px;
        padding: 8px;
    }

    .fixed-nav-item .icon {
        font-size: 20px;
    }

    .fixed-nav-item .text {
        font-size: 11px;
    }

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

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

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-container,
    .search-container,
    .filter-container,
    .main-content,
    .footer-container,
    .footer-bottom {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .nav {
        gap: 20px;
    }

    .sidebar {
        width: 240px;
    }

    .fixed-nav {
        right: 15px;
    }
}
