
@media (max-width: 768px) {

    /* --- 導航 --- */
    .nav-links {
        display: none;
    }

    .mobile-break {
        display: block;
    }

    /* --- Hero 標題 --- */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* --- YouTube 標題 --- */
    .yt-section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    /* --- About 區域 --- */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    /* --- Gallery Section 強制置中 --- */
    .gallery-section {
        padding: 50px 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gallery-section h2 {
        width: 100%;
        text-align: center;
        padding-left: 0;
        border-left: none;
    }

    .gallery-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 30px !important;
    }

    .project-card {
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* --- 回到頂部按鈕 --- */
    .back-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }
}


/* ==========================================
   斷點：max-width 600px (小螢幕手機)
   ========================================== */
@media (max-width: 600px) {

    /* --- Photo Gallery --- */
    .photo-row-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .container-80 {
        width: 90%;
    }

    /* --- Footer --- */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


/* ==========================================
   斷點：max-width 500px (超小螢幕)
   ========================================== */
@media (max-width: 500px) {

    /* --- 聯絡圖示 --- */
    .contact-info {
        flex-direction: row;
        gap: 15px;
    }

    .contact-info a {
        display: flex;
        width: 50px;
        height: 50px;
    }
}
/* ============================================
   RWD 手機版適配樣式 (Mobile Responsive)
   ============================================ */
@media screen and (max-width: 768px) {

    /* === Hero 區域調整 === */
    .hero-fullbleed {
        /* 使用 dvh 可以解決手機瀏覽器網址列伸縮的問題 */
        height: 100vh;
        height: 100dvh; 
    }

    .hero-content {
        max-width: 100%;
        padding: 0 25px; /* 增加左右留白，避免貼邊 */
        margin-top: -20px; /* 稍微往上移，因為手機版下方常有瀏覽器按鈕 */
    }

    /* 縮小標題字體 */
    .hero-title {
        font-size: 2.8rem; /* 從 5rem 縮小到 2.8rem */
        line-height: 1.15;
        margin-bottom: 20px;
        letter-spacing: 0px;
    }

    /* 調整副標題 */
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
        gap: 10px;
        margin-bottom: 15px;
    }

    /* 縮短裝飾線 */
    .subtitle-line {
        width: 25px;
    }

    /* 調整描述文字 */
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
        width: 100%;
        color: rgba(255, 255, 255, 0.85); /* 手機版背景較亮時，增加文字亮度 */
    }

    /* 按鈕區域 */
    .hero-cta {
        width: 100%;
        flex-direction: column; /* 改為垂直排列 */
        gap: 15px;
        margin-bottom: 25px;
    }

    /* 按鈕改為全寬，方便手指點擊 */
    .btn-primary {
        width: 60%;
        text-align: center;
        padding: 12px 0;
        box-sizing: border-box; /* 確保 padding 不會撐開寬度 */
    }

    .btn-play {
        width: 100%;
        justify-content: center;
        margin-top: 2px;
    }

    /* 隱藏右側的滾動提示 (手機版空間不夠) */
    .scroll-hint {
        display: none;
    }

    /* 調整底部輪播點的位置 */
    .slide-indicators {
        bottom: 25px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p{
        font-size: 0.9rem;
    }

    /* === 其他區塊的手機版修正 (避免 Hero 正常但下面壞掉) === */
    
    /* 導航欄調整 */
    nav {
        padding: 15px 5%;
        background: rgba(18, 18, 18, 0.9); /* 手機版導航欄直接加深背景 */
    }

    /* Footer 調整 */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
