/* CSS Variables */
:root {
    --primary-color: #1496f5;
    --primary-dark: #0d7dd9;
    --primary-light: #e8f4fe;
    --text-color: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-color: #f5f7fa;
    --card-bg: #fff;
    --border-color: #e8e8e8;
    --salary-color: #ff6b35;
    --subsidy-color: #ff9500;
    --success-color: #52c41a;
    --danger-color: #ff4d4f;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: fit-content;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow: auto;
    height: fit-content;
    width: 100%;
    max-width: none;
    min-width: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header / Navigation */
.site-header {
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.logo img {
    height: 32px;
}

.nav-links {
    display: none;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Button */
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 15px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.mobile-menu a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero / Search Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 0 50px;
    text-align: center;
}

.hero-title {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.hot-tags {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tags a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: background 0.2s;
}

.hot-tags a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Breadcrumb and Result Summary Container */
.page-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
    display: none;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Result Summary */
.result-summary {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.result-summary strong {
    color: var(--primary-color);
}

/* Job List */
.job-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.job-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-card-image {
    width: 100%;
    padding-top: 60%; /* 5:3 ratio */
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    margin: 0;
    border: none;
    line-height: 0;
}

.job-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-card-body {
    padding: 12px 16px 16px;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.job-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-salary {
    font-size: 18px;
    font-weight: bold;
    color: var(--salary-color);
    white-space: nowrap;
}

.job-salary span {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 55px; /* 2 lines height */
    max-height: 55px; /* 固定2行高度 */
    overflow: hidden;
}

.job-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 6px 6px 0;
    height: fit-content;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.job-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.job-status.hiring {
    color: var(--success-color);
    background: #f6ffed;
}

.job-status.stopped {
    color: var(--text-muted);
    background: var(--bg-color);
}

.job-subsidy {
    font-size: 12px;
    color: var(--subsidy-color);
    background: #fff7e6;
    padding: 2px 8px;
    border-radius: 4px;
}

.job-reimbursement {
    font-size: 12px;
    color: var(--primary-color);
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.2s;
}

.pagination a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: var(--text-muted);
    background: var(--bg-color);
    cursor: not-allowed;
}

/* Footer Text */
.sfs-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sfs-section h2 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sfs-section h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.sfs-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.sfs-section a {
    color: var(--primary-color);
}

.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-search-tags a {
    padding: 6px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.hot-search-tags a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #999;
    padding: 40px 0 20px;
    font-size: 13px;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

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

.footer-section p,
.footer-section a {
    color: #999;
    font-size: 13px;
    line-height: 2;
    display: block;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
}

.footer-links a {
    color: #999;
}

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

.footer-bottom {
    border-top: 1px solid #3c3c3c;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 12px;
    line-height: 2;
}

.footer-bottom a {
    color: #666;
}

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

/*.footer-cert {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 20px;*/
/*    flex-wrap: wrap;*/
/*}*/
/*.footer-cert a {*/
/*    color: #666;*/
/*    font-size: 12px;*/
/*}*/

/* Responsive - Tablet */
@media screen and (min-width: 768px) {
    .page-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .menu-btn {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .job-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .job-card-body {
        padding: 12px 16px 16px;
    }

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

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

    .breadcrumb {
        display: block;
    }
}

/* Responsive - Desktop */
@media screen and (min-width: 1024px) {
    .nav-links {
        gap: 32px;
    }

    .hero-section {
        padding: 50px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .job-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .job-card-body {
        padding: 16px 20px 20px;
    }

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

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

/* Responsive - Large Desktop */
@media screen and (min-width: 1280px) {
    .job-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive - XL Desktop */
@media screen and (min-width: 1600px) {
    .page-container {
        max-width: 1500px;
    }

    .header-inner {
        max-width: 1500px;
    }
}
