This commit is contained in:
msbfox
2026-06-14 10:39:56 +09:00
parent 4ee992e855
commit 0345b8cd08
514 changed files with 492 additions and 953 deletions
@@ -8,7 +8,7 @@
.product-section .product-item { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; position: relative; z-index: 10; }
/* 2. 제품 이미지 기본 스타일 (200x200) */
.product-img { width: 200px; height: 200px; overflow: visible; position: relative; }
.product-img { width: 100px; height: 100px; overflow: visible; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
/* 💡 [모드 1] 메인 영역 내부 중앙 팝업 */
@@ -1,326 +0,0 @@
/* ============================================================
[최종 통합본] 메인 맵 전용 스타일 - 화살표 및 방향 보정 포함
============================================================ */
/* 1. 기본 레이아웃 */
.product-section {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 40px;
padding: 40px 20px;
position: relative !important;
}
.product-section .product-side { display: flex; flex-direction: column; }
.product-section .product-item {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 40px;
position: relative;
z-index: 10;
}
/* 2. 제품 이미지 기본 스타일 */
.product-img { width: 200px; height: 200px; overflow: visible; position: relative; }
.product-img img {
width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* 💡 [모드 1] 메인 영역 내부 중앙 팝업 */
#active-popup-img {
position: absolute !important;
top: 50% !important; left: 50% !important;
transform: translate(-50%, -50%) scale(0.1) !important;
width: calc(100% - 40px) !important;
height: calc(100% - 40px) !important;
max-width: 1560px;
z-index: 9999 !important;
box-shadow: 0 40px 100px rgba(0,0,0,0.8);
border: 3px solid rgba(255,255,255,0.5);
object-fit: contain !important;
opacity: 0;
transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
pointer-events: none !important;
}
#active-popup-img.active { transform: translate(-50%, -50%) scale(1) !important; opacity: 1; }
/* 💡 점선 연결선 설정 (After: 선, Before: 화살표) */
.show-connector::after {
content: ''; position: absolute; top: 50%;
border-top: 3px dashed #ffd200; z-index: 500; pointer-events: none;
width: 0 !important;
transform: rotate(var(--line-angle, 0deg)) !important;
transition: width 0.5s ease;
display: block !important;
}
/* 💡 [추가] 점선 끝 화살표 머리 */
.show-connector::before {
content: ''; position: absolute; top: 50%;
width: 0; height: 0;
border-left: 12px solid #ffd200; /* 화살표 색상 */
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
z-index: 501; pointer-events: none;
opacity: 0;
/* 선의 끝 지점으로 화살표 이동 */
transform: rotate(var(--line-angle, 0deg)) translateX(var(--line-width, 0px)) translateY(-50%);
transition: opacity 0.3s ease 0.4s;
display: block !important;
}
.show-connector.active::after { width: var(--line-width, 0px) !important; animation: dash-move 1.5s linear infinite; }
.show-connector.active::before { opacity: 1; }
/* 💡 방향별 회전축 보정 */
/* 왼쪽 메뉴 -> 메인으로 (오른쪽 방향) */
.product-side.left .show-connector::after,
.product-side.left .show-connector::before {
left: 100% !important;
margin-left: 10px;
transform-origin: left center !important;
}
/* 오른쪽 메뉴 -> 메인으로 (왼쪽 방향) */
.product-side.right .show-connector::after,
.product-side.right .show-connector::before {
right: 100% !important; /* 👈 오른쪽 끝 기준 왼쪽으로 뻗음 */
left: auto !important;
margin-right: 10px;
transform-origin: right center !important; /* 👈 회전축을 우측 끝으로 고정 */
}
@keyframes dash-move { to { stroke-dashoffset: -20; } }
/* 3. 메인 이미지 및 블루 스폿 설정 */
.product-main { position: relative; width: 1600px; height: 1200px; flex-shrink: 0; overflow: hidden; }
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.product-hotspot {
position: absolute !important; width: 45px !important; height: 45px !important;
background: rgba(0, 123, 255, 0.8) !important; border: 3px solid #fff !important;
border-radius: 50% !important; transform: translate(-50%, -50%) !important;
z-index: 500; display: none; animation: hotspot-pulse-blue 1.5s infinite;
}
@keyframes hotspot-pulse-blue {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}
/*잘되은거 아래*/
/*!* ============================================================
[최종 통합본] 메인 맵 전용 스타일 (products2.css)
============================================================ *!
!* 1. 기본 레이아웃 *!
.product-section {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 40px;
padding: 40px 20px;
position: relative !important;
}
.product-section .product-side { display: flex; flex-direction: column; }
.product-section .product-item {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 40px;
position: relative;
z-index: 10;
}
!* 2. 제품 이미지 기본 스타일 *!
.product-img {
width: 200px;
height: 200px;
overflow: visible;
position: relative;
}
.product-img img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 12px;
transition: all 0.4s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
!* 💡 [모드 1] 메인 영역 내부 중앙 팝업 *!
#active-popup-img {
position: absolute !important;
top: 50% !important;
left: 50% !important;
!* 시작 상태: 작고 투명하게 *!
transform: translate(-50%, -50%) scale(0.1) !important;
width: calc(100% - 40px) !important; !* 사방 20px 마진 *!
height: calc(100% - 40px) !important;
max-width: 1560px;
z-index: 9999 !important;
box-shadow: 0 40px 100px rgba(0,0,0,0.8);
border: 3px solid rgba(255,255,255,0.5);
object-fit: contain !important;
opacity: 0;
transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
!* 💡 [핵심] 마우스 이벤트를 무시하여 아이템 mouseleave 방해 금지 *!
pointer-events: none !important;
}
!* 활성화 상태: 정중앙 100% 크기 *!
#active-popup-img.active {
transform: translate(-50%, -50%) scale(1) !important;
opacity: 1;
}
!* 💡 [모드 2] 점선 연결선 *!
.show-connector::after {
content: '';
position: absolute;
top: 50%;
border-top: 3px dashed #ffd200;
z-index: 500;
pointer-events: none;
width: 0 !important; !* 시작은 길이 0 *!
transform: rotate(var(--line-angle, 0deg)) !important;
transform-origin: left center !important;
transition: width 0.5s ease;
display: block !important;
}
!* 활성화 상태: 계산된 길이만큼 뻗어나감 *!
.show-connector.active::after {
width: var(--line-width, 0px) !important;
animation: dash-move 1.5s linear infinite;
}
!* 방향별 연결선 시작 위치 *!
.product-side.left .show-connector::after { left: 100% !important; margin-left: 10px; }
.product-side.right .show-connector::after {
left: 0 !important;
margin-right: 10px;
transform-origin: right center !important;
}
@keyframes dash-move { to { stroke-dashoffset: -20; } }
!* 3. 메인 이미지 및 블루 스폿 설정 *!
.product-main {
position: relative;
width: 1600px;
height: 1200px;
flex-shrink: 0;
overflow: hidden;
}
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.product-hotspot {
position: absolute !important;
width: 45px !important;
height: 45px !important;
background: rgba(0, 123, 255, 0.8) !important;
border: 3px solid #fff !important;
border-radius: 50% !important;
transform: translate(-50%, -50%) !important;
z-index: 500;
display: none;
animation: hotspot-pulse-blue 1.5s infinite;
}
@keyframes hotspot-pulse-blue {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}
.product-hotspot::after {
content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
background-color: rgba(0, 123, 255, 0.3); border-radius: 50%;
transform: translate(-50%, -50%); animation: hotspot-ring 1.5s infinite;
}
@keyframes hotspot-ring {
0% { width: 45px; height: 45px; opacity: 0.5; }
100% { width: 120px; height: 120px; opacity: 0; }
}*/
/*
!* ============================================================
[최종 통합본] 메인 맵 전용 스타일 (products2.css)
============================================================ *!
!* 1. 컨테이너 및 레이아웃 *!
.product-section { display: flex; justify-content: center; align-items: flex-start; gap: 40px; padding: 40px 20px; }
.product-section .product-side { flex-direction: column; }
.product-section .product-item { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; position: relative; z-index: 10; }
!* 2. 제품 이미지 기본 스타일 *!
.product-img { width: 200px; height: 200px; overflow: visible; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
!* 💡 [모드 1] 메인 영역(.product-main) 내부 중앙 팝업 *!
#active-popup-img {
position: absolute !important;
top: 50% !important; left: 50% !important;
transform: translate(-50%, -50%) !important;
width: calc(100% - 40px) !important; !* 💡 부모 내부 20px 마진 *!
height: calc(100% - 40px) !important;
max-width: 1560px;
z-index: 9999 !important;
box-shadow: 0 40px 100px rgba(0,0,0,0.8);
border: 3px solid rgba(255,255,255,0.5);
object-fit: contain !important;
pointer-events: none;
}
!* 💡 [모드 2] 점선 연결선 *!
.show-connector::after {
content: ''; position: absolute; top: 50%;
border-top: 3px dashed #ffd200; z-index: 500; pointer-events: none;
width: var(--line-width, 0px) !important;
transform: rotate(var(--line-angle, 0deg)) !important;
transform-origin: left center !important;
display: block !important;
}
.product-side.left .show-connector::after { left: 100% !important; margin-left: 10px; }
.product-side.right .show-connector::after { left: 0 !important; margin-right: 10px; transform-origin: right center !important; }
@keyframes dash-move { to { stroke-dashoffset: -20; } }
!* 3. 메인 이미지 및 블루 스폿 설정 *!
.product-main { position: relative; width: 1600px; height: 1200px; flex-shrink: 0; overflow: hidden; }
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.product-hotspot {
position: absolute !important; width: 45px !important; height: 45px !important;
background: rgba(0, 123, 255, 0.8) !important; border: 3px solid #fff !important;
border-radius: 50% !important; transform: translate(-50%, -50%) !important;
z-index: 500; display: none; animation: hotspot-pulse-blue 1.5s infinite;
}
@keyframes hotspot-pulse-blue { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; } }
.product-hotspot::after {
content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
background-color: rgba(0, 123, 255, 0.3); border-radius: 50%;
transform: translate(-50%, -50%); animation: hotspot-ring 1.5s infinite;
}
@keyframes hotspot-ring { 0% { width: 45px; height: 45px; opacity: 0.5; } 100% { width: 120px; height: 120px; opacity: 0; } }
!* 💡 [모드 1] 메인 영역(.product-main) 내부 중앙 팝업 *!
#active-popup-img {
position: absolute !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) scale(0.1) !important; !* 💡 초기 크기를 작게 시작 *!
width: calc(100% - 40px) !important; !* 메인 영역 너비의 90% *!
height: auto !important;
max-height: 90% !important;
z-index: 9999 !important;
box-shadow: 0 40px 100px rgba(0,0,0,0.8);
border: 3px solid rgba(255,255,255,0.5);
object-fit: contain !important;
pointer-events: none;
opacity: 0; !* 💡 초기 투명도 *!
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; !* 💡 애니메이션 추가 *!
}
!* 💡 [추가] 팝업이 활성화될 때 최종 크기로 *!
.product-section .product-main #active-popup-img.active {
transform: translate(-50%, -50%) scale(1) !important; !* 💡 최종 크기 *!
opacity: 1; !* 💡 최종 투명도 *!
}*/
@@ -1,124 +0,0 @@
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
/* --- [유지] 기본 및 공통 설정 --- */
.products-main-page { background-color: #0b0f1a; font-family: 'Pretendard', sans-serif; margin: 0; padding: 0; }
.main-container { width: 100%; overflow: hidden; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h3 { font-size: 32px; font-weight: 700; color: #333; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title h3::after { content: ''; display: block; width: 40px; height: 2px; background: #0054a6; margin: 15px auto 0; }
.section-title p { font-size: 16px; color: #666; }
/* --- [유지] 메인 비주얼 슬라이더 관련 (기존 소스) --- */
.main-visual { width: 100%; height: auto; position: relative; padding-top: 190px; box-sizing: border-box; }
.visual-slider, .swiper-wrapper, .swiper-slide { height: 100%; }
.visual-link { display: block; width: 100%; height: 100%; position: relative; }
.visual-img { width: 100%; height: 100%; background-size: cover; background-position: center; position: absolute; top: 0; left: 0; z-index: 1; }
.visual-layer-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 2; text-align: center; color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.visual-title { font-size: 48px; font-weight: 700; color: #ffd200; margin: 0; }
.visual-divider { display: block; width: 50px; height: 2px; background-color: rgba(255, 255, 255, 0.5); margin: 30px auto; }
.visual-subtitle { font-size: 24px; font-weight: 500; line-height: 1.6; margin: 0; }
.main-visual .swiper-button-next, .main-visual .swiper-button-prev { width: 70px; height: 70px; background-color: rgba(0, 0, 0, 0.1); border-radius: 50%; color: #fff; position: absolute; top: calc(50% + 45px); transform: translateY(-50%); z-index: 10; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.main-visual .swiper-button-prev { left: 20px; }
.main-visual .swiper-button-next { right: 20px; }
/* --- [유지] 히어로 섹션 관련 (기존 소스) --- */
.hero_container { padding: 120px 0 80px 0; background: #fff; }
.hero_container .text_area { position: relative; width: 100%; max-width: 1600px; padding: 0 20px; text-align: left; color: #111; line-height: 1.6; z-index: 2; }
/* ... (기존의 btn_box, main_title 등 생략하지만 파일에는 유지하셔야 합니다) ... */
/* --- [중요/수정] 팝업창 및 맵 전용 설정 --- */
/* 1. 최상위 섹션 기준점 (팝업 중앙 배치를 위해 필수) */
.product-map-section {
position: relative !important;
}
/* 2. 맵 및 핫스팟 보정 */
.map-wrapper {
position: relative; display: inline-block;
width: 1600px; overflow: hidden; border-radius: 24px;
margin: 0 auto; background: #161b26;
}
.map-container {
position: relative; width: 100%; height: 980px !important;
background-size: 100% 100% !important; cursor: crosshair;
}
.hotspot {
position: absolute; width: 22px !important; height: 22px !important;
background: rgba(59, 130, 246, 0.6); border: 2px solid #fff; border-radius: 50%;
transform: translate(-50%, -50%) !important; /* 💡 Y축 오차 해결 */
z-index: 10; cursor: pointer;
}
.hotspot::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; background-color: rgba(0, 123, 255, 0.4); border-radius: 50%; transform: translate(-50%, -50%); animation: hotspot-pulse 2s infinite; }
@keyframes hotspot-pulse { 0% { width: 20px; height: 20px; opacity: 0.8; } 100% { width: 60px; height: 60px; opacity: 0; } }
/* 3. [최종] 팝업 통합 스타일 (중복 완전 제거) */
#hover-preview {
position: absolute !important; /* 💡 섹션 내 중앙 배치 */
left: 50% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
display: none;
z-index: 1000;
background: rgba(15, 23, 42, 0.98) !important;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 24px;
padding: 30px !important;
box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
/* 💡 사방 20px 마진 강제 */
max-width: calc(100% - 40px) !important;
max-height: calc(100% - 40px) !important;
width: 500px; /* 호버 시 기본 너비 */
transition: width 0.3s ease;
pointer-events: none;
}
/* 클릭 고정 시 */
#hover-preview.fixed-mode {
display: flex !important;
flex-direction: column !important; /* 💡 세로 배치를 강제하여 옆으로 벌어짐 해결 */
width: calc(100% - 40px) !important;
height: calc(100% - 40px) !important;
pointer-events: auto !important;
}
/* 4. 제품 그리드 및 아이템 레이아웃 */
.products-grid {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 20px;
flex: 1;
overflow-y: auto;
width: 100%;
}
.products-grid.single-item, .products-grid.full-html-mode {
grid-template-columns: 1fr !important;
}
/* 모든 아이템은 세로 정렬 */
.product-item.item-vertical {
display: flex !important;
flex-direction: column !important;
align-items: flex-start !important;
background: rgba(255, 255, 255, 0.05) !important;
padding: 20px;
border-radius: 16px;
color: #fff;
text-align: left !important;
}
.product-img-box { width: 100% !important; height: auto !important; max-height: 400px; background: #000; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.product-img-box img { width: 100%; height: 100%; object-fit: contain; }
/* 5. 에디터 뷰 최적화 */
.editor-content-view { width: 100% !important; color: #eee !important; line-height: 1.7; margin-bottom: 20px; }
.editor-content-view img { max-width: 100% !important; width: auto !important; height: auto !important; display: block; margin: 15px auto; border-radius: 10px; }
/* 스크롤바 디자인 */
#preview-grid::-webkit-scrollbar { width: 6px; }
#preview-grid::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.5); border-radius: 10px; }
.content-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 30px 0; }