/* ==========================================================================
   [장누수증후군 페이지 전체 통합 CSS - 모바일  PC 반응형 최적화]
   ========================================================================== */


.byun_content{
max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;

}



/* ── 기본 레이아웃 및 요소 ── */
.bar.after { height: calc(320px * 0.2); }
.bar.before { height: calc(320px * 0.60); }
.circle-badge { left: 257px; top: 80px; }
.arrow-image-wrapper { transform: rotate(93deg); left: 160px; }

.byun_top_img p {	
    width: 522px;
    margin: 0 auto;
    border-radius: 100px;
    background: #1a1b1c;
    z-index: 2;
    position: relative;
}
	
.byunbi_container {
    top: -30px;
    z-index: 1;
}
	
.byunbi_container img {
    border-radius: 30px;
    width: 1000px;
    height: 500px;
}	

.byunbi-list h2 strong {
    color: #996a41;
}
	
/* 담적 말풍선 */
.byunbi_container .badge-1 {
    background: url(/data/skin/front/pure/img/byunhom/damjuck/pungsun01.png);
    width: 346px;
    height: 135px;
    padding: 25px;
    border-radius: 0px;
    top: 250px;
}

.byunbi_container .badge-1 h4 {	
    color: #000;
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    top: 30px;
    left: 30px;
}
	
.byunbi_container .badge-2 {
    background: url(/data/skin/front/pure/img/byunhom/damjuck/pungsun02.png);
    width: 346px;
    height: 135px;
    padding: 25px;
    border-radius: 0px;
    top: 50px;
}	
	
.byunbi_container .badge-2 h4 {	
    color: #000;
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    top: 30px;
    left: 106px;
}
	
/* ── 그래프 (장민감도 변화) ── */
.chart-container_left {
    padding: 25px 25px 15px 25px;
}
.chart-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.row-label {
    flex-shrink: 0;
    text-align: left;
    line-height: 1.3;
}

.bar-track {
    flex-grow: 1;
    position: relative;
    background-color: #e8e8e8;
    height: 40px;
    border-radius: 5px;
    overflow: visible;
    margin-left: 10px;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
}

.bar-before { background-color: #951731; }
.bar-after { background-color: #22688f; }

.bar-inner-label {
    position: absolute;
    left: 15px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
    text-shadow: -1px -1px 0 #951731, 1px -1px 0 #951731, -1px 1px 0 #951731, 1px 1px 0 #951731;
}

.bar-after-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: #25678d;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease 1.0s;
    z-index: 2;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.bar-after-label.show {
opacity: 1; 

   color: #25678d;
    white-space: nowrap;
     text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

@media (min-width: 480px) {
    .bar-track { height: 45px; }
    .bar-inner-label, .bar-after-label { font-size: 16px; }
    .bar-after-label { color: #ffffff; text-shadow: none; }
}

@media (min-width: 768px) {
    .bar-inner-label, .bar-after-label { font-size: 18px; }
}

@media (max-width: 360px) {
    .row-label { font-size: 14px !important; }
    .bar-inner-label, .bar-after-label { font-size: 11px; left: 8px; }
}

.badge-circle {
    position: absolute;
    left: 260px;
    top: 300px;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #4690b9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease 1.1s;
}
.badge-circle.show { opacity: 0; }

.badge-top { font-size: 12px; color: #fff; line-height: 1; }
.badge-num { font-size: 27px; font-weight: 500; color: #ffffff; line-height: 1.1; }
 
.axis-row { display: flex; margin-top: 6px; padding-left: 82px; }
.axis-labels { flex: 1; display: flex; justify-content: space-between; }
.axis-label { font-size: 13px; color: var(--color-text-tertiary); }
	
.damjuck_left { padding-top: 30px; }
	
/* ── 장누수 전신 증상 카드형 표 ── */
.jangnusu_container { width: 100%; margin: 0 auto; text-align: center; box-sizing: border-box; }
.jangnusu_container strong { color: #e03333; }

#jangnusu_symptom-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.symptom-category-box {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.symptom-category-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(224, 51, 51, 0.08);
}

.category-title {
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.category-title.immune { background: linear-gradient(90deg, #951731, #b82642); }
.category-title.systemic { background: linear-gradient(90deg, #22688f, #3384b0); }

.symptom-list { list-style: none; padding: 10px 0; margin: 0; }
.symptom-list li {
    padding: 14px 20px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
.symptom-list li:last-child { border-bottom: none; }
.symptom-list .bullet { color: #e03333; font-size: 12px; }

@media (min-width: 768px) {
    #jangnusu_symptom-table { flex-direction: row; gap: 25px; }
    .category-title { font-size: 18px; padding: 16px 24px; }
    .symptom-list li { font-size: 16px; padding: 16px 24px; }
}

/* ── [핵심수정] 장누수증후군 애니메이션 모바일 최적화 ── */
:root {
    --bg: #1a0a0a;
    --cell-body: #f4a07a;
    --cell-top: #e8896a;
    --cell-shadow: #c4603a;
    --tight-junction: #d45a3a;
    --brush-border: #f7c4a0;
    --blood: #c0392b;
    --blood-layer: #8b1a1a;
    --mucus: #fde8d8;
    --gap-color: #2d0808;
}	
	
.jangnusu_img {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    padding-bottom: 40px;
    position: relative;
    box-sizing: border-box;
}
	
.legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: 15px;
    z-index: 2;
    padding: 0 10px;
    box-sizing: border-box;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #e8c4a0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.scene {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 380px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #1a0a0a 0%, #1a0a0a 55%, #3d0f0f 55%, #8b1a1a 75%, #c0392b 100%);
    border: 1px solid #3d1818;
    box-shadow: 0 0 40px rgba(180, 40, 40, 0.25);
    box-sizing: border-box;
}

.status-label {
    position: absolute;
    top: 75px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #f9d0b4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(244,160,122,0.3);
    white-space: nowrap;
    transition: all 0.5s;
    z-index: 30;
}
.scene.ruptured .status-label {
    color: #ff6b6b;
    border-color: rgba(255,107,107,0.5);
    background: rgba(30, 5, 5, 0.8);
}

.mucus-layer { position: absolute; top: 130px; left: 0; right: 0; height: 20px; pointer-events: none; }

.epithelium {
    position: absolute;
    top: 170px;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-around;
    padding: 0 5px;
    box-sizing: border-box;
}

.cell {
    position: relative;
    flex: 1;
    max-width: 80px;
    height: 110px;
    background: var(--cell-body);
    border-radius: 6px 6px 2px 2px;
    margin: 0 2px;
    transition: transform 1.2s cubic-bezier(0.4,0,0.2,1), margin 1.2s cubic-bezier(0.4,0,0.2,1), filter 1.2s ease;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.2), inset 2px 0 5px rgba(255,255,255,0.15);
}

.cell::before {
    content: '';
    position: absolute;
    top: -14px; left: 2px; right: 2px;
    height: 16px;
    background: repeating-linear-gradient(90deg, var(--brush-border) 0px, var(--brush-border) 2px, transparent 2px, transparent 5px);
    border-radius: 3px 3px 0 0;
    opacity: 0.9;
}

.cell::after {
    content: '';
    position: absolute;
    top: 8px; left: -4px; right: -4px; height: 5px;
    background: var(--tight-junction);
    border-radius: 3px;
    transition: opacity 1.2s ease, transform 1.2s ease;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nucleus {
    position: absolute;
    bottom: 25px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 22px;
    background: radial-gradient(circle at 40% 35%, #e86030, #b03010);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(180,60,20,0.6);
}

/* ── 모바일 기준 파열 애니메이션 안전 수치 ── */
.scene.ruptured .cell:nth-child(2n) {
    transform: translateX(-4px) rotate(-1deg);
    margin-right: 12px;
    filter: brightness(0.85) saturate(1.1);
}
.scene.ruptured .cell:nth-child(2n+1) {
    transform: translateX(2px) rotate(1deg);
    filter: brightness(0.85) saturate(1.1);
}
.scene.ruptured .cell::after {
    opacity: 0.1;
    transform: scaleX(0.5);
}

.blood-layer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(180deg, #701212, #b02525);
    overflow: hidden;
}

.blood-cell {
    position: absolute;
    width: 24px; height: 14px;
    background: radial-gradient(ellipse, #e74c3c 60%, #922b21);
    border-radius: 50%;
    opacity: 0.8;
    animation: floatBlood linear infinite;
}

@keyframes floatBlood {
    from { transform: translateX(-30px); }
    to   { transform: translateX(calc(min(700px, 96vw) + 30px)); }
}

.gap-arrow {
    position: absolute;
    top: 130px; /* 세포 위 점액층 높이에 맞춤 */
    width: 4px;
    height: 0;
    background: #ff6b6b;
    z-index: 15;
    transition: height 1.2s ease;
    transform: translateX(-50%);
    opacity: 0;
}

/* 화살표 모양 */
.gap-arrow::after {
    content: '▼';
    position: absolute;
    bottom: -14px; 
    left: 50%;
    transform: translateX(-50%);
    color: #ff6b6b;
    font-size: 16px;
    text-shadow: 0 0 6px rgba(255,107,107,0.6);
}

.gap-arrow.arrow-1 { left: 20%; }
.gap-arrow.arrow-2 { left: 42%; }
.gap-arrow.arrow-3 { left: 64%; }
.gap-arrow.arrow-4 { left: 87%; }


/* 파열(ruptured) 상태가 되면 아래로 늘어나며 노출 */
.scene.ruptured .gap-arrow { 
    height: 35px; 
    opacity: 1;
}

/* [핵심] 입자가 떨어지는 4개의 주요 틈새 위치에 화살표 배치 (HTML/JS 구조에 맞춰 추가 필요시 사용) */
/* 기본 화살표 가로 위치 (가장 넓은 정중앙 틈새 기준 기본값) */
.gap-arrow { left: 42%; } 

/* ── 태블릿  PC 확장 대화면 (768px 이상)에서 화살표 정밀 조정 ── */
@media (min-width: 768px) {
    .gap-arrow {
        top: 140px; /* PC 환경 세포 높이에 맞춰 조정 */
    }
    .scene.ruptured .gap-arrow { 
        height: 45px; 
    }
    .gap-arrow::after {
        font-size: 20px;
        bottom: -18px;
    }
}
.controls { display: flex; gap: 12px; margin-top: 20px; }


#btnRupture { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; box-shadow: 0 4px 20px rgba(231,76,60,0.4); }
#btnRestore { background: linear-gradient(135deg, #27ae60, #1e8449); color: white; box-shadow: 0 4px 20px rgba(39,174,96,0.4); }

.info { margin-top: 16px; font-size: 0.68rem; color: #8a5a4a; text-align: center; max-width: 600px; line-height: 1.6; }
.dust { position: absolute; width: 3px; height: 3px; border-radius: 50%; opacity: 0.3; animation: floatDust linear infinite; }
@keyframes floatDust {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    20%  { opacity: 0.3; }
    80%  { opacity: 0.3; }
    100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}

/* ── 침투 입자 루프 애니메이션 ── */
.particle {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    top: 130px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.scene.ruptured .particle { animation: cssFallThrough 2.2s infinite linear; }

.particle.gluten    { background: #4caf50; box-shadow: 0 0 8px #4caf50; border-radius: 50% 20%; }
.particle.casein    { background: #039be5; box-shadow: 0 0 8px #039be5; }
.particle.toxin     { background: #9c27b0; box-shadow: 0 0 8px #9c27b0; width: 12px; height: 6px; }
.particle.pathogen { background: #f57c00; box-shadow: 0 0 8px #f57c00; }

@keyframes cssFallThrough {
    0% { top: 130px; opacity: 0; transform: scale(0.7) translateY(0); }
    15% { opacity: 1; }
    40% { opacity: 1; transform: scale(1) translateY(40px); }
    100% { top: 280px; opacity: 0; transform: scale(0.8) translateY(100px); }
}

.p-1  { left: 20%;  animation-delay: 0.2s !important; }
.p-2  { left: 19%;  animation-delay: 1.1s !important; }
.p-3  { left: 22%;  animation-delay: 2.0s !important; }
.p-4  { left: 42%;  animation-delay: 0.5s !important; }
.p-5  { left: 43%;  animation-delay: 1.4s !important; }
.p-6  { left: 44%;  animation-delay: 2.3s !important; }
.p-7  { left: 64%;  animation-delay: 0.8s !important; }
.p-8  { left: 65%;  animation-delay: 1.7s !important; }
.p-9  { left: 67%;  animation-delay: 0.3s !important; }
.p-10 { left: 87%;  animation-delay: 1.2s !important; }
.p-11 { left: 86%;  animation-delay: 2.5s !important; }
.p-12 { left: 88%;  animation-delay: 1.6s !important; }

/* ── 애니메이션 태블릿 & PC 확장 대화면 정의 (768px 이상) ── */
@media (min-width: 768px) {
    .legend-item { font-size: 17px; }
    .scene { height: 420px; }
    .status-label { font-size: 18px; top: 70px; }
    .epithelium { top: 190px; }
    .cell { height: 120px; margin: 0 1px; }
    .cell::before { top: -18px; height: 20px; }
    
    .scene.ruptured .cell:nth-child(2n) { transform: translateX(-8px) rotate(-1.5deg); margin-right: 18px; }
    .scene.ruptured .cell:nth-child(2n+1) { transform: translateX(4px) rotate(1deg); }
    .scene.ruptured .cell::after { transform: scaleX(1.3); }
    
    .particle { width: 14px; height: 14px; top: 100px; }
    @keyframes cssFallThrough {
        0% { top: 100px; opacity: 0; transform: scale(0.8); }
        15% { opacity: 0.9; }
        40% { opacity: 1; transform: scale(1) translateY(50px); }
        100% { top: 240px; opacity: 0; transform: scale(0.9) translateY(140px); }
    }
}

/* ── 전신 순환 이미지 ── */
.jangnusu_junsin {
    display: flex;
    flex-direction: column; 
    width: 100%;
    max-width: 900px; 
    margin: 0 auto !important;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.jangnusu_junsin #left-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 15px;
}

.jangnusu_junsin .badge {
    background-color: #a91c1c;
    color: #ffffff;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: bold;
    padding: 8px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(225, 43, 20, 0.2);
    display: inline-block;
    margin: 0 auto !important;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {

.jangnusu_junsin .badge {
width:100%; 
padding: 0px; 
        line-height: 2;
}

}

.jangnusu_junsin #blood-vessel-box {
    margin: 0 auto !important;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    line-height: 0;
}
.jangnusu_junsin #blood-vessel-box img { width: 100%; height: auto; display: block; }

.jangnusu_junsin .right-content {
    width: 60%; 
    max-width: 280px; 
    margin: 0 auto;
    position: relative; 
    display: inline-block; 
    line-height: 0;
    box-sizing: border-box;
}
.jangnusu_junsin .right-content img { width: 100%; height: auto; display: block; }

@media (min-width: 768px) {
    .jangnusu_junsin { flex-direction: row; justify-content: center; gap: 50px; padding-bottom: 60px; }
    .jangnusu_junsin #left-content { width: 50%; align-items: flex-start; }
    .jangnusu_junsin #blood-vessel-box { margin: 0 !important; }
    .jangnusu_junsin .right-content { width: 40%; margin: 0; }
    .highlight { filter: blur(15px); }
}

/* 소장 융모 안내문 */
.youngmo_list_txt { font-size: 28px; text-align: center; font-weight: 500; color: #515151; }	
.youngmo_list_txt span { text-decoration: underline; text-underline-position: under; }

#youngmone_box { margin: 0 auto; max-width: 700px; }
.youngmone_box {   
    position: relative;
    padding: 25px;
    background-color: #f9fbfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;    
    margin: 20px;  
    margin-top: 40px;
    margin-bottom: 0px;
max-width: 700px;
}
.youngmone_box img { height: auto; border-radius: 8px; width: 100%;  } /*  max-width: 100%; */

.youngmone_box .youngmo_list_txt {
    font-size: 17px; 
    line-height: 1.6; 
    color: #4a5568; 
    margin: 0;
    word-break: keep-all; 
}
.youngmone_box .youngmo_list_txt span { color: #2b6cb0; font-weight: 600; padding: 2px 6px; border-radius: 4px; } 
.youngmone_box .youngmo_list_txt b { display: inline-block; margin-top: 10px; font-size: 17px; color: #2d3748; font-weight: 700; }

@media (min-width: 768px) {
    .youngmone_box .youngmo_list_txt { font-size: 20px; }
    .youngmone_box .youngmo_list_txt b { font-size: 22px; }
}

/* ── 신체 장기 하이라이트 깜빡이 효과 ── */
.highlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    background-color: rgba(255, 0, 0, 0.41);
    animation-name: blink;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.highlight.brain { top: 10px; left: 60px; width: 70px; height: 70px; animation-delay: 0s; }
.highlight.heart { top: 150px; left: 60px; width: 70px; height: 70px; animation-delay: 0.4s; }
.highlight.stomach { top: 240px; left: 60px; width: 70px; height: 70px; animation-delay: 0.8s; }
.highlight.gut { top: 420px; left: 60px; width: 70px; height: 70px; animation-delay: 1.2s; }

@keyframes blink {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}





html, body {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important; /* 가로 스크롤 절대 차단 */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}