
/* 점선 화살표 스타일 */
.arrow-container {
    height: 2px; /* 라인 두께 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashed-line {
    position: absolute;
    width: 100%;
    height: 2px;
    border-top: 2px dashed #434449;
    z-index: 1;
}

.arrow-icon {
    font-size: 24px;
    color:  #242838;
    background-color: #e1e1e1;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}
.diagram-box {
    border: 1px solid #e1e1e1;
    background: #fff;
    transition: all 0.3s ease;
}
.diagram-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.architecture-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* 간격 증가 */
}

/* 박스 스타일 및 폰트 크기 증가 */
.tech-box {
    background: #f8f9fa;
    border: 2px solid #5e686c;
    border-radius: 8px;
    padding: 20px; /* 패딩 증가 */
    text-align: center;
    font-weight: 700;
    min-width: 200px; /* 너비 증가 */
    font-size: 1.1rem; /* 폰트 키움 */
}
.host-box {
    background: #5e686c;
    color: #fff;
    border: none;
}

/* 화살표 및 프로토콜 텍스트 */
.flow-arrow {
    color: #ee5586;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.protocol-text {
    font-size: 14px; /* 폰트 키움 */
    color: #ee5586;
    margin-top: 5px;
    font-weight: 600;
}

.hpce-wrapper {
    width: 100%;
    max-width: 600px; /* 전체 너비 증가 */
}
.hpce-box {
    border: 2px solid #ee5586;
    background: #fff;
    position: relative;
    padding-top: 40px; /* 상단 여백 증가 */
    padding-bottom: 20px;
}
.badge-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ee5586;
    color: #fff;
    padding: 5px 20px;
    font-size: 14px; /* 폰트 키움 */
    border-radius: 0 0 8px 8px;
    font-weight: 600;
}
.internal-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.inner-box {
    border: 1px dashed #5e686c;
    background: #f1f1f1;
    padding: 12px; /* 패딩 증가 */
    width: 90%;
    font-size: 16px; /* 내부 폰트 키움 */
    border-radius: 6px;
    font-weight: 600;
}
.inner-row {
    display: flex;
    justify-content: space-between;
    width: 90%;
    align-items: center;
}
.sub-block {
    width: 45%;
    font-size: 15px; /* 내부 폰트 키움 */
    background: #fff5f8;
    border-color: #ee5586;
    border-style: solid; /* 실선으로 변경하여 강조 */
}
.arrow-x, .arrow-y {
    color: #5e686c;
    font-size: 18px; /* 화살표 키움 */
}
.pcie-ctrl {
    background-color: #eef2f3;
}

/* 하단 장치 박스들 */
.device-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.device-box {
    min-width: 140px; /* 너비 증가 */
    font-size: 16px; /* 폰트 키움 */
    background: #fff;
    padding: 15px;
}

.device-tree {
    position: relative;
}

/* ::before를 사용하여 세로선 생성 */
.device-tree::before {
    content: '';
    position: absolute;
    left: 0;
    /* top과 bottom 값은 박스 높이의 절반(약 28~30px)만큼 띄워야
       선이 박스 중앙에서 시작하고 끝납니다. */
    top: 28px;
    bottom: 28px;
    width: 3px; /* 선 두께 (다른 선들과 통일) */
    background: #5e686c;
}

/* 네트워크 확장성 다이어그램 스타일 */
.network-flow {
    padding: 30px;
}
.circle-node {
    width: 90px; /* 크기 증가 */
    height: 90px;
    background: #5e686c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px; /* 아이콘 키움 */
    margin: 0 auto;
}
.square-node {
    width: 110px; /* 크기 증가 */
    height: 110px;
    background: #ee5586;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(238, 85, 134, 0.3);
}
.rect-node {
    padding: 15px 30px; /* 패딩 증가 */
    border: 1px solid #5e686c;
    border-radius: 8px;
    background: #fff;
    min-width: 200px; /* 너비 증가 */
    text-align: center;
    font-weight: 700;
    font-size: 16px; /* 폰트 키움 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 연결선 스타일 */
.net-line-wrapper {
    flex-grow: 1;
    height: 3px; /* 선 두께 증가 */
    background: #5e686c;
    min-width: 60px;
    position: relative;
    margin: 0 15px;
}
.net-label {
    position: absolute;
    top: -25px;
    width: 100%;
    text-align: center;
    font-size: 13px; /* 폰트 키움 */
    color: #ee5586;
    font-weight: 800;
    white-space: nowrap;
}
.net-split-wrapper {
    display: flex;
    align-items: center;
    width: 60px;
    height: 100%;
}
.net-line-split {
    height: 3px; /* 선 두께 증가 */
    width: 100%;
    background: #5e686c;
}
.line-connector {
    width: 30px; /* 길이 증가 */
    height: 3px; /* 선 두께 증가 */
    background: #5e686c;
    margin-right: 10px;
}

.service-img {
    width: 100%;
    height: 220px !important;       /* 원하는 고정 높이 */
    object-fit: cover;   /* 비율 유지 + 영역 채움 */
}

@media (max-width: 768px) {
    .network-flow {
        flex-direction: column !important;
        gap: 30px;
    }
    .net-line-wrapper {
        min-height: 50px;
        width: 3px;
        margin: 10px 0;
    }
    .net-label {
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        text-align: left;
    }
    .net-split-wrapper {
        display: none;
    }
    .d-flex.flex-column.gap-3 {
        align-items: center;
        width: 100%;
    }
    .line-connector {
        display: none; /* 모바일에서는 가로 연결선 숨김 */
    }

    .device-tree::before {
        display: none;
    }
}