/**
 * @file organization.css
 * @purpose 组织架构
 * @author 重庆嘉华医院
 * @datetime 2026-11-09 10:27:00
 * @description 医院组织架构样式。
 */

/* 组织架构图容器 */
.org-chart {
    padding: 20px 0;
}

/* 通用节点 */
.org-node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #00B4D8 0%, #0077A8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 150, 199, 0.3);
    white-space: nowrap;
}

/* 顶层院长节点 */
.org-chart__root {
    text-align: center;
}

.org-chart__root .org-node {
    min-width: 200px;
    font-size: 19px;
    padding: 16px 40px;
}

/* 连接线（纵向） */
.org-chart__link {
    width: 2px;
    height: 40px;
    margin: 0 auto;
    background: #cbd5e1;
}

/* 副职分列 */
.org-chart__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    padding-top: 40px;
}

/* 横向主干线 */
.org-chart__cols::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #cbd5e1;
}

.org-col {
    position: relative;
    text-align: center;
}

/* 每列顶部连接线 */
.org-col::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #cbd5e1;
}

.org-col__head .org-node {
    min-width: 0;
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
}

.org-col__link {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: #cbd5e1;
}

.org-col__body {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: left;
}

.org-col__group + .org-col__group {
    margin-top: 16px;
}

.org-col__group-title {
    font-size: 14px;
    font-weight: 600;
    color: #00B4D8;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.org-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.org-tag {
    font-size: 13px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.org-tag:hover {
    color: #00B4D8;
    border-color: #00B4D8;
    background: rgba(0, 180, 216, 0.05);
}

/* 组织说明 */
.org-note {
    margin-top: 50px;
    padding: 24px 30px;
    background: #eff6ff;
    border-left: 4px solid #00B4D8;
    border-radius: 0 10px 10px 0;
}

.org-note p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .org-chart__cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-chart__cols::before {
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .page-banner__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .org-chart__cols {
        grid-template-columns: 1fr;
    }

    .org-chart__cols::before {
        display: none;
    }
}
