/* 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;
}

.job-properties-hide {
    visibility: hidden !important;
    display: none !important;
}

/* 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;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary-color);
}
.breadcrumb span {
    margin: 0 8px;
}

/* Job Detail Layout */
.job-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Left Column - Job Info */
.job-detail-left {
    flex: 1;
}
.job-detail {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.job-detail-image {
    width: 100%;
    padding-top: 60%; /* 5:3 ratio */
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}
.job-detail-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.job-detail-body {
    padding: 20px;
}
.job-detail-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.job-detail-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 12px;
}
.job-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.job-detail-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 4px;
}
.job-detail-info {
    /*margin-bottom: 20px;*/
}
.job-detail-info h2 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin: 16px 0 6px;
}
.job-detail-info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.job-detail-info-item:last-child {
    border-bottom: none;
}
.job-detail-info-label {
    width: 80px;
    color: var(--text-muted);
    font-size: 14px;
}
.job-detail-info-value {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
}
.job-detail-status {
    display: inline-block;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.job-detail-status.hiring {
    color: var(--success-color);
    background: #f6ffed;
}
.job-detail-status.stopped {
    color: var(--text-muted);
    background: var(--bg-color);
}

/* Right Column - Price & Policy (Sticky) */
.job-detail-right {
    width: 100%;
}
.job-detail-sticky {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
.job-detail-price-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.job-detail-salary {
    font-size: 28px;
    font-weight: bold;
    color: var(--salary-color);
    margin-bottom: 8px;
}
.job-detail-salary-label {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-muted);
    margin-right: 8px;
}
.job-detail-salary span {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-muted);
}
.job-detail-salary-desc {
    font-size: 13px;
    color: var(--text-muted);
}
.job-detail-subsidy-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.job-detail-subsidy-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-detail-subsidy-card h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}
.job-detail-subsidy-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--border-color);
}
.job-detail-subsidy-item:last-child {
    border-bottom: none;
}
.job-detail-subsidy-label {
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 70px;
    margin-right: 24px;
}
.job-detail-subsidy-value {
    color: var(--subsidy-color);
    font-weight: bold;
    text-align: right;
}
.job-detail-car-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.job-detail-car-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-detail-car-card h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}
.job-detail-car-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.job-detail-car-label {
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 70px;
    margin-right: 24px;
}
.job-detail-car-value {
    color: var(--subsidy-color);
    font-weight: bold;
    text-align: right;
}

/* Apply Card */
.job-detail-apply-card {
    padding: 20px;
    text-align: center;
}
.job-detail-apply-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-detail-apply-card h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}
#apply-qrcode-container {
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
}
#apply-qrcode-container img,
#apply-qrcode-container canvas {
    max-width: 180px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.apply-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}
.apply-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 12px;
}
.apply-btn:hover {
    background: var(--primary-dark);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.error-message h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 12px;
}
.error-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.error-message a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

/* 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;
}

/* Responsive - Tablet */
@media screen and (min-width: 768px) {
    .page-container {
        padding: 0 20px;
    }
    .menu-btn {
        display: none;
    }
    .nav-links {
        display: flex;
    }
    .job-detail-body {
        padding: 24px;
    }
    .job-detail-title {
        font-size: 24px;
    }
    .job-detail-salary {
        font-size: 32px;
    }
}

/* Responsive - Desktop (Two Column Layout) */
@media screen and (min-width: 1024px) {
    .nav-links {
        gap: 32px;
    }
    .job-detail-wrapper {
        flex-direction: row;
        gap: 24px;
    }
    .job-detail-left {
        flex: 1;
        min-width: 0;
    }
    .job-detail-right {
        width: 400px;
        flex-shrink: 0;
    }
    .job-detail-sticky {
        position: sticky;
        top: 76px;
    }
    .job-detail-body {
        padding: 30px;
    }
    .job-detail-title {
        font-size: 26px;
    }
    .job-detail-salary {
        font-size: 36px;
    }
}

/* Image Carousel */
.job-detail-carousel {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 ratio */
    overflow: hidden;
    background: var(--bg-color);
    border-bottom: 1px solid #ededed;
}
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide.video-slide {
    background: #000;
}
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}
.video-play-btn.hidden {
    display: none;
}
.video-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.video-pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-pause-btn svg {
    width: 24px;
    height: 24px;
}
/* 视频播放中，hover时显示暂停按钮 */
.video-slide.playing:hover .video-pause-btn {
    display: flex;
}
.carousel-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}
.carousel-arrow:hover {
    background: rgba(0,0,0,0.6);
}
.carousel-arrow.prev {
    left: 12px;
}
.carousel-arrow.next {
    right: 12px;
}
.carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 10;
}
@media screen and (min-width: 768px) {
    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Job Detail Modules */
.job-detail-module {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 16px;
}
.job-detail-module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}
.job-detail-module-header h2 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}
.job-detail-module-header .module-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}
.job-detail-module-body {
    padding: 4px 20px 20px;
}
.job-detail-module-body h2 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin: 16px 0 6px;
}
.job-detail-module-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}
.job-detail-module-body .no-info {
    color: var(--text-muted);
    font-style: italic;
}
.job-detail-module-body .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-detail-module-body .info-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.job-detail-module-body .info-list li:last-child {
    border-bottom: none;
}
.job-detail-module-body .info-list .info-label {
    width: 100px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.job-detail-module-body .info-list .info-value {
    flex: 1;
    color: var(--text-color);
}
.job-detail-module-body .info-list .info-value a {
    color: var(--primary-color);
    text-decoration: none;
}
.job-detail-module-body .info-list .info-value a:hover {
    text-decoration: underline;
}

/* Responsive - Large Desktop */
@media screen and (min-width: 1280px) {
    .page-container {
        max-width: 1200px;
    }
    .job-detail-right {
        width: 480px;
    }
}

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