/* ============================================================
   1. CSS Reset & 全局样式
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #0b1a33;
}

/* ============================================================
   2. 导航栏
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 15px 6px;
    border-bottom: 1px solid #e8eaed;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: transparent;
    max-width: 1340px;
    margin: 0 auto;
}

.navbar .logo {
    font-size: 22px;
    font-weight: 700;
    color: #0c0c0c;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .logo i {
    color: #2d7aff;
    margin-right: 4px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
    color: #0a0d11;
    flex-direction: row;
    padding-left: 0;
    list-style: none;
}

.navbar-nav a {
    text-decoration: none;
    color: #3d5269;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.navbar-nav a:hover {
    color: #03080c;
    font-weight: 700;
}

.navbar-nav a i {
    width: 18px;
    text-align: center;
    font-size: 20px;
}

.navbar-nav .btn-outline {
    border: 1px solid #dce1e8;
    padding: 1px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s;
    color: #3d5269;
    margin-left: auto;
}

.navbar-nav .btn-outline:hover {
    background: #0b1a2a;
    color: #fff;
    border-color: #0b1a2a;
}

/* ============================================================
   3. 页面标题
   ============================================================ */
.section-title {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 18px;
}

.section-title .text {
    font-size: 22px;
    font-weight: 900;
    margin-top: 50px;
    margin-bottom: 0;
    color: #0b1a33;
}

.section-title .text i {
    color: #2d7aff;
    margin-right: 8px;
}

/* ============================================================
   4. 卡片网格容器
   ============================================================ */
.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 15px 18px;
}

.Common-functional-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.col-sm-6 {
    width: 100%;
    padding: 0;
}

/* ============================================================
   5. 卡片样式
   ============================================================ */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8edf4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(45, 122, 255, 0.10);
    border-color: #2d7aff;
}

.card-body {
    padding: 20px 20px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-body .top-row .icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #2563eb;
}

.card-body .top-row .tag-text {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b1a33;
    margin-bottom: 6px;
    margin-top: 4px;
}

.card-text {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.bottom-row {
    border-top: 1px solid #e8edf4;
    padding-top: 12px;
    margin-top: auto;
}

.link {
    text-decoration: none;
    font-weight: 600;
    color: #2d7aff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.link:hover {
    gap: 10px;
}

.link i {
    font-size: 14px;
}

/* ============================================================
   6. 弹窗样式 (纯DOM方式)
   ============================================================ */
.card_2_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 添加浏览器前缀，解决报错 */
    -webkit-backdrop-filter: blur(4px);  /* Chrome/Safari/Edge */
    backdrop-filter: blur(4px);           /* 标准写法 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-card {
    background: white;
    border-radius: 28px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-custom {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f0f3f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom h5 {
    font-weight: 700;
    color: #0b1a33;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
}

.modal-header-custom h5 i {
    font-size: 1.8rem;
    color: #2a6df4;
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #6c7a8a;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

.btn-close-custom:hover {
    color: #0b1a33;
}

.modal-body-custom {
    padding: 1.8rem 2rem 2rem 2rem;
}

.modal-footer-custom {
    padding: 1rem 2rem 1.5rem 2rem;
    border-top: 1px solid #f0f3f8;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* 员工信息样式 */
.employee-avatar {
    width: 72px;
    height: 72px;
    background: #dce5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a4fbf;
    margin-right: 1rem;
    flex-shrink: 0;
}

.employee-badge {
    background: #eef3fe;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a4fbf;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.8rem;
    margin-top: 1.2rem;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    border-bottom: 1px dashed #e9edf4;
    padding-bottom: 0.4rem;
}

.info-item .label {
    font-weight: 500;
    color: #4a5b6e;
    min-width: 70px;
    font-size: 0.9rem;
}

.info-item .value {
    font-weight: 600;
    color: #0b1a33;
}

.skill-tag {
    background: #f2f5fa;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-right: 0.3rem;
    color: #1f2b40;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.btn-soft-primary {
    background: #eef3fe;
    color: #1a4fbf;
    border: none;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-soft-primary:hover {
    background: #dce6fd;
}

.btn-primary-custom {
    background: #2a6df4;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.4rem 1.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-custom:hover {
    background: #1a4fbf;
}

/* ============================================================
   7. 响应式适配
   ============================================================ */
@media (max-width: 992px) {
    .Common-functional-areas {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .navbar-nav {
        flex-wrap: wrap;
        gap: 12px 20px;
        width: 100%;
    }

    .navbar-nav .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .Common-functional-areas {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-text {
        font-size: 13px;
    }

    .section-title .text {
        font-size: 18px;
        margin-top: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .modal-body-custom {
        padding: 1.5rem;
    }
}