:root {
    --58-orange: #FF9212;
    --58-blue: #3366cc;
    --text-main: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-gray: #f8f9fa;
    --border: #eeeeee;
    --radius: 12px;
    --page-width: 1184px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body { background-color: var(--bg-gray); color: var(--text-main); line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

/* --- 导航栏 --- */
.top-nav { background: #fff; border-bottom: 2px solid var(--58-orange); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-inner { width: var(--page-width); margin: 0 auto; height: 70px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: var(--58-orange); letter-spacing: 1px; padding-left: 10px; }
.logo h1 a {font-size:24px;}
.nav-links { display: flex; gap: 30px; padding-right: 10px; }
.nav-links a { font-size: 16px; font-weight: 500; padding:3px 10px;}
.nav-links a:hover, .nav-links a.active { background: var(--58-orange); padding:3px 10px;color:#fff;border-radius:5px;}

/* --- 面包屑 --- */
.breadcrumb { width: var(--page-width); margin: 15px auto 5px; padding: 0 10px; font-size: 13px; color: var(--text-light); }

/* --- 职位头部 --- */
.job-header { width: var(--page-width); margin: 10px auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 30px 35px; }
.job-title-box h1 { font-size: 26px; font-weight: bold; color: #000; margin-bottom: 15px; }
.job-tags { display: flex; gap: 10px; margin-bottom: 15px; }
.tag-item { background: #fff2e5; color: var(--58-orange); font-size: 13px; padding: 4px 12px; border-radius: 4px; }
.job-meta-top { font-size: 14px; color: var(--text-light); }

/* --- 主体布局 --- */
.detail-wrapper { width: var(--page-width); margin: 20px auto 60px; display: flex; gap: 20px; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 320px; }

/* 内容板块公用 */
.detail-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 30px; margin-bottom: 20px; }
.box-title { font-size: 18px; font-weight: bold; border-left: 4px solid var(--58-orange); padding-left: 15px; margin-bottom: 20px; line-height: 1; }

/* 描述文字 */
.desc-content { font-size: 15px; color: #444; white-space: pre-line; text-align: justify; }
.desc-content a {color:#f00;}
.desc-content img {max-width:100%;}


/* 相关招聘列表 */
.related-list { margin-top: 10px; }
.related-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f9f9f9; font-size: 14px; }
.related-item:last-child { border-bottom: none; }
.related-item a { color: var(--text-main); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 20px; }
.related-item a:hover { color: var(--58-orange); }
.related-item span { color: var(--text-light); font-size: 12px; }

/* --- 侧边栏：联系方式 --- */
.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--58-orange); padding: 25px; position: sticky; top: 90px; }
.contact-title { font-size: 16px; font-weight: bold; color: var(--58-orange); margin-bottom: 20px; text-align: center; }
.contact-line { margin-bottom: 15px; font-size: 14px; display: flex; }
.contact-line span { color: var(--text-light); width: 60px; flex-shrink: 0; }
.contact-value { font-size: 18px; font-weight: bold; color: var(--58-blue); }

.btn-apply { display: block; width: 100%; height: 50px; line-height: 50px; background: var(--58-orange); color: #fff; text-align: center; border-radius: 6px; font-weight: bold; font-size: 16px; margin-top: 20px; }


/* 按钮基础样式 */

/* 弹窗核心样式 */
.wechat-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 360px; background: #FFF; border-radius: 12px;
    z-index: 9999; display: none; opacity: 0; transition: all 0.3s; padding: 30px 20px;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.wechat-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wechat-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9998; display: none; }

.wechat-number { font-size: 24px; font-weight: 700; color: var(--accent); margin: 15px 0; letter-spacing: 1px; }
#wechat-tips { font-size: 13px; color: #999; margin-bottom: 20px; }

.btn-open-wx {
    display: block; background: var(--58-orange); color: #FFF; padding: 12px;
    border-radius: 25px; font-weight: 600; text-decoration: none; margin-top: 10px;
}
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #CCC; cursor: pointer; }

@media (min-width: 993px) {
    .qr-code-pc { display: block; }
    .btn-open-wx { display: none; } /* PC端隐藏“打开微信”按钮 */
}


.security-note { background: #fff9f2; border: 1px dashed #ffe8d1; border-radius: 8px; padding: 15px; margin-top: 20px; }
.security-note p { font-size: 12px; color: #a67c52; line-height: 1.8; }

/* --- 底部 --- */
footer { background: #222; color: #888; padding: 50px 0; text-align: center; font-size: 13px; }
.foot-inner { width: var(--page-width); margin: 0 auto; line-height: 2.2; }

/* =============================================
   📱 移动端 WAP 自适应 (Breakpoints: 1184px)
   ============================================= */
@media screen and (max-width: 1184px) {
    :root { --page-width: 100%; }
    .nav-inner { height: 60px; padding: 0 15px; }
    .nav-links { display: none; }
    .breadcrumb { padding: 10px 15px; font-size: 12px; }
    
    .job-header { border-radius: 0; border-left: none; border-right: none; padding: 20px 15px; margin: 0; }
    .job-title-box h1 { font-size: 20px; margin-bottom: 10px; line-height: 1.4; }

    .detail-wrapper { flex-direction: column; padding: 0 10px; gap: 0; margin-top: 15px; margin-bottom: 20px; }
    .detail-main { width: 100%; }
    .detail-side { width: 100%; }

    .detail-box { padding: 20px 15px; margin-bottom: 15px; }
    .desc-content { font-size: 14px; }

    /* 手机端底部悬浮栏 - 彻底修复错位 */
    .contact-card { 
position: fixed; bottom: 0; left: 0; top: auto; width: 100%; 
height: 70px; padding: 10px 15px; background: #fff; 
border-radius: 0; border: none; border-top: 1px solid #eee; 
display: flex; align-items: center; justify-content: space-between; 
box-shadow: 0 -3px 10px rgba(0,0,0,0.08); z-index: 2000;
    }
    .contact-title, .contact-line span, .security-note, .contact-line:nth-child(3), .contact-line:nth-child(4) { display: none; } 
    
    .contact-line:nth-child(2) { margin-bottom: 0; display: block; } /* 仅显示微信一行 */
    .contact-value { font-size: 16px; display: block; }
    .contact-card::before { content: "客服微信"; display: block; font-size: 11px; color: var(--text-light); line-height: 1; margin-bottom: 4px; }

    .btn-apply { margin-top: 0; width: 140px; height: 44px; line-height: 44px; font-size: 15px; flex-shrink: 0; }
    
    body { padding-bottom: 80px; } /* 确保内容不被底部遮挡 */
    .foot-inner { padding: 0 20px; }
}