/* --- 1. 核心变量 (与列表页完全一致) --- */
:root {
    --boss-blue: #00A7AF;
    --salary-orange: #FF6034;
    --bg-gray: #F6F6F8;
    --border-color: #E8E9EB;
    --text-main: #222;
    --wrapper-width: 1184px; /* 严格对齐列表页宽度 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, sans-serif; background: var(--bg-gray); color: var(--text-main); line-height: 1.6; padding-bottom: 100px; }
a { text-decoration: none; color: inherit; }

/* --- 2. 头部导航 (对齐列表页样式) --- */
header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header-content { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--boss-blue); font-size: 22px; font-weight: bold; }
.nav { display: flex; gap: 25px; }
.nav a { font-size: 15px; color: #414a60; font-weight: 500; }
.nav a.active { color: var(--boss-blue); }

/* --- 3. 顶部 Banner --- */
.detail-banner {
    height: 160px;
    background: linear-gradient(135deg, #00A7AF 0%, #007d83 100%);
    position: relative;
}

/* --- 4. 容器与面包屑 --- */
.wrapper { max-width: var(--wrapper-width); margin: 0 auto; width: 95%; position: relative; }

.breadcrumb { 
    padding: 15px 0; 
    font-size: 13px; 
    color: rgba(255,255,255,0.8);
    position: absolute;
    top: -50px;
}
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 5px; opacity: 0.6; }

/* --- 5. 职位核心卡片 (对齐列表页卡片风格) --- */
.main-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: -60px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #fff;
}

.info-left h1 { font-size: 26px; font-weight: bold; color: #222; margin-bottom: 10px; }
.info-left .tags { display: flex; gap: 10px; margin-bottom: 10px; }
.info-left .tags span { font-size: 12px; color: #666; background: #f5f6f7; padding: 3px 10px; border-radius: 4px; }

.salary-box { text-align: right; }
.salary { color: var(--salary-orange); font-size: 30px; font-weight: bold; display: block; }
.update-time { font-size: 12px; color: #999; margin-top: 5px; }

/* --- 6. 详情布局 --- */
.container { display: flex; gap: 20px; margin-top: 20px; align-items: flex-start; }
.main-left { flex: 1; min-width: 0; }
.side-right { width: 300px; flex-shrink: 0; }

.content-box { background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.box-title { font-size: 17px; font-weight: bold; margin-bottom: 20px; color: var(--boss-blue); border-left: 4px solid var(--boss-blue); padding-left: 12px; }

.detail-text { font-size: 15px; color: #444; line-height: 1.8; }
.list-item { margin-bottom: 10px; display: flex; }
.list-item::before { content: "•"; color: var(--boss-blue); font-weight: bold; margin-right: 10px; }

/* 场所实拍图片对齐列表页展示需求 */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.photo-grid .img-placeholder { background: #f0f0f0; border-radius: 8px; aspect-ratio: 16/9; }

/* 翻页导航 */
.page-nav { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid #f0f0f0; margin-top: 20px; font-size: 14px; color: #888; }
.page-nav a:hover { color: var(--boss-blue); }

/* 同企职位列表 */
.mini-job-item { 
    display: flex; justify-content: space-between; padding: 15px 0; 
    border-bottom: 1px solid #f8f8f8; font-size: 14px; 
}
.mini-job-item:last-child { border-bottom: none; }
.mini-job-item:hover { background: #fafafa; }
.mini-job-price { color: var(--salary-orange); font-weight: bold; }

/* --- 7. 侧边栏样式 --- */
.warning-box { background: #fff5f2; border: 1px dashed #ff6034; border-radius: 10px; padding: 15px; color: #ff6034; font-size: 13px; margin-bottom: 20px; }
.warning-box b { display: block; margin-bottom: 5px; font-size: 15px; }

.news-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f8f8f8; display: block; }
.news-item h4 { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 5px; transition: 0.2s; }
.news-item:hover h4 { color: var(--boss-blue); }
.news-item span { font-size: 12px; color: #bbb; }

/* --- 8. 底部悬浮操作栏 (H5版) --- */
.footer-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; padding: 12px 20px;
    display: flex; gap: 12px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 100;
}
.btn-footer { flex: 1; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; }

/* --- 9. 响应式对齐 --- */
@media (max-width: 900px) {
    .nav { display: none; }
    .container { flex-direction: column; }
    .side-right { width: 100%; order: 2; }
    .main-left { order: 1; width: 100%; }
    .main-info-card { flex-direction: column; align-items: flex-start; padding: 20px; margin-top: -40px; }
    .salary-box { margin-top: 15px; text-align: left; }
    .detail-banner { height: 120px; }
    .breadcrumb { top: -45px; }
    .photo-grid { grid-template-columns: 1fr; }
}