/* 
 * MJOB Talent Network Homepage Stylesheet
 * Author: AI Assistant
 * Date: 2023-10-27
 */

/* CSS Variables */
:root {
    --primary-color: #2d6dcc;
    --primary-hover-color: #245aa8;
    --secondary-color: #f37327;
    --secondary-hover-color: #dc6822;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #888;
    --border-color: #e0e0e0; /* Slightly softer */
    --background-light: #f8f9fa;
    --background-white: #fff;
    --danger-color: #ff4d4f;
    --info-color: #17a2b8;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Softer shadow */
    --card-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Softer hover shadow */
    --border-radius: 6px; /* Consistent border radius */
    --transition-speed: 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7; /* Slightly increased */
    background-color: var(--background-light);
    font-size: 14.5px; /* Slightly increased */
}

body.body-padding-top {
    padding-top: 75px; /* Adjust based on JS calculation */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

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

.w1200 {
    width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--background-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: #f1f1f1;
    font-size: 12px;
    color: var(--text-lighter);
    padding: 8px 0;
    border-bottom: 1px solid #e9e9e9;
}

.top-bar .w1200 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a, .top-bar-right a {
    color: var(--text-lighter);
    margin-right: 15px;
    transition: color var(--transition-speed);
}
.top-bar-right a:last-child {
    margin-right: 0;
}
.top-bar-left a:hover, .top-bar-right a:hover {
    color: var(--primary-color);
}
.top-bar-left a i, .top-bar-right a i {
    margin-right: 4px;
}
.top-bar-right .divider {
    margin: 0 10px;
    color: #ccc;
}

.header-main {
    padding: 15px 0;
    background-color: var(--background-white);
    transition: all var(--transition-speed);
}

.header-main.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--background-white);
    box-shadow: var(--card-shadow);
    z-index: 999;
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-main .w1200 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav {
    display: flex;
    gap: 38px; /* Slightly increased gap */
}

.main-nav li a {
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.main-nav li.active a,
.main-nav li a:hover {
    color: var(--primary-color);
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav li.active a::after,
.main-nav li a:hover::after {
     width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 9px 18px; /* Slightly adjusted padding */
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500; /* Bolder buttons */
    text-align: center;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Adjusted gap */
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-resume {
    background-color: #eaf1fb;
    color: var(--primary-color);
    border-color: #b3ccef;
}
.btn-resume:hover {
    background-color: #dce8fa;
    border-color: #a1bbe8;
}

.btn-publish {
    background-color: var(--secondary-color);
    color: var(--background-white);
}
.btn-publish:hover {
    background-color: var(--secondary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 115, 39, 0.3);
    color: #fff;
}

/* Search Section */
.search-section {
    background: var(--background-white);
    padding: 15px 0; /* Increased padding */
    margin-bottom: 15px; /* Increased margin */
}

.search-section-wrapper {
    display: flex;
    align-items: center;
    gap: 35px; /* Increased gap */
}

.search-side {
    width: 180px;
    flex-shrink: 0;
    text-align: center;
}

.side-title {
    font-size: 17px; /* Slightly larger */
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 18px; /* Increased margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.side-title i {
    color: var(--primary-color);
    font-size: 19px;
}
.search-side-right .side-title i {
    color: var(--secondary-color);
}

.side-btn {
    display: block;
    padding: 11px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
    transition: all var(--transition-speed);
}
.side-btn:last-child {
    margin-bottom: 0;
}

.side-btn:hover {
    border-color: var(--primary-color);
    background-color: #f0f5fc;
    color: var(--primary-color);
    transform: translateX(3px);
}

.search-side-right .side-btn:hover {
    border-color: var(--secondary-color);
    background-color: #fff7f2;
    color: var(--secondary-color);
}


.search-container { 
    flex: 1;
    max-width: 800px;
    margin: 0;
}

.search-box {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 5px; /* Padding around tabs/form */
}

.search-tabs {
    display: flex;
    margin-bottom: 18px; /* Increased margin */
    border-bottom: 1px solid #eee;
}

.search-tabs .tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    position: relative;
    top: 1px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed);
}

.search-tabs .tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}
.search-tabs .tab:hover:not(.active) {
     color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px; /* Increased margin */
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    height: 48px; /* Increased height */
    padding: 10px 18px; /* Adjusted padding */
    border: 1px solid #ccc; /* Slightly darker border */
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: all var(--transition-speed);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 109, 204, 0.15); /* Adjusted focus ring */
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-white);
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -1px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
}

.suggestion-list {
    padding: 5px 0;
}

.suggestion-item a {
    display: block;
    padding: 10px 18px; /* Adjusted padding */
    color: var(--text-color);
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.search-btn {
    height: 48px;
    padding: 0 35px;
    background: var(--primary-color);
    color: var(--background-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.search-btn:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 109, 204, 0.3);
}

.hot-keywords {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
}

.hot-label {
    color: #666;
    margin-right: 10px;
    font-size: 13px;
    white-space: nowrap;
}

#hot-keywords-container {
    display: flex;
    flex-wrap: wrap;
}

.hot-keyword {
    color: #666;
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 13px;
    transition: color var(--transition-speed);
}

.hot-keyword:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Main Content Area */
.main-container {
    margin-bottom: 35px; /* Increased margin */
}

.main-section {
    display: flex;
    gap: 25px; /* Increased gap */
    align-items: flex-start;
}

/* Left Navigation (Job Categories) */
.left-nav {
    width: 220px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    border: 1px solid var(--border-color);
}

.left-nav-title {
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}

.left-nav-list li a {
    display: flex;
    align-items: center;
    padding: 13px 15px; /* Adjusted padding */
    color: var(--text-light);
    border-bottom: 1px solid #f0f0f0; /* Lighter border inside */
    font-size: 14px;
    transition: all var(--transition-speed);
}

.left-nav-list li:last-child a {
    border-bottom: none;
}

.left-nav-list li a:hover {
    background-color: #f0f5fc;
    color: var(--primary-color);
    padding-left: 20px; /* Indent on hover */
}

.left-nav-list li a i:first-child {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: var(--text-lighter);
    transition: color var(--transition-speed);
}

.left-nav-list li a i.fa-angle-right {
    margin-left: auto;
    color: #ccc;
    transition: transform var(--transition-speed);
}

.left-nav-list li a:hover i {
    color: var(--primary-color);
}
.left-nav-list li a:hover i.fa-angle-right {
     transform: translateX(3px);
}

/* Left Navigation Submenu */
.left-nav-list li {
    position: relative;
}

.submenu {
    position: absolute;
    left: 100%;
    top: -1px;
    width: 500px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 6px 6px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.08);
    padding: 20px;
    z-index: 10;
    display: none;
}

.left-nav-list li:hover .submenu {
    display: block;
}

.submenu-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.submenu-section {
    width: 33.33%;
    padding: 10px;
    box-sizing: border-box;
}

.submenu-section h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.submenu-section a {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: none !important;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submenu-section a:hover {
    color: #3490dc;
    background-color: transparent !important;
    padding-left: 5px !important;
}

/* Middle Content (Banner, Quick Links) */
.mid-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.banner-slider {
    margin-bottom: 25px; /* Increased margin */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.swiper-container {
    width: 100%;
    height: 280px;
}

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

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--background-white);
    background-color: rgba(0,0,0,0.4); /* Slightly darker */
    width: 35px;
    height: 55px;
    line-height: 55px;
    border-radius: var(--border-radius);
    margin-top: -27px;
    transition: background-color var(--transition-speed);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.6);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px;
}

.quick-links {
    display: flex;
    justify-content: space-around;
    background-color: var(--background-white);
    padding: 15px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    transition: color var(--transition-speed);
}

.quick-link-item i {
    font-size: 22px;
    color: var(--primary-color);
     transition: transform var(--transition-speed);
}

.quick-link-item:hover {
     color: var(--primary-color);
}

.quick-link-item:hover i {
    transform: scale(1.1);
}

/* Right Content (Login, Ads) */
.right-content {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increased gap */
    flex-shrink: 0;
}

.login-box, .ad-box {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.login-box {
    padding: 25px;
    text-align: center;
}

.login-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 20px;
}

.login-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn {
    display: block;
    padding: 11px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
    transition: all var(--transition-speed);
}

.login-btn.person {
    background-color: var(--primary-color);
    color: var(--background-white);
    border-color: var(--primary-color);
}
.login-btn.person:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 109, 204, 0.2);
}

.login-btn.company {
    background-color: var(--background-white);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.login-btn.company:hover {
    background-color: #fff7f2;
    transform: translateY(-2px);
     box-shadow: 0 4px 10px rgba(243, 115, 39, 0.15);
}

.ad-box a img {
    display: block;
    width: 100%;
    height: 105px;
    transition: opacity var(--transition-speed);
}
.ad-box a:hover img {
    opacity: 0.85;
}

/* Job/Company Sections */
.job-section {
    margin-bottom: 35px; /* Increased margin */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Increased margin */
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 22px; /* Increased size */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.more-link {
    font-size: 14px;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition-speed);
}
.more-link:hover {
    color: var(--primary-color);
}
.more-link i {
    font-size: 12px;
    transition: transform var(--transition-speed);
}
.more-link:hover i {
    transform: translateX(3px);
}

/* Job List & Cards */
.job-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Increased gap */
}

.job-card {
    position: relative;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: #c5c5c5;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px; /* Adjusted margin */
}

.job-title-wrapper {
    flex: 1;
    margin-right: 15px;
    min-width: 0;
}

.job-title {
    font-size: 17px; /* Increased size */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-speed);
}
.job-title:hover {
    color: var(--primary-color);
}

.job-salary {
    color: var(--danger-color);
    font-size: 17px; /* Increased size */
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
}

.company-info {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    margin-right: 12px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo img {
    max-width: 90%; /* Prevent logo touching edges */
    max-height: 90%;
    object-fit: contain;
}

.company-detail {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-speed);
}
.company-name:hover {
    color: var(--primary-color);
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.company-tag {
    font-size: 12px;
    color: var(--text-lighter); /* Lighter */
    background: #f5f5f5;
    padding: 3px 9px;
    border-radius: 4px;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.job-card-tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.job-card-tag i {
    font-size: 12px;
    margin-right: 6px;
    color: var(--text-lighter);
}

.job-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.benefit-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f5f7fa;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid #e8eef7;
}

.job-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;

}

.action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-lighter);
    font-size: 18px; /* Slightly larger icons */
    display: flex;
    align-items: center;
    transition: all var(--transition-speed);
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.apply-btn {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 8px 20px; /* Adjusted padding */
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
}

.action-btn.apply-btn:hover {
    background: var(--primary-hover-color);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 109, 204, 0.25);
}

/* Company List */
.company-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px; /* Increased gap */
}

.company-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    margin-right: 20px;
    flex: 0 0 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 190px;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.company-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 15px;
    text-align: center;
}

.company-card .company-logo {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
}

.company-card .company-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.company-card .company-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.company-card .company-jobs {
    color: var(--text-lighter);
    font-size: 13px;
}

/* Horizontal Company List */
.company-section .section-header .scroll-btn {
    /* Optionally inherit base .scroll-btn styles or add specifics */
}

.company-section .horizontal-list {
    display: flex;
    gap: 18px; /* Match horizontal job list */
    padding-bottom: 5px; /* Match horizontal job list */
    transition: transform 0.5s ease; /* Match horizontal job list */
}

.company-section .horizontal-list .company-card {
    width: 230px; /* Adjust width as needed */
    flex-shrink: 0;
    box-shadow: none; /* Remove shadow from inner cards */
    border: 1px solid var(--border-color);
    padding: 20px; /* Adjust padding for horizontal view */
}

.company-section .horizontal-list .company-card:hover {
     transform: translateY(-3px);
     border-color: #c5c5c5;
     box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

.company-section .horizontal-list .company-card .company-logo {
    width: 55px; /* Adjust size */
    height: 55px;
    margin: 0 auto 15px auto;
}

.company-section .horizontal-list .company-card .company-name {
    font-size: 15px; /* Adjust size */
    margin-bottom: 8px;
}

.company-section .horizontal-list .company-card .company-jobs {
    font-size: 12px;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #ccc;
    padding: 50px 0 25px 0; /* Adjusted padding */
    margin-top: 45px; /* Increased margin */
    border-top: 3px solid var(--primary-color); /* Add top border */
}

.footer a {
    color: #ccc;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--background-white);
    text-decoration: underline;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #495057;
}

.footer-column {
    flex: 1;
    margin-right: 35px;
}
.footer-column:last-of-type {
    margin-right: 0;
}

.footer-column h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--background-white);
    margin-bottom: 18px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
}

.footer-qrcodes {
    display: flex;
    gap: 25px;
    text-align: center;
}

.footer-qrcode img {
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
    background: var(--background-white);
    padding: 6px;
    border-radius: var(--border-radius);
}

.footer-qrcode p {
    font-size: 13px;
    color: #aaa;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Utilities */
.text-danger {
    color: var(--danger-color) !important;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background: rgba(45, 109, 204, 0.85); /* Slightly less transparent */
    color: var(--background-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    z-index: 100;
}

.back-to-top:hover {
    background: var(--primary-hover-color);
    transform: translateY(-3px) scale(1.05);
}

/* Fixed Header Styles - already defined above */

/* Add padding to body when header is fixed - already defined above */

/* Responsive Styles */
@media (max-width: 1200px) {
    .w1200 {
        width: 95%;
    }
    .job-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Adjust gap */
    }
    .company-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px; /* Adjust gap */
    }
    .left-nav, .right-content {
        display: none;
    }
    .mid-content {
        flex: 1 1 100%;
    }
    .search-side {
        display: none;
    }
    .search-container {
        max-width: 100%;
    }
    .news-list {
        grid-template-columns: repeat(3, 1fr); /* Adjusted responsive layout */
    }
    .talent-list {
        grid-template-columns: repeat(3, 1fr); /* Adjusted */
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .company-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-columns {
        flex-wrap: wrap;
    }
    .footer-column {
        flex-basis: 50%;
        margin-bottom: 25px;
        margin-right: 0;
    }
    .footer-qrcodes {
        flex-basis: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .talent-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* Revert size for smaller screens */
    }
    .w1200 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
     /* Remove direct padding on .w1200 inside header/search */
    .header .w1200, .header-main .w1200, .search-section .w1200 {
        padding: 0 15px;
    }
    .header-actions .btn {
        padding: 7px 12px;
        font-size: 13px;
    }
     .header-actions {
        gap: 10px;
    }
    .search-container {
        max-width: 100%;
    }
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    .search-btn {
        width: 100%;
    }
    .hot-keywords {
       flex-wrap: wrap;
       justify-content: flex-start; /* Align left */
       padding-left: 5px;
    }
    .main-section {
        gap: 0; /* Remove gap as sidebars hidden */
    }
    .job-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .company-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .footer-column {
        flex-basis: 100%;
    }
    .quick-links {
        flex-wrap: wrap;
        gap: 20px 15px;
        padding: 20px;
    }
    .quick-link-item {
        flex-basis: calc(33.33% - 10px);
    }
    .search-section-wrapper {
        gap: 15px;
    }
    .news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .talent-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .links-list {
        gap: 8px 15px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 30px;
    }
     .header-actions {
        display: none;
    }
    .quick-link-item {
        flex-basis: calc(50% - 10px);
    }
    .section-title {
        font-size: 19px;
    }
    .job-card, .company-card, .talent-card, .news-item {
        padding: 15px;
    }
    .top-bar {
        display: none;
    }
    .search-input, .search-btn {
        height: 45px;
        font-size: 14px;
    }
    .footer-columns {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    .footer-qrcodes {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
     .talent-list {
        grid-template-columns: 1fr;
    }
    .news-title {
        font-size: 15px;
    }
    .news-excerpt {
        font-size: 12px;
    }
    .links-list li a {
        font-size: 13px;
    }
}

/* Hot Talents Section */
.talent-section .section-title i {
    color: var(--secondary-color); /* Use variable */
}

.talent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.talent-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    margin-bottom: 0;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.talent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    border: 1px solid #eaeaea;
}

.talent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-info {
    flex-grow: 1;
    margin-right: 15px;
}

.talent-name {
    margin-bottom: 8px;
}

.talent-name a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-right: 8px;
}

.talent-name a:hover {
    color: var(--primary-color);
}

.talent-title {
    font-size: 14px;
    color: var(--text-lighter);
}

.talent-meta {
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.talent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.talent-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f5f7fa;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(45, 109, 204, 0.2);
}

.talent-action {
    display: flex;
    align-items: center;
}

.talent-action .btn {
    height: 36px;
    padding: 0 15px;
}

.talent-action .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.talent-action .btn-primary:hover {
    background-color: var(--primary-hover-color);
}

/* Responsive Talent List */
@media (max-width: 768px) {
    .talent-list {
        display: block;
    }
    
    .talent-card {
        width: 100%;
        margin-right: 0;
    }
}

/* Full Width Banner */
.full-width-banner {
    margin: 25px 0 35px 0; /* Adjusted margins */
    line-height: 0;
}

.full-width-banner img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius); /* Use variable */
    box-shadow: var(--card-shadow); /* Use variable */
}

/* Horizontal Scrolling Hot Jobs */
.horizontal-jobs {
    background: var(--background-white);
    padding: 20px 25px; /* Adjusted padding */
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 5px; /* Increased margin */
    position: relative;
    transform: translateY(-8px);
}

.horizontal-jobs .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px; /* Increased margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horizontal-scroll-controls {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.scroll-btn:hover {
    background: #e0e0e0;
    color: var(--text-color);
    border-color: #ccc;
}

.scroll-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #bbb;
    border-color: #eee;
}

.scroll-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.horizontal-job-list {
    display: flex;
    gap: 18px; /* Increased gap */
    padding-bottom: 5px;
    transition: transform 0.5s ease;
}

.horizontal-job-list .job-card {
    width: 280px;
    flex-shrink: 0;
    padding: 15px; /* Adjusted padding */
    box-shadow: none; /* Remove shadow from inner cards */
    border: 1px solid var(--border-color);
}

.horizontal-job-list .job-card:hover {
     transform: translateY(-3px);
     border-color: #c5c5c5;
     box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

.horizontal-job-list .job-card .job-title {
    font-size: 15px;
}

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

.horizontal-job-list .job-card .company-info {
    margin: 10px 0;
    padding: 10px 0;
}

.horizontal-job-list .job-card .company-logo {
    width: 35px;
    height: 35px;
    margin-right: 8px;
}

.horizontal-job-list .job-card .company-name {
    font-size: 13px;
}

.horizontal-job-list .job-card .company-tags {
    display: none;
}

.horizontal-job-list .job-card .job-card-tags {
     margin-bottom: 0;
}

.horizontal-job-list .job-card .job-card-tag {
    font-size: 12px;
    padding: 4px 9px;
}

.horizontal-job-list .job-card .job-benefits,
.horizontal-job-list .job-card .job-card-footer {
    display: none;
}

.horizontal-job-list .job-card .job-salary {
    font-weight: 600;
    color: var(--secondary-color);
}

.horizontal-job-list .job-card .job-company {
    margin: 5px 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.horizontal-job-list .job-card .job-company a {
    color: var(--text-lighter);
}

.horizontal-job-list .job-card .job-company a:hover {
    color: var(--primary-color);
}

/* Location Switcher */
.location-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.location-switcher i {
    color: var(--text-lighter);
}

.current-location {
    color: var(--text-light);
    font-weight: 500;
}

#location-switch-btn {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 3px;
}
#location-switch-btn:hover {
    text-decoration: underline;
}

/* Location Popup */
.location-popup {
    position: absolute;
    top: calc(100% + 8px); /* Increased distance */
    left: -15px;
    width: 480px; /* Increased width */
    background: var(--background-white);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 13px;
    display: none; /* Hidden by default */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f7f7f7;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.popup-header span {
    font-weight: 500;
    color: var(--text-color);
}

.close-popup-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-speed);
}
.close-popup-btn:hover {
    color: var(--text-color);
}

.popup-body {
    padding: 18px;
    max-height: 320px;
    overflow-y: auto;
}

.province-list-wrapper, .city-list-wrapper {
    margin-bottom: 18px;
}

.province-list-wrapper p, .city-list-wrapper p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.province-list, .city-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.province-list li a, .city-list li a {
    padding: 4px 10px;
    color: var(--text-color);
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}
.province-list li a:hover, .city-list li a:hover,
.province-list li a.active, .city-list li a.active {
    background-color: var(--primary-color);
    color: var(--background-white);
    text-decoration: none;
    border-color: var(--primary-color);
}
.province-list li a:hover:not(.active), .city-list li a:hover:not(.active) {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: var(--text-color);
}

/* News Section */
.news-section .section-title i {
    color: var(--info-color); /* Use variable */
}

.news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Increased gap */
}

.news-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: #c5c5c5;
}

.news-item a {
    display: block;
    color: var(--text-color);
}
.news-item a:hover {
    color: var(--primary-color);
}

/* Remove or comment out image styles */
/* ... */

.news-content {
    padding: 18px; /* Increased padding */
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* Ensure consistent height */
    transition: color var(--transition-speed);
}
.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px; /* Ensure consistent height */
}

.news-meta {
    font-size: 12px;
    color: var(--text-lighter);
}

/* Friendship Links Section */
.links-section {
    background-color: var(--background-white);
    padding: 25px;
    margin-top: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.links-section .section-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.links-section .section-title i {
    color: #6c757d;
}

.links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px; /* Adjusted gap */
}

.links-list li a {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    transition: color var(--transition-speed);
}

.links-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive adjustments for News - Already covered above */

/* Search Filter Styles */
.search-filter {
    display: flex;
    align-items: center;
    margin-top: 12px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    flex-wrap: wrap;
}

.filter-item {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
    padding: 5px 0;
}

.filter-label {
    color: #6c757d;
    font-size: 13px;
    margin-right: 5px;
}

.filter-value {
    color: #212529;
    font-size: 13px;
    font-weight: 500;
}

.filter-item i {
    font-size: 12px;
    color: #adb5bd;
    margin-left: 5px;
    transition: transform 0.2s;
}

.filter-item:hover i {
    color: #3490dc;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
    display: none;
}

.hot-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-city {
    padding: 4px 10px;
    background-color: #f5f7fa;
    border-radius: 50px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.hot-city:hover, .exp-option:hover, .salary-option:hover {
    background-color: #eaf2fd;
    color: #3490dc;
}

.hot-city.active, .exp-option.active, .salary-option.active {
    background-color: #3490dc;
    color: #fff;
}

.exp-option, .salary-option {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.exp-dropdown, .salary-dropdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Left Navigation Styles */
.left-nav {
    position: relative;
}

.left-nav-list {
    max-height: 637px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* Scrollbar Styles */
.left-nav-list::-webkit-scrollbar {
    width: 6px;
}

.left-nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.left-nav-list::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 6px;
}
.duilian-container {
    position: fixed;
    top: 180px;
    width: 100%;
    z-index: 999;
    pointer-events: none;
}

.duilian {
    position: absolute;
    top: 0;
    pointer-events: auto;
    width: 120px;
}

.duilian-left {
    left: 0;
    margin-left: 10px;
}

.duilian-right {
    right: 0;
    margin-right: 10px;
}

.duilian-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.duilian-content img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

.duilian-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.duilian-close:hover {
    background: rgba(0,0,0,0.5);
}

@media screen and (max-width: 1200px) {
    .duilian {
        display: none;
    }
}