/* ==========================================================================
   遊戲介紹頁面專屬樣式 (info.css)
   ========================================================================== */

.info-container {
    width: 100%;
    box-sizing: border-box;
    /* ==========================================================================
       【關鍵修改】將底部 padding 從 60px 提高到 25vh (螢幕高度的 25%)
       這樣能確保網頁有空間可以往下滑動，觸發滾輪事件！
       ========================================================================== */
    padding: 130px 40px 25vh 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title-zone {
    text-align: center;
    margin-bottom: 60px;
}

.page-title-en {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #666666;
    letter-spacing: 6px;
}

.page-title-zh {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 6px 0 0 0;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.title-underline {
    width: 60px;
    height: 2px;
    background: #ffffff;
    margin: 15px auto 0 auto;
}

/* 左右佈局 */
.info-layout {
    display: flex;
    gap: 40px;
    align-items: stretch; /* 讓左右兩邊等高，排版更好看 */
}

.features-grid {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ==========================================================================
   【左側】YouTube 影片預覽封面外殼
   ========================================================================== */
.video-preview-wrapper {
    flex: 1.5;
    position: relative;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 預覽縮圖 */
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6; /* 讓底圖稍微暗化，凸顯正中央的播放鈕 */
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* 遮罩層與排版 */
.video-overlay {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 核心：硬核科幻風純黑白高對比播放按鈕 */
.play-icon-btn {
    width: 80px;
    height: 80px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.play-arrow {
    color: #ffffff;
    font-size: 24px;
    margin-left: 6px; /* 微調三角形正中心視覺差 */
    transition: color 0.3s ease, transform 0.3s ease;
}

.video-play-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #888888;
    letter-spacing: 3px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 懸停互動（Hover）特效 */
.video-preview-wrapper:hover {
    border-color: #ffffff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.video-preview-wrapper:hover .video-thumbnail {
    transform: scale(1.03); /* 縮圖微微放大 */
    opacity: 0.7;
}

.video-preview-wrapper:hover .play-icon-btn {
    background: #ffffff; /* 按鈕整個變成純白 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

.video-preview-wrapper:hover .play-arrow {
    color: #000000; /* 箭頭變成黑色反過來 */
}

.video-preview-wrapper:hover .video-play-text {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   【彈出燈箱】滿版淡入與中央純白邊框影片
   ========================================================================== */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9); /* 超深黑高透明背景罩 */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 核心：預設為透明、不可點擊，用來做淡入動畫 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* 當 JS 賦予 .active 狀態時，優雅淡入 */
.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 影片內容容器外殼 */
.video-modal-content {
    width: 85%;
    max-width: 960px;
    aspect-ratio: 16 / 9; /* 強制保持 16:9 電影級黃金比例 */
    background: #000000;
    
    /* ==========================================================================
       【要求】加上精緻的純白邊框與發光特效
       ========================================================================== */
    border: 3px solid #ffffff; 
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
    
    /* 動態微調：淡入時影片有一點點由小變大的層次感 */
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

/* 讓 iframe 充滿整個 16:9 方框 */
#video-iframe-container,
#video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   【右側】特色方框樣式（維持不變）
   ========================================================================== */
.feature-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.feature-num {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    transition: color 0.25s ease;
}

.feature-detail {
    flex: 1;
}

/* 微調字卡內的標題，讓它跟下面維持舒服的間距 */
.feature-title {
    font-size: 16px;
    font-weight: bold;
    color: #dddddd;
    margin: 0 0 10px 0; /* 微調至 10px 間距 */
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.feature-desc {
    font-size: 13px;
    color: #777777;
    margin: 0;
    letter-spacing: 0.5px;
    
    /* ==========================================================================
       【核心修改】強迫文字方塊精準佔據「兩行」的高度，維持絕對對稱
       ========================================================================== */
    line-height: 1.7;
    min-height: 44px; /* (13px * 1.7) * 2 行 ≈ 44px，強迫撐開兩行空間 */
    
    /* 萬一以後加字太多，自動限制最多只顯示兩行，並優雅出現 ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.feature-card:hover .feature-num {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.feature-card:hover .feature-title {
    color: #ffffff;
}

@media (max-width: 900px) {
    .info-layout {
        flex-direction: column;
    }
    .video-preview-wrapper {
        width: 100%;
        min-height: 260px;
    }
}

/* ==========================================================================
   動態頁尾控制 (滾動後才跑出來)
   ========================================================================== */
.site-footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none; /* 隱藏時防止滑鼠點擊到裡面的連結 */
}

/* 當 JS 偵測到滾動，賦予這個 class 時，頁尾就會優雅浮現 */
.site-footer.reveal {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* 浮現後恢復點擊功能 */
}