/* =========================================
   careers.css - 极简网格版 (Detail + Clean)
   ========================================= */

/* 复用变量 */
:root {
    --c-primary: #3380C8;
    --c-dark: #1e293b;
    --c-text: #475569;
    --c-light: #f8fafc;
    --c-white: #ffffff;
    --c-border: #e2e8f0;
}

/* 1. Hero 区域 */
.career-hero { position: relative; height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; background-color: var(--c-white); overflow: hidden; margin-top: 0; }
.career-bg-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px); background-size: 40px 40px; z-index: 0; mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0)); }
.hero-tag { display: inline-block; background: #eff6ff; color: var(--c-primary); padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem; letter-spacing: 1px; text-transform: uppercase; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--c-dark); margin-bottom: 1.5rem; line-height: 1.2; }
.gradient-text { background: linear-gradient(90deg, var(--c-primary), #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--c-text); max-width: 600px; margin: 0 auto 3rem; line-height: 1.6; }

/* Benefits */
.benefits-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; border-top: 1px dashed var(--c-border); padding-top: 2rem; }
.benefit-item { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--c-text); font-weight: 500; font-size: 0.9rem; }
.b-icon { width: 56px; height: 56px; background: var(--c-light); display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--c-border); transition: 0.3s; color: var(--c-primary); }
.b-icon svg { width: 24px; height: 24px; }
.benefit-item:hover .b-icon { transform: translateY(-5px); border-color: var(--c-primary); background: #fff; box-shadow: 0 5px 15px rgba(51, 128, 200, 0.1); }

/* 2. 职位筛选器 */
.job-filter-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { background: white; border: 1px solid var(--c-border); padding: 10px 24px; border-radius: 50px; color: #64748b; cursor: pointer; transition: 0.3s; font-size: 1rem; font-weight: 500; }
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.active { background: var(--c-primary); color: white; border-color: var(--c-primary); box-shadow: 0 4px 10px rgba(51, 128, 200, 0.3); }

/* 3. 极简网格布局 */
.clean-job-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px;
    margin-top: 20px;
}

/* Job Clean Card */
.job-clean-card {
    background: white; border: 1px solid var(--c-border); border-radius: 16px;
    height: 520px; /* Large Height */
    position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.job-clean-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: rgba(51, 128, 200, 0.3); }

/* Card Main (Front) */
.card-main {
    padding: 2.5rem 2rem; /* Comfortable Padding */
    height: 100%; display: flex; flex-direction: column;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.clean-tag { font-size: 0.75rem; padding: 6px 14px; background: #e0f2fe; color: #0369a1; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.clean-tag.green { background: #dcfce7; color: #15803d; }
.clean-tag.purple { background: #f3e8ff; color: #7e22ce; }
.clean-tag.blue { background: #e0f2fe; color: #0369a1; }

.card-icon-box { color: #cbd5e1; transition: 0.3s; }
.card-icon-box svg { width: 32px; height: 32px; }
.job-clean-card:hover .card-icon-box { color: var(--c-primary); transform: scale(1.1); }

.clean-title { font-size: 1.6rem; color: var(--c-dark); margin-bottom: 2rem; font-weight: 700; line-height: 1.3; }

/* Front Keywords Section */
.keyword-section { margin-bottom: auto; }
.keyword-group { margin-bottom: 1.2rem; }
.k-label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 6px; font-weight: 500; }
.k-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.k-tags span { 
    font-size: 0.8rem; padding: 4px 10px; background: #f8fafc; 
    border: 1px solid #e2e8f0; border-radius: 6px; color: #475569;
    font-weight: 500;
}
.k-tags.blue span { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }

/* Footer - Redesigned Layout */
.job-footer {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid #f1f5f9;
}

.meta-group { display: flex; flex-direction: column; gap: 8px; }
.meta-row { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 0.85rem; font-weight: 500; }
.meta-icon { width: 16px; height: 16px; color: #cbd5e1; }

.action-btn-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f8fafc; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary); transition: 0.3s;
}
.job-clean-card:hover .action-btn-circle { background: var(--c-primary); color: white; border-color: var(--c-primary); transform: translateX(5px); }
.action-btn-circle svg { width: 18px; height: 18px; }

/* 交互层: 滑动详情 */
.card-slide-details {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(12px); 
    padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
    transform: translateY(100%); /* Hidden */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 4px solid var(--c-primary);
    overflow-y: auto;
}
.card-slide-details::-webkit-scrollbar { width: 4px; }
.card-slide-details::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.job-clean-card:hover .card-slide-details { transform: translateY(0); }

.detail-block { margin-bottom: 1.5rem; }
.detail-block:last-child { margin-bottom: 0; }

.detail-head { 
    font-size: 0.9rem; color: var(--c-dark); font-weight: 700; 
    margin-bottom: 0.8rem; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px dashed #e2e8f0; padding-bottom: 5px;
}

.detail-list-styled { list-style: none; padding: 0; margin: 0; color: var(--c-text); font-size: 0.9rem; line-height: 1.6; }
.detail-list-styled li { margin-bottom: 8px; position: relative; padding-left: 20px; }
.detail-list-styled li::before { 
    content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; 
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233380C8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* 4. 招聘流程 */
.process-steps { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 3rem 0; flex-wrap: wrap; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-icon { width: 64px; height: 64px; background: white; border: 1px solid var(--c-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-text); box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; }
.step-icon svg { width: 28px; height: 28px; }
.step-item:hover .step-icon { border-color: var(--c-primary); color: var(--c-primary); transform: scale(1.05); }
.step-item p { font-weight: 600; color: var(--c-dark); font-size: 0.95rem; }
.step-line { width: 60px; height: 2px; background: #e2e8f0; }

.hr-contact { margin-top: 3rem; padding: 25px; background: #f8fafc; border-radius: 12px; display: inline-block; border: 1px dashed var(--c-border); }
.hr-contact p { color: var(--c-text); margin: 0 0 10px 0; font-size: 1rem; }
.contact-methods { display: flex; align-items: center; justify-content: center; gap: 15px; }
.contact-methods a { display: flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 700; text-decoration: none; transition: 0.2s; }
.contact-methods a:hover { text-decoration: underline; }
.divider { color: #cbd5e1; }

/* Mobile */
@media (max-width: 768px) {
    .career-hero { height: auto; padding: 120px 0 60px; }
    .hero-title { font-size: 2.5rem; }
    .process-steps { flex-direction: column; gap: 30px; }
    .step-line { width: 2px; height: 40px; }
    .contact-methods { flex-direction: column; gap: 5px; }
    .divider { display: none; }
    
    /* Mobile Logic: Click to show details overlay */
    .card-slide-details { transform: translateY(0); position: relative; opacity: 1; display: none; border-top: 1px dashed #e2e8f0; background: none; backdrop-filter: none; padding: 1.5rem; }
    .job-clean-card.active .card-slide-details { display: block; }
    .job-clean-card { height: auto; min-height: 200px; }
}