/* =========================================
   1. 主要內容容器 (Secret 區塊)
   ========================================= */
.secret-flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 95%;
    max-width: 1600px;
    margin: 60px auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 3%;
    gap: 60px;
}

/* 左側圖片框架 */
.img-frame {
    flex: 1 1 50%;
    width: 50%;
    box-sizing: border-box;

    /* background: #fdfaf5; */
    /* padding: 15px; */
    /* transform: rotate(-1.5deg); */

    border: 1px solid #D2C1A5;
    box-shadow: 8px 8px 0px #D2C1A5, 15px 15px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.img-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 12px 12px 0px #D2C1A5, 20px 20px 35px rgba(0, 0, 0, 0.2);
}

.img-wrapper {
    position: relative;
    line-height: 0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid #eee;
}

/* 右側文字框架 */
.secret-text-frame {
    flex: 1 1 50%;
    width: 50%;
    box-sizing: border-box;

    background: radial-gradient(circle, #F5F1E6 0%, #f4eee1 100%);
    padding: 20px 40px 30px 40px;
    border: 1px solid #D2C1A5;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;

    min-height: 350px;
    display: flex;
    flex-direction: column;
}

/* --- 文字排版與基準大小 (Base Typography) --- */
.secret-text-frame .content h2 {
    color: #5C4033;
    font-size: 1.8rem;
    margin: 0 0 20px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid #D2C1A5;
    text-align: left;
    letter-spacing: 2px;
}

.secret-text-frame .content h3 {
    color: #5C4033;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    padding-bottom: 0px;
    text-align: left;
}

.secret-text-frame .content p {
    color: #6B4F31;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

/* 隱藏提示文字的特效 */
.whisper-text {
    margin-top: 40px;
    opacity: 0.25; /* 平常是非常淡的半透明，看起來像隱形的 */
    transition: opacity 0.8s ease; /* 緩慢浮現的動畫 */
}

/* 滑鼠移過去（或手機點擊）時，文字會慢慢浮現 */
.whisper-text:hover {
    opacity: 0.85; 
}

/* 微小的英文暗示，讓字體比正常還小，降低突兀感 */
.hint-en {
    font-size: 0.75em;
    font-family: 'Times New Roman', serif;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* 閃爍的輸入游標，完美致敬解謎遊戲 */
.blinking-cursor {
    font-weight: bold;
    color: #8c7355;
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   過渡斷點 - 平板與分割視窗 (Tablet & Split-Screen)
   當視窗小於 1200px 時，提早將左右排列改為上下疊加，避免文字擠壓
   ========================================= */
@media (max-width: 1200px) {

    .about-flex-container,
    .secret-flex-container {
        flex-direction: column;
        /* 提早變成上下排列 */
        align-items: center;
        gap: 40px;
    }

    .img-frame,
    .about-text-frame,
    .secret-text-frame {
        width: 90%;
        /* 寬度放寬，讓內容有足夠空間 */
        flex: none;
    }

    .img-frame {
        transform: rotate(0deg);
        /* 螢幕變窄時取消旋轉，避免干擾排版 */
    }
}

/* =========================================
   2. 響應式設計 - 手機板 (Mobile)
   ========================================= */
@media (max-width: 768px) {
    header {
        min-height: 15vh !important;
        padding-bottom: 15px !important;
        line-height: 0.8 !important;
    }

    header h1 {
        font-size: 1.2rem !important;
    }

    header p {
        font-size: 0.8rem !important;
    }

    .secret-flex-container {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 30px;
        margin: 20px auto;
    }

    .img-frame {
        width: 95%;
        transform: rotate(0deg);
        flex: none;
    }

    .secret-text-frame {
        width: 95%;
        padding: 25px;
        flex: none;
        box-sizing: border-box;
    }

    /* 同步手機版文字縮放 */
    .secret-text-frame .content h2 {
        font-size: 1.4rem !important;
        text-align: center;
        letter-spacing: 1px;
    }

    .secret-text-frame .content h3 {
        font-size: 0.9rem !important;
        text-align: center;
    }

    .secret-text-frame .content p {
        font-size: 0.95rem !important;
    }
}

/* =========================================
   3. 響應式設計 - 超寬螢幕 (Ultra-Wide / 2K+)
   ========================================= */
@media (min-width: 1921px) {
    .secret-flex-container {
        max-width: 1800px;
        gap: 80px;
        margin: 80px auto;
    }

    .secret-text-frame {
        padding: 40px 60px;
    }

    .secret-text-frame .content h2 {
        font-size: 2.2rem;
        margin-bottom: 30px !important;
    }

    .secret-text-frame .content h3 {
        font-size: 1.25rem;
    }

    .secret-text-frame .content p {
        font-size: 1.35rem;
        line-height: 1.9;
    }
}

/* =========================================
   4. 響應式設計 - 4K 超高解析度 (2561px+)
   ========================================= */
@media (min-width: 2561px) {
    .secret-flex-container {
        max-width: 2400px;
        gap: 120px;
        margin: 120px auto;
    }

    .secret-text-frame {
        padding: 60px 90px;
    }

    .secret-text-frame .content h2 {
        font-size: 2.8rem;
        margin-bottom: 40px !important;
    }

    .secret-text-frame .content h3 {
        font-size: 1.55rem;
    }

    .secret-text-frame .content p {
        font-size: 1.7rem;
        line-height: 2.1;
    }
}