/* ===================================================
   careers.css — 加入我们页面专属样式
   核力科技（上海）有限公司

   包含：Hero、招聘统计、岗位列表（Grid 三列）、岗位详情
   不含：Header、Nav、Mobile Nav、Footer、Loader、Back-to-Top、Buttons
         （这些已在 shared.css 中）
   =================================================== */

/* ===================================
   Hero Banner（招聘列表页）
   =================================== */
.careers-hero {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(180deg, #0a1628 0%, #0f2847 50%, #1a365d 100%);
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.careers-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 212, 170, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.careers-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.careers-hero-badge {
    display: inline-block;
    background: rgba(0, 212, 170, 0.1);
    color: #00D4AA;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.careers-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 50%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- 招聘统计条 ---------- */
.careers-stats {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.careers-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.careers-stat-item {
    text-align: center;
}

.careers-stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00D4AA 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* ---------- 岗位列表区 ---------- */
.careers-list {
    padding: 4rem 2rem 6rem;
    background: var(--dark);
}

.careers-list-inner {
    max-width: 1200px; /* 从 900px 扩展到 1200px 以适配三列 Grid */
    margin: 0 auto;
}

/* 筛选/搜索栏 */
.careers-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.careers-filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.careers-filter-select:focus {
    border-color: var(--primary);
}

.careers-filter-select option {
    background: var(--dark);
    color: white;
}

.careers-search {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.careers-search:focus {
    border-color: var(--primary);
}

.careers-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Grid 三列布局（岗位卡片）
   =================================== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 岗位卡片（Grid 版本，去掉 margin-bottom） */
.job-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    min-height: 160px;
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
}

.job-card-department {
    display: inline-block;
    background: rgba(0, 102, 255, 0.15);
    color: #60A5FA;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-card-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.job-card-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-card-arrow {
    color: #00D4AA;
    font-size: 1.2rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.job-card:hover .job-card-arrow {
    transform: translateX(5px);
}

/* ===================================
   骨架屏
   =================================== */
.job-card-skeleton {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-title {
    height: 20px;
    width: 70%;
}

.skeleton-tag {
    height: 14px;
    width: 50%;
}

.skeleton-tag.short {
    width: 30%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   空状态
   =================================== */
.careers-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.careers-empty-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.careers-empty-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* 错误重试按钮 */
.careers-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 102, 255, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.careers-retry-btn:hover {
    background: rgba(0, 102, 255, 0.25);
    border-color: rgba(0, 102, 255, 0.5);
}

/* ===================================
   前台分页组件
   =================================== */
.careers-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.pagination-btns {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.careers-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.careers-pagination .page-btn:hover:not(:disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.4);
    color: white;
}

.careers-pagination .page-btn.active {
    background: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.careers-pagination .page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.careers-pagination .page-ellipsis {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.3rem;
    font-size: 0.875rem;
}

/* ===================================
   岗位详情页
   =================================== */
.job-detail-hero {
    padding: 10rem 2rem 3rem;
    background: linear-gradient(180deg, #0a1628 0%, #0f2847 50%, #1a365d 100%);
    position: relative;
}

.job-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.job-detail-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.job-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.job-detail-back:hover {
    color: #00D4AA;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.job-detail-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-detail-badge {
    display: inline-block;
    background: rgba(0, 212, 170, 0.15);
    color: #00D4AA;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 详情正文区 */
.job-detail-body {
    padding: 3rem 2rem 6rem;
    background: var(--dark);
}

/* Loading 状态 */
.job-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 200px;
}

/* 404 / 不存在状态 */
.job-detail-notfound {
    text-align: center;
    padding: 4rem 2rem;
}

.job-detail-body-inner {
    max-width: 900px;
    margin: 0 auto;
}

.job-detail-section {
    margin-bottom: 3rem;
}

.job-detail-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.job-detail-section-content {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    font-size: 0.95rem;
    white-space: pre-line;
}

.job-detail-section-content ul {
    list-style: none;
    padding: 0;
}

.job-detail-section-content ul li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.job-detail-section-content ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #00D4AA;
    font-size: 0.75rem;
    top: 0.5rem;
}

/* CTA 按钮 */
.job-detail-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   CTA 行动引导
   =================================== */
.careers-cta {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0F172A 0%, #1a365d 100%);
    position: relative;
    overflow: hidden;
}

.careers-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.careers-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.careers-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.careers-cta-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.careers-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #080E1A;
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00D4AA;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ===================================
   响应式断点
   =================================== */

/* ≤1024px：双列 Grid */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ≤768px：单列 Grid + 其他移动端适配 */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .careers-hero-title {
        font-size: 2rem;
    }

    .job-detail-title {
        font-size: 1.75rem;
    }

    .job-card {
        padding: 1.5rem;
    }

    .job-card-header {
        flex-direction: column;
    }

    .job-card-tags {
        gap: 0.5rem;
    }

    .careers-stats-inner {
        gap: 1.5rem;
    }

    .careers-filter {
        flex-direction: column;
    }

    .careers-search {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .careers-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-btns {
        gap: 0.3rem;
    }

    .careers-pagination .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 0.35rem;
    }

    .job-detail-cta {
        flex-direction: column;
        align-items: center;
    }

    .job-detail-meta {
        gap: 0.75rem;
    }
}
