/* jobs.html 专属样式 */

/* Apple风格招聘页面 */
.jobs-hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.jobs-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.jobs-hero p {
    font-size: 21px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.jobs-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #259ad6;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.jobs-email:hover {
    color: #1e7fb8;
    text-decoration: underline;
}

/* 岗位卡片网格 */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}
.job-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37, 154, 214, 0.15);
}
.job-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #f5f5f7, #e8e8ed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #259ad6;
}
.job-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #259ad6;
    margin-bottom: 8px;
}
.job-card .job-en {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 16px;
}
.job-card .job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.job-card .job-tag {
    background: #f5f5f7;
    color: #515154;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
}
.job-card .job-desc {
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 20px;
}
.job-card .job-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.job-card .job-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 154, 214, 0.4);
    color: white;
}
.job-card .job-arrow {
    transition: transform 0.3s ease;
}
.job-card:hover .job-arrow {
    transform: translateX(4px);
}

/* 岗位详情弹窗 */
.job-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}
.job-modal.active {
    display: flex;
}
.job-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.job-modal-header {
    padding: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 1;
    text-align: left;
}
.job-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.job-modal-close:hover {
    background: #e8e8ed;
    transform: rotate(90deg);
}
.job-modal-body {
    padding: 40px;
    text-align: left;
}
.job-section {
    margin-bottom: 32px;
}
.job-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.job-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #259ad6, #4db8e8);
    border-radius: 2px;
}
.job-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-section li {
    padding: 10px 0;
    color: #515154;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f7;
    padding-left: 24px;
    position: relative;
}
.job-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #259ad6;
    font-weight: bold;
}
.job-modal-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    background: #f5f5f7;
    border-radius: 0 0 24px 24px;
}
.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
    color: white;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.job-apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 154, 214, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .jobs-hero h1 {
        font-size: 36px;
    }
    .jobs-hero p {
        font-size: 17px;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .job-modal-content {
        max-height: 90vh;
        border-radius: 20px;
    }
    .job-modal-header,
    .job-modal-body,
    .job-modal-footer {
        padding: 24px;
    }
}

/* 导航栏hover变粗+圆角背景 - 仅PC端 */
@media (min-width: 992px) {
    .main-menu > li > a {
        padding: 8px 16px !important;
        border-radius: 20px !important;
    }
    .main-menu > li > a:hover {
        font-weight: 900 !important;
        background-color: rgba(255,255,255,0.2) !important;
    }
    /* 导航项间距 */
    .main-menu > li {
        margin: 0 8px !important;
    }
    .main-menu > li {
        transform: none !important;
        transition: none !important;
    }
    .main-menu > li:hover {
        transform: none !important;
    }
    .main-menu > li a {
        transition: none !important;
        transform: none !important;
    }
    .main-menu .dropdown-menu li a:hover {
        font-weight: 900 !important;
    }
    .main-menu .dropdown-menu {
        border-radius: 12px !important;
        overflow: hidden;
    }

    /* 大卡片下拉菜单 - 仅PC端 */
    .has-mega-menu {
        position: relative;
    }
    .has-mega-menu .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        min-width: 510px;
        padding-top: 8px;
    }
    .has-mega-menu:hover .mega-menu {
        display: block;
    }
    .mega-menu-inner {
        display: flex;
        background: #fff;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        padding: 24px 20px 24px 24px;
        gap: 24px;
        align-items: center;
    }
    .mega-menu-left {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 140px;
    }
    .mega-menu-left.mega-col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        max-width: 320px;
    }
    .mega-menu-left.mega-col-2 a {
        width: auto;
    }
    .mega-menu-left a {
        color: #000 !important;
        font-size: 15px;
        padding: 10px 16px;
        border-radius: 10px;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s, font-weight 0.2s;
        white-space: nowrap;
    }
    .mega-menu-left a:hover {
        color: #259ad6 !important;
        font-weight: 700;
    }
    .mega-menu-right {
        flex: 0 0 auto;
        width: 200px;
        height: 250px;
        border-radius: 16px;
        overflow: hidden;
        margin-right: 4px;
        margin-left: 100px;
    }
    .mega-menu-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
    }
}

/* 移动端导航覆盖 */
@media (max-width: 991px) {

    /* 覆盖 Bootstrap 默认的 hover/open 浅灰背景 */
    .nav > li > a:hover,
    .nav > li > a:focus,
    .nav .open > a,
    .nav .open > a:focus,
    .nav .open > a:hover {
        background: transparent !important;
        color: #259ad6 !important;
    }

    /* 一级菜单：无箭头、无分隔线 */
    .main-menu > li {
        margin: 0 !important;
        display: block !important;
        border-bottom: none !important;
    }
    .main-menu > li > a {
        display: block !important;
        position: relative !important;
        padding: 12px 16px !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        border-bottom: none !important;
        background: none !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .main-menu > li > a:hover,
    .main-menu > li > a:active,
    .main-menu > li > a:focus {
        color: #259ad6 !important;
        background: transparent !important;
    }
    /* 去掉一级菜单箭头 */
    .main-menu > li > a::after {
        content: none !important;
    }
    .has-mega-menu.mobile-open > a::after {
        content: none !important;
        transform: none !important;
    }

    /* 搜索框隐藏 */
    .main-menu li.search {
        display: none !important;
        border-bottom: none !important;
    }

    /* 子菜单容器 */
    .has-mega-menu {
        position: static !important;
    }
    .has-mega-menu .mega-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .has-mega-menu:hover .mega-menu {
        display: none !important;
    }
    .has-mega-menu.mobile-open .mega-menu {
        display: block !important;
    }
    .mega-menu-inner {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    .mega-menu-right {
        display: none !important;
    }
    .mega-menu-left {
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .mega-menu-left.mega-col-2 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    /* 二级菜单：无箭头、无分隔线 */
    .mega-menu-left a {
        display: block !important;
        position: relative !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 10px 16px 10px 28px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-bottom: none !important;
        text-decoration: none !important;
        background: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mega-menu-left a::after {
        content: none !important;
    }
    .mega-menu-left a:hover,
    .mega-menu-left a:active {
        color: #259ad6 !important;
        background: transparent !important;
    }
}
