/* ============================================
   招聘页面样式 - Job Page Styles
   中英文页面通用样式
   ============================================ */

/* 招聘职位列表 */
.job-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* 招聘卡片 */
.job-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f4821f, #ff9a4a);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    border-color: #f4821f;
    box-shadow: 0 12px 32px rgba(244, 130, 31, 0.15);
    transform: translateY(-5px);
}

.job-card:hover::before {
    transform: scaleY(1);
}

/* 招聘卡片头部 */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}

.job-card:hover .job-header {
    border-bottom-color: #f4821f;
}

.job-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.job-title-category {
    font-size: 1rem;
    font-weight: 600;
    color: #f4821f;
    opacity: 1;
    transition: all 0.3s ease;
    margin-left: 6px;
    display: inline-block;
}

.job-card:hover .job-title {
    color: #f4821f;
}

.job-card:hover .job-title-category {
    color: #ff9a4a;
    transform: scale(1.05);
}

.job-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f4821f, #ff9a4a);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(244, 130, 31, 0.2);
    transition: all 0.3s ease;
}

.job-card:hover .job-category {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(244, 130, 31, 0.3);
}

.job-salary {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f4821f;
    white-space: nowrap;
    background: linear-gradient(135deg, #f4821f, #ff9a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.job-card:hover .job-salary {
    transform: scale(1.05);
}

/* 招聘详情区域 */
.job-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 招聘元信息 */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.job-card:hover .job-meta {
    background: linear-gradient(135deg, #fff5eb, #ffe8d6);
    border-color: #f4821f;
    box-shadow: 0 4px 12px rgba(244, 130, 31, 0.1);
}

.job-meta span {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.job-card:hover .job-meta span {
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.job-salary-meta {
    position: relative;
    color: #f4821f;
    font-weight: 600;
}

.job-location,
.job-experience,
.job-education {
    position: relative;
}

.job-hr-email {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.job-email-label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.job-card:hover .job-email-label {
    color: #333;
}

.job-email-link {
    color: #f4821f;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.job-email-link:hover {
    color: #ff9a4a;
    border-bottom-color: #ff9a4a;
    transform: translateY(-1px);
}

/* 招聘描述 */
.job-description {
    line-height: 1.8;
}

.job-description h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.job-description h5:first-child {
    margin-top: 0;
}

.job-description h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #f4821f, #ff9a4a);
    transition: width 0.3s ease;
}

.job-card:hover .job-description h5::after {
    width: 100px;
}

.job-description ul {
    margin: 0 0 20px 0;
    padding-left: 22px;
    list-style: none;
}

.job-description ul li {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.job-description ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f4821f;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.job-card:hover .job-description ul li::before {
    transform: translateX(3px);
}

/* 申请按钮 */
.job-apply-btn {
    align-self: flex-start;
    padding: 14px 40px;
    background: linear-gradient(135deg, #f4821f, #ff9a4a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(244, 130, 31, 0.2);
    position: relative;
    overflow: hidden;
}

.job-apply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.job-apply-btn:hover::before {
    width: 300px;
    height: 300px;
}

.job-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(244, 130, 31, 0.35);
}

.job-apply-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 130, 31, 0.3);
}

/* 空状态 */
.job-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.job-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.job-empty-text {
    font-size: 1.1rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .job-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .job-title-section {
        width: 100%;
    }
    
    .job-salary {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .job-list {
        gap: 25px;
    }
    
    .job-card {
        padding: 25px;
        border-radius: 12px;
    }
    
    .job-header {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .job-title {
        font-size: 1.4rem;
    }
    
    .job-title-category {
        font-size: 0.9rem;
    }
    
    .job-salary {
        font-size: 1.2rem;
    }
    
    .job-meta {
        padding: 15px;
        gap: 12px;
    }
    
    .job-meta span {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .job-salary-meta {
        font-size: 0.9rem;
    }
    
    .job-email-label {
        font-size: 0.85rem;
    }
    
    .job-description h5 {
        font-size: 1.05rem;
        margin: 15px 0 10px 0;
    }
    
    .job-description ul li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .job-apply-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .job-card {
        padding: 20px;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .job-title-category {
        font-size: 0.85rem;
    }
    
    .job-category {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .job-salary {
        font-size: 1.1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-meta span {
        width: 100%;
        justify-content: flex-start;
    }
    
    .job-salary-meta {
        font-size: 0.85rem;
    }
    
    .job-hr-email {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .job-email-label {
        font-size: 0.8rem;
    }
    
    .job-empty-icon {
        font-size: 3rem;
    }
    
    .job-empty-text {
        font-size: 1rem;
    }
}

/* 加载动画 */
@keyframes jobCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: jobCardFadeIn 0.6s ease-out;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }
.job-card:nth-child(7) { animation-delay: 0.7s; }
.job-card:nth-child(n+8) { animation-delay: 0.8s; }

/* ============================================
   福利待遇样式 - Benefits & Perks Styles
   ============================================ */

.job-benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    margin-top: 80px;
}

.job-benefits .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.job-benefits .section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.job-benefits .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f4821f, #ff9a4a);
    border-radius: 2px;
}

.job-benefits .section-header p {
    font-size: 20px;
    color: #666;
    line-height: 1.8;
    margin-top: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 50px 40px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4821f, #ff9a4a);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(244, 130, 31, 0.2);
    border-color: #f4821f;
    background: linear-gradient(135deg, #fff5eb, #ffffff);
}

.benefit-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f4821f, #ff9a4a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 40px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(244, 130, 31, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.benefit-card:hover .benefit-icon::before {
    width: 200px;
    height: 200px;
}

.benefit-card:hover .benefit-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(244, 130, 31, 0.4);
}

.benefit-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.benefit-card:hover h3 {
    color: #f4821f;
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    transition: color 0.3s ease;
}

.benefit-card:hover p {
    color: #555;
}

/* 福利待遇响应式设计 */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .job-benefits {
        padding: 80px 0;
    }
    
    .job-benefits .section-header h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .job-benefits {
        padding: 60px 0;
        margin-top: 60px;
    }
    
    .job-benefits .section-header {
        margin-bottom: 50px;
    }
    
    .job-benefits .section-header h2 {
        font-size: 36px;
    }
    
    .job-benefits .section-header p {
        font-size: 18px;
    }
    
    .benefit-card {
        padding: 40px 30px;
        border-radius: 16px;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    .benefit-card h3 {
        font-size: 22px;
    }
    
    .benefit-card p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .job-benefits {
        padding: 50px 0;
        margin-top: 50px;
    }
    
    .job-benefits .section-header h2 {
        font-size: 32px;
    }
    
    .job-benefits .section-header p {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .benefit-card {
        padding: 35px 25px;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .benefit-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .benefit-card p {
        font-size: 14px;
    }
}

/* 福利卡片加载动画 */
@keyframes benefitCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card {
    animation: benefitCardFadeIn 0.6s ease-out;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
