/* ========================================
   全局变量与重置 (与官网保持一致)
======================================== */
:root {
    --primary-color: #D4AF37; /* 金色 */
    --secondary-color: #1a1a1a; /* 深黑 */
    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --text-main: #333;
    --text-light: #fff;
    --text-gray: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', sans-serif; color: var(--text-main); line-height: 1.6; background-color: #fff; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; color: var(--secondary-color); position: relative; padding-bottom: 10px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--primary-color); }
.section-header p { color: var(--primary-color); font-weight: 500; letter-spacing: 2px; margin-top: 5px; }
.section-header.light h2, .section-header.light p { color: var(--text-light); }
.section-header.light h2::after { background-color: var(--text-light); }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; padding-left: 0; }
a { text-decoration: none; color: inherit; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; text-decoration: none; font-weight: 500; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #b8941f; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ========================================
   头部导航 (复用官网逻辑)
======================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); }
.logo img { height: 40px; margin-right: 10px; }
.nav ul { list-style: none; display: flex; }
.nav ul li { margin-left: 35px; }
.nav ul li a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); position: relative; }
.nav ul li a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav ul li a:hover::after { width: 100%; }
.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary-color); }

/* ========================================
   招聘页Hero区域
======================================== */
.hero-career { position: relative; height: 80vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('images/hero-career.jpg'); background-size: cover; background-position: center; filter: brightness(0.5); z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8)); z-index: -1; }
.hero-content { max-width: 800px; z-index: 1; }
.tag { display: inline-block; background-color: var(--primary-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 20px; }
.hero-career h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-career .subtitle { font-size: 1.5rem; font-weight: 500; margin-bottom: 15px; color: var(--primary-color); }
.hero-career .desc { font-size: 1.1rem; margin-bottom: 40px; opacity: 0.9; }

/* ========================================
   关于中基（招聘版）
======================================== */
.about-recruit { background-color: var(--bg-light); }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.adv-item { background: #fff; padding: 30px; border-radius: 10px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.adv-item:hover { transform: translateY(-10px); border-bottom: 3px solid var(--primary-color); }
.adv-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.adv-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary-color); }
.adv-item p { color: var(--text-gray); font-size: 0.95rem; }

/* ========================================
   热招职位
======================================== */
.jobs-section { background-color: var(--bg-dark); }
.job-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.job-tabs .tab-btn { padding: 12px 35px; border: 2px solid rgba(255,255,255,0.3); background: transparent; color: #fff; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: var(--transition); }
.job-tabs .tab-btn.active, .job-tabs .tab-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.job-detail { display: none; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.job-detail.active { display: block; }
.job-header { background-color: var(--secondary-color); color: #fff; padding: 30px; border-bottom: 5px solid var(--primary-color); }
.job-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.job-header .salary { font-size: 1.2rem; color: var(--primary-color); font-weight: 700; }
.job-body { padding: 40px; }
.job-info { background-color: var(--bg-light); padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.job-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-gray); }
.job-info i { color: var(--primary-color); }
.job-content h4 { font-size: 1.2rem; color: var(--secondary-color); margin: 25px 0 15px; padding-left: 10px; border-left: 4px solid var(--primary-color); }
.job-content ul li { padding: 8px 0; border-bottom: 1px dashed #eee; color: var(--text-gray); }
.job-content ul li strong { color: var(--secondary-color); }
.job-body .btn { margin-top: 30px; }
.job-body .tip { margin-top: 15px; font-size: 0.9rem; color: var(--text-gray); background-color: #f9f9f9; padding: 15px; border-radius: 4px; line-height: 1.8; }

/* ========================================
   招聘流程
======================================== */
.process-section { background-color: var(--bg-light); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 50px; }
.process-item { background: #fff; padding: 30px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; }
.process-item h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.3rem; }
.process-item p { color: var(--text-gray); font-size: 0.95rem; }
.campus-channels { text-align: center; padding: 30px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.campus-channels h3 { color: var(--secondary-color); margin-bottom: 15px; }
.campus-channels p { color: var(--text-gray); margin-bottom: 10px; }
.campus-channels .note { font-size: 0.9rem; color: #999; margin-top: 15px; }

/* ========================================
   底部
======================================== */
.footer { background-color: var(--secondary-color); color: #aaa; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-logo img { height: 40px; margin-bottom: 15px; }
.footer-info h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-info p { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; }
.footer-info i { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* ========================================
   响应式设计
======================================== */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr; }
    .hero-career h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .nav { position: fixed; top: 70px; left: -100%; width: 100%; background-color: #fff; box-shadow: var(--shadow); transition: var(--transition); padding: 20px 0; }
    .nav.active { left: 0; }
    .nav ul { flex-direction: column; align-items: center; }
    .nav ul li { margin: 15px 0; }
    .mobile-menu-toggle { display: block; }
    .hero-career h1 { font-size: 2.2rem; }
    .hero-career .subtitle { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .job-tabs { flex-direction: column; align-items: center; }
    .job-tabs .tab-btn { width: 80%; }
}

/* ===== 招聘页岗位配图样式（新增，解决挤压/变形）===== */
.job-cover {
    width: 100%;
    aspect-ratio: 16 / 9; /* 固定 16:9 比例，可根据需要调整 */
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: #f5f5f5;
}

.job-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 或 cover，根据需求选择 */
    transition: transform 0.4s ease;
}

/* Tab切换时，当前激活的岗位图片加 hover 效果，提升交互感 */
.job-detail.active .job-cover img:hover {
    transform: scale(1.02);
}

/* 可选：如果图片太亮导致薪资文字看不清，加半透明遮罩 */
.job-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    pointer-events: none; /* 不影响图片交互 */
}

/* 移动端适配：缩小图片高度，避免占太多屏幕空间 */
@media (max-width: 768px) {
    .job-cover {
        aspect-ratio: 4 / 3; /* 移动端用 4:3 更合适 */

    }
}

