/* 加入我们页面样式 */

/* Hero 区域 */
.join-hero {
    position: relative;
    height: 38vh;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
}

.join-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.join-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.join-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.7) 0%, rgba(45, 90, 135, 0.8) 100%);
}

.join-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem;
}

.join-hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.join-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.join-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

/* 内容区域 */
.join-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* 通用版块样式 */
.join-section {
    margin-bottom: 5rem;
}

.join-section:last-child {
    margin-bottom: 0;
}

.join-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.join-section-icon {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.join-section-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 职位版块 */
.join-positions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.join-position-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.join-position-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.join-position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.join-position-header:hover {
    background: #f8fafc;
}

.join-position-title h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.join-position-meta {
    font-size: 0.9rem;
    color: #64748b;
}

.join-position-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.join-position-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    display: block;
    width: 12px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: transform 0.3s ease;
}

.toggle-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 2px;
    background: #fff;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.join-position-card.active .toggle-icon::after {
    transform: rotate(0deg);
}

.join-position-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.join-position-card.active .join-position-body {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.join-position-block {
    margin-bottom: 1.5rem;
}

.join-position-block:last-child {
    margin-bottom: 0;
}

.join-position-block h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid #3b82f6;
}

.join-position-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    padding-left: 1rem;
}

.join-position-apply {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.join-position-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* 员工福利 */
.join-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.join-benefit-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.join-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.join-benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
}

.join-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-benefit-list li {
    font-size: 0.95rem;
    color: #475569;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.join-benefit-list li:last-child {
    border-bottom: none;
}

.join-benefit-list li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.join-benefits-image {
    text-align: center;
    margin-top: 2rem;
}

.join-benefits-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 简历投递 */
.join-resume {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.join-resume-image {
    position: relative;
}

.join-resume-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.join-resume-content {
    padding: 3rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-resume .join-section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.join-resume .join-section-header h2 {
    color: #fff;
}

.join-resume .join-section-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.join-resume .join-section-icon {
    color: #fff;
}

.join-resume-email {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.join-resume-email-icon {
    font-size: 2rem;
}

.join-resume-email-info span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.join-resume-email-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.join-resume-email-info a:hover {
    opacity: 0.8;
}

.join-resume-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.join-resume-requirements h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #60a5fa;
}

.join-resume-text {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
    padding-left: 1rem;
}

/* 滚动动画 */
.join-section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .join-hero h1 {
        font-size: 2.8rem;
    }

    .join-resume {
        grid-template-columns: 1fr;
    }

    .join-resume-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .join-hero {
        height: 32vh;
        min-height: 200px;
        /* 避开固定导航栏，防止遮挡 JOIN US 标题 */
        padding-top: 70px;
        box-sizing: border-box;
    }

    .join-hero h1 {
        font-size: 2.2rem;
    }

    .join-hero p {
        font-size: 1rem;
    }

    .join-content {
        padding: 3rem 5%;
    }

    .join-section {
        margin-bottom: 3.5rem;
    }

    .join-section-header h2 {
        font-size: 1.8rem;
    }

    .join-position-header {
        padding: 1.2rem 1.5rem;
    }

    .join-position-title h3 {
        font-size: 1.1rem;
    }

    .join-position-card.active .join-position-body {
        padding: 0 1.5rem 1.5rem;
    }

    .join-benefits-grid {
        grid-template-columns: 1fr;
    }

    .join-resume-content {
        padding: 2rem;
    }

    .join-resume-email {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .join-hero h1 {
        font-size: 1.8rem;
    }

    .join-hero-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .join-section-header h2 {
        font-size: 1.5rem;
    }

    .join-position-meta {
        display: none;
    }
}
