/* style.css - 企业级质感模板，主色调 #00baac */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.4;
}

.smooth-touch {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ========== 轮播图 ========== */
.swiper-section {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px !important;
}

.mySwiper {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.2s;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 18px;
    border-radius: 4px;
}

/* ========== 顶部导航栏 ========== */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon {
    color: #94a3b8;
    font-size: 18px;
}

.search-box {
    flex: 1;
}

.search-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    color: #1e293b;
}

.search-input:focus {
    background: #ffffff;
    border-color: #00baac;
    box-shadow: 0 0 0 3px rgba(0, 186, 172, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-selector:active {
    background: #e2e8f0;
}

.location-icon {
    color: #00baac;
    font-size: 14px;
}

.location-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.chevron-icon {
    font-size: 10px;
    color: #94a3b8;
}

/* ========== 功能卡片区 ========== */
.cards-section {
    padding: 16px 16px 8px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 左侧大卡片 */
.card-large {
    background: linear-gradient(135deg, #008b7f 0%, #00baac 100%);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 186, 172, 0.15);
    transition: transform 0.1s, box-shadow 0.2s;
}

.card-large:active {
    transform: scale(0.98);
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
    color: white;
    letter-spacing: 0.5px;
}

.card-large-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: white;
}

.card-large-subtitle {
    font-size: 12px;
    opacity: 0.85;
    color: white;
}

.icon-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    opacity: 0.9;
    border-radius: 14px;
}

.card-large-icon {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* 右侧小卡片 */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.card-small {
    background: linear-gradient(120deg, #00a396 0%, #00baac 100%);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 186, 172, 0.12);
    transition: transform 0.1s;
}

.card-small:active {
    transform: scale(0.98);
}

.card-small-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.card-small-desc {
    font-size: 11px;
    opacity: 0.85;
    color: white;
}

.card-small-img-wrapper {
    width: 44px;
    height: 44px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-small-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

/* ========== 官方账号栏 ========== */
.follow-section {
    padding: 12px 16px;
}

.follow-card {
    background: linear-gradient(120deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.follow-text {
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-text i {
    color: #00baac;
    font-size: 18px;
}

.follow-btn {
    background: #00baac;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 186, 172, 0.3);
}

.follow-btn:active {
    transform: scale(0.95);
    background: #008b7f;
}

/* ========== 求职者列表 ========== */
.jobseekers-section {
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    margin-top: 16px;
    padding: 20px 16px 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00baac;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.more-link:active {
    opacity: 0.7;
}

.more-link i {
    font-size: 10px;
}

.jobseekers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.job-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 14px 8px 12px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #eef2ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.job-card:active {
    transform: scale(0.96);
    background: #f8fafc;
}

.avatar-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: #e2e8f0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-btn {
    background: #f1f5f9;
    color: #00baac;
    border: none;
    border-radius: 30px;
    padding: 7px 0;
    font-size: 11px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn:active {
    background: #e2e8f0;
    transform: scale(0.96);
}

.load-more {
    margin-top: 28px;
    text-align: center;
}

.load-more-btn {
    background: transparent;
    color: #00baac;
    border: 1px solid #cbd5e1;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:active {
    background: #f1f5f9;
    transform: scale(0.96);
}

/* ========== 底部导航栏 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #eef2ff;
    padding: 8px 20px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 12px;
}

.nav-item:active {
    color: #00baac;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.nav-item-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: -22px;
}

.publish-btn {
    background: linear-gradient(135deg, #00baac, #008b7f);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 186, 172, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid white;
}

.publish-btn:active {
    transform: scale(0.94);
}

.publish-icon {
    font-size: 24px;
    color: white;
}

.publish-label {
    font-size: 10px;
    font-weight: 600;
    color: #00baac;
    margin-top: 5px;
}

.bottom-placeholder {
    height: 80px;
}

/* ========== 发布选择弹窗 ========== */
.publish-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.publish-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publish-modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.publish-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.modal-close:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.modal-close i {
    font-size: 16px;
}

.modal-body {
    padding: 16px;
}

.publish-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.publish-option:last-child {
    margin-bottom: 0;
}

.publish-option:active {
    transform: scale(0.98);
    background: #f1f5f9;
}

.option-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-icon.job-seeker,
.option-icon.job_seeker {
    background: linear-gradient(135deg, #00baac, #008b7f);
}

.option-icon.employer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.option-icon i {
    font-size: 24px;
    color: white;
}

.option-info {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.option-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.option-arrow {
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* 错误状态 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
    opacity: 0.8;
}

.error-message {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 400px) {
    .job-name {
        font-size: 11px;
    }

    .job-title {
        font-size: 10px;
    }

    .avatar-wrapper {
        width: 58px;
        height: 58px;
    }

    .contact-btn {
        font-size: 10px;
        padding: 6px 0;
    }

    .card-large-title {
        font-size: 14px;
    }

    .card-large-subtitle {
        font-size: 11px;
    }
}

button:focus,
input:focus {
    outline: none;
}