/* 頁面專屬樣式（基礎變數與 reset 在 base.css） */

        #tutorial {
            background-color: #FFF7E6; /* 溫暖的淺黃色背景 */
            color: #333;
            padding-bottom: 100px; /* 為了不被底部固定按鈕遡擋內容 */
        }
        
        #tutorial .tutorial-wrapper {
            display: flex;
            justify-content: center;
        }

        /* --- 響應式容器 --- */
        #tutorial .container {
            width: 100%;
            max-width: 600px; /* PC端限制最大寬度，保持類似移動端的精緻排版 */
            background-color: #FFF7E6;
            min-height: 100vh;
            box-shadow: 0 0 20px rgba(0,0,0,0.05);
        }

        /* --- 主標題 --- */
        #tutorial .section-title {
            font-size: 1.86rem; /* 26px → rem */
            font-weight: bold;
            text-align: center;
            padding: 20px 0 10px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        /* --- 視頻封面通用樣式 --- */
        #tutorial .video-card {
            position: relative;
            width: 90%;
            margin: 0 auto 20px auto;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
            cursor: pointer;
            aspect-ratio: 16 / 9;
            animation: sectionReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
            clip-path: inset(0 0 100% 0);
        }

        #tutorial .container > .video-card { animation-delay: 0.1s; }
        #tutorial .video-grid .video-card:nth-child(1) { animation-delay: 0.7s; }
        #tutorial .video-grid .video-card:nth-child(2) { animation-delay: 0.85s; }
        #tutorial .video-grid .video-card:nth-child(3) { animation-delay: 1.0s; }

        @keyframes sectionReveal {
            to {
                clip-path: inset(0 0 0 0);
            }
        }
        #tutorial .video-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* 黑色透明蒙版 */
        #tutorial .video-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.35);
            z-index: 1;
            transition: background 0.3s ease;
        }

        @media (min-width: 768px) {
            #tutorial .video-card:hover::after {
                background: rgba(0, 0, 0, 0.2);
            }
        }

        /* --- SVG 播放按鈕與點擊動效 --- */
        #tutorial .play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1);
            width: 50px;
            height: 50px;
            transition: transform 0.2s ease, opacity 0.2s ease;
            filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.3));
            z-index: 2;
        }
        /* 點擊時的縮放反饋動效 */
        #tutorial .video-card:active .play-btn {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0.8;
        }
        @media (min-width: 768px) {
            #tutorial .video-card:hover .play-btn {
                transform: translate(-50%, -50%) scale(1.1);
            }
        }

        /* --- 歡迎加入區域 --- */
        #tutorial .welcome-box {
            width: 90%;
            background-color: #fff;
            margin: 20px auto;
            border-radius: 16px;
            padding: 25px 20px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            animation: sectionReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
            clip-path: inset(0 0 100% 0);
        }
        #tutorial .welcome-box h2 {
            font-size: 2rem; /* 28px → rem */
            margin-bottom: 15px;
            color: #000;
        }
        #tutorial .welcome-box p {
            font-size: 1.43rem; /* 20px → rem */
            margin-bottom: 10px;
            color: #333;
            font-weight: 500;
        }
        #tutorial .welcome-box p .highlight-orange {
            color: var(--primary-orange);
            font-weight: bold;
        }

        /* --- 分割線 --- */
        #tutorial .divider {
            background-color: #fecc83;
            color: #000;
            font-size: 1.57rem; /* 22px → rem */
            font-weight: bold;
            text-align: center;
            padding: 12px 0;
            margin: 25px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            animation: sectionReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
            clip-path: inset(0 0 100% 0);
        }

        /* --- 下方網格視頻區域 --- */
        #tutorial .video-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            width: 90%;
            margin: 0 auto;
        }
        #tutorial .video-grid .video-card {
            width: 100%;
            margin: 0;
            border-radius: 12px;
        }
        #tutorial .video-grid .play-btn {
            width: 36px;
            height: 36px;
        }

        /* --- 底部固定下載按鈕 + 閃光動效 --- */
        #tutorial .footer-btn-container {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 600px;
            background: linear-gradient(to top, rgba(255,247,230,1) 70%, rgba(255,247,230,0) 0%);
            padding: 15px 20px;
            box-sizing: border-box;
            z-index: 999;
        }
        
        #tutorial .download-btn {
            display: block;
            width: 100%;
            background-color: var(--primary-orange);
            color: #fff;
            text-align: center;
            padding: 8px 0;
            font-size: 1.5rem; 
            font-weight: bold;
            text-decoration: none;
            border-radius: 50px;
            box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
            position: relative;
            overflow: hidden; 
            border: 2px solid #fff;
        }

        /* 從左到右的流光/閃光動畫 */
        #tutorial .download-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -150%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.4) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: skewX(-30deg);
            animation: flashLight 3s infinite ease-in-out;
        }

        @keyframes flashLight {
            0% { left: -150%; }
            50% { left: 150%; }
            100% { left: 150%; }
        }

        /* --- 彈窗播放器 (Modal) 樣式 --- */
        #tutorial .modal {
            display: none; /* 默認隱藏 */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }
        #tutorial .modal-content {
            width: 90%;
            max-width: 800px;
            position: relative;
            aspect-ratio: 16 / 9;
        }
        #tutorial .modal-content video {
            width: 100%;
            height: 100%;
            border-radius: 8px;
            background-color: #000;
        }
        #tutorial .close-modal {
            position: absolute;
            top: -45px;
            right: 0;
            color: #fff;
            font-size: 2.5rem; /* 35px → rem */
            cursor: pointer;
            font-weight: bold;
        }

/* ==========================================================================
   PC 桌面端響應式佈局 (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    #tutorial { background-color: #fff; padding-bottom: 0; }

    #tutorial .container {
        max-width: 1200px;
        box-shadow: none;
        margin-top: 0;
        background-color: transparent;
    }

    #tutorial .section-title {
        font-size: 3.8rem;
        padding: 80px 0 24px;
    }

    #tutorial .video-card {
        width: 80%;
        border-radius: 20px;
    }

    #tutorial .container > .video-card {
        width: 80%;
    }

    #tutorial .play-btn {
        width: 72px;
        height: 72px;
    }

    #tutorial .welcome-box {
        width: 80%;
        padding: 36px 32px;
        border-radius: 20px;
    }

    #tutorial .welcome-box h2 {
        font-size: 2.4rem;
    }

    #tutorial .welcome-box p {
        font-size: 1.6rem;
    }

    #tutorial .divider {
        font-size: 1.8rem;
        padding: 16px 0;
    }

    #tutorial .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 90%;
    }

    #tutorial .video-grid .video-card {
        border-radius: 16px;
    }

    #tutorial .video-grid .play-btn {
        width: 48px;
        height: 48px;
    }

    #tutorial .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }

    #tutorial .footer-btn-container {
        max-width: 960px;
        margin: 0 auto;
        position: relative;
        left: auto;
        transform: none;
        background: transparent;
        padding: 24px 2rem 16px;
        display: flex;
        justify-content: center;
    }

    #tutorial .download-btn {
        max-width: 480px;
        margin: 0 auto;
        font-size: 1.6rem;
        padding: 14px 0;
    }

    #tutorial .download-btn:hover {
        background-color: #E05B00;
    }

    #tutorial .modal-content {
        max-width: 1000px;
    }

    #tutorial .site-footer { margin-top: 0; }
}