/* 제품소개 페이지 전용 스타일 */
body {
    margin: 0;
    padding: 0;
}

footer {
    margin-top: 0 !important;
}

.intro-page {
    min-height: 100vh;
    background: #ffffff;
}

/* 히어로 섹션 */
.intro-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #000;
    margin-top: 80px; /* 고정 네비게이션 높이만큼 아래로 내림 */
}

.intro-hero-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro-hero-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: kenBurns 12s infinite;
}

.intro-hero-images img:nth-child(1) {
    animation-delay: 0s;
}

.intro-hero-images img:nth-child(2) {
    animation-delay: 6s;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateX(-5%);
        opacity: 0;
    }
    100% {
        transform: scale(1.2) translateX(-5%);
        opacity: 0;
    }
}

.intro-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.intro-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.intro-hero-content p {
    font-size: 2.7rem; /* 1.5x */
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-weight: 700;
}

/* 타석 유형 섹션 */
.tee-type-section {
    padding: 20px 0 100px; /* 상단 여백 절반 */
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* ✅ 인덱스와 동일 규격: 타이틀 5rem / 서브타이틀 2.4rem */
.section-header h2 {
    font-size: 5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: 2.4rem;
    color: #666;
    margin-top: 0.5rem; /* h2와 p 사이 간격 통일 */
}

.tee-types {
    display: flex;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.tee-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.tee-image {
    /* 카드 영역에 맞게, 안 잘리게, 라운드 일치 */
    height: 300px;
    padding: 15px;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tee-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 이미지 전체 보이게(잘림 방지) */
    display: block;
    max-width: 95%;
}

.tee-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tee-content h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.tee-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tee-specs {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

/* 시스템 소개 섹션 */
.system-section {
    padding: 100px 0;
    background: white;
}

.system-intro {
    text-align: center;
    margin-bottom: 80px;
}

/* ✅ 인덱스와 동일 규격: 타이틀 5rem / 서브타이틀 2.4rem */
.system-intro h2 {
    font-size: 5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.system-intro p {
    font-size: 2.4rem;
    color: #2B5CE6;
    font-weight: 600;
}

.system-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.system-item:last-child {
    margin-bottom: 0;
}

.system-item.reverse {
    flex-direction: row-reverse;
}

.system-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.system-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.system-image:hover img {
    transform: scale(1.05);
}

.system-text {
    flex: 1;
}

.system-text h3 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.system-text .subtitle {
    font-size: 1rem;
    color: #2B5CE6;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.system-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.system-specs {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
}

.system-specs p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.system-specs p:last-child {
    margin-bottom: 0;
}

/* 게임 모드 섹션 */
.game-modes-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.mode-category {
    margin-bottom: 80px;
}

.mode-category:last-child {
    margin-bottom: 0;
}

.mode-header {
    text-align: center;
    margin-bottom: 50px;
}

.mode-header h3 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.mode-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.mode-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mode-image {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 75%; /* 4:3 비율 */
    height: 0;
    cursor: pointer;
}

.mode-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.mode-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 비디오 섹션 */
.video-mode-section {
    padding: 100px 0;
    background: white;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-header {
    text-align: center;
    margin-bottom: 60px;
}

.video-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.video-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #000;
    cursor: pointer;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.video-player:hover .video-play-overlay {
    background: rgba(0,0,0,0.4);
}

.play-button {
    transition: transform 0.3s ease;
}

.video-player:hover .play-button {
    transform: scale(1.1);
}

.video-player.playing .video-play-overlay {
    display: none;
}

/* CTA 섹션 */
.cta-section {
    padding: 100px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f7 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-phone {
    font-size: 3rem;
    color: #2B5CE6;
    font-weight: 800;
    margin-bottom: 3rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-phone:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(43, 92, 230, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #2B5CE6;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(43, 92, 230, 0.3);
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(43, 92, 230, 0.4);
    background: #1a4bd8;
}

/* 라이트박스 스타일 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    margin: 0;

    /* 원본 비율 유지 + 화면에 꽉 차게(넘치지 않게) */
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;

    /* 이미지가 클릭 이벤트를 가로채지 않게 → 부모 .lightbox로 클릭 전달 */
    pointer-events: none;

    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 15px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-only {
    display: none;
}

/* ===== 타석 스와이프(tee) ===== */
.tee-slider-container {
    position: relative;
    display: none;
}

.tee-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.tee-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tee-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #2B5CE6;
    transition: width 0.3s ease;
}

.tee-tab.active {
    color: #2B5CE6;
}

.tee-tab.active::after {
    width: 100%;
}

.tee-swipe-wrapper {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.tee-swipe-track {
    display: flex;
    transition: transform 0.3s ease;
}

.tee-swipe-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== 시스템 슬라이더 ===== */
.system-items {
    display: block;
}

.system-slider-container {
    position: relative;
    display: none;
}

.system-arrow {
    position: relative;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #19503D;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.system-arrow:hover {
    background: white;
    transform: scale(1.1);
}

.system-slider {
    position: relative;
}

.system-slide {
    display: none;
    padding: 0 20px;
}

.system-slide.active {
    display: block;
}

.system-item-mobile {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.system-item-mobile .system-image {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.system-item-mobile .system-text {
    padding: 20px;
}

.system-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.system-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.system-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(43, 92, 230, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.system-dots .dot.active {
    background: #2B5CE6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .tee-slider-container {
        display: block !important;
    }
    
    .system-slider-container {
        display: block !important;
    }
    
    .system-items {
        display: none !important;
    }
    
    .tee-type-section .section-header {
        margin-bottom: 20px;  /* 모바일에서 유형소개와 탭 사이 간격 조절 */
    }

    .intro-hero {
        height: 200px;
        margin-top: 70px; /* 모바일에서도 네비 아래에서 시작 */
    }

    .intro-hero-content h1 {
        font-size: 2.2rem;
    }

    .intro-hero-content p {
        font-size: 1rem; /* 1.5x */
        font-weight: 700;
        margin-top: 60px; /* 텍스트 위치 아래로 */
    }

    .tee-types {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tee-image {
        padding: 15px !important;
        aspect-ratio: 4 / 3 !important;   /* 모바일에서 세로 여유 */
        border-radius: 20px !important;
    }

    /* 시스템 아이템 모바일 최적화 */
    .system-item {
        flex-direction: column !important;
        gap: 30px;
    }

    .system-item.reverse {
        flex-direction: column !important;
    }

    .system-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .system-text {
        width: 100%;
    }

    .mode-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* ✅ 모바일 축소 규격 유지 */
    .section-header h2,
    .system-intro h2 {
        font-size: 2rem;
    }

    .section-header p,
    .system-intro p {
        font-size: 1.4rem;
    }

    .cta-phone {
        font-size: 2.2rem;
    }

    .cta-section {
        padding-top: 60px;
    }

    .cta-container {
        padding-bottom: 60px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

/* PC에서 tee-types가 flex를 유지하도록 보강 (모바일에서는 숨김 유지) */
@media (min-width: 769px) {
    .tee-types.pc-only { display: flex !important; }
}
