﻿/* === Apple-style Flat Card + 彈性浮入動畫 (GSAP Ready) === */
.orgfx-container {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-family: 'LXGW WenKai TC', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

.orgfx-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 40px;
    line-height: 1.4;
}

    .orgfx-title span {
        font-size: 17px;
        color: #6e6e73;
    }

.orgfx-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
    position: relative;
}

.orgfx-node {
    background: #ffffff;
    color: #1d1d1f;
    padding: 16px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: default;
    min-width: 240px;
    max-width: 280px;
    text-align: left;
    font-size: 15.5px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.node-primary {
    border-left: 4px solid #0071e3;
    border-right: 4px solid #0071e3;
}

.node-secondary {
    border-left: 4px solid #32d74b;
    border-right: 4px solid #32d74b;
}

.node-tertiary {
    border-left: 4px solid #af52de;
    border-right: 4px solid #af52de;
}

.fx-delay-1 {
    animation-delay: 0.15s;
}

.fx-delay-2 {
    animation-delay: 0.3s;
}

.fx-delay-3 {
    animation-delay: 0.45s;
}

.fx-delay-4 {
    animation-delay: 0.6s;
}

.fx-delay-5 {
    animation-delay: 0.75s;
}

.fx-delay-6 {
    animation-delay: 0.9s;
}

@keyframes floatBounceIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    animation: ripple 0.5s ease-out;
    transform: scale(0);
    pointer-events: none;
    z-index: 2;
}

@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.popup-info {
    position: absolute;
    backdrop-filter: blur(12px); /* 毛玻璃模糊 */
    background: rgba(255, 255, 255, 0.15); /* 半透明白 */
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    max-width: 280px;
    z-index: 999;
    color: #922e08;
    line-height: 1.6;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    transition: all 0.3s ease;
}

    .popup-info strong {
        font-size: 16px;
        color: #1d1d1f;
        display: block;
        margin-bottom: 6px;
    }



.orgfx-node[data-desc] {
    cursor: pointer;
    position: relative;
}

    .orgfx-node[data-desc]::after {
        content: "點擊查看說明";
        position: absolute;
        bottom: -26px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #aaa;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .orgfx-node[data-desc]:hover::after {
        opacity: 1;
    }

.orgfx-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.org-line {
    stroke: #9ccdf2;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8;
    stroke-dashoffset: 0;
    animation: flowLine 1.5s linear infinite;
    opacity: 0.8;
}

@keyframes flowLine {
    to {
        stroke-dashoffset: -16;
    }
}

.orgfx-icon {
    font-size: 2.4rem; /* 原本約 0.8~1rem，這裡放大為三倍 */
    color: #bf4a4a;
    margin-bottom: 8px;
    line-height: 1;
}
.orgfx-node:hover .orgfx-icon {
    transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}