        :root {
            --c-gold: #ffcf7d;
            --c-blue-bright: #88d1ff;
            --c-purple-glow: #9d85ff;
            --c-void: #03040a;
        }

        * {
            cursor: none !important;
        }

        body {
            background-color: var(--c-void);
            color: #fff;
            font-family: 'Inter', 'Noto Sans TC', sans-serif;
            overflow-x: hidden;
            overflow-x: hidden;
            /* 移除預設平滑滾動，改用 Lenis */
            /* scroll-behavior: smooth; */
        }

        html.lenis,
        html.lenis body {
            height: auto;
        }

        .lenis.lenis-smooth {
            scroll-behavior: auto !important;
        }

        .lenis.lenis-smooth [data-lenis-prevent] {
            overscroll-behavior: contain;
        }

        .lenis.lenis-stopped {
            overflow: hidden;
        }

        /* 預載入動畫 (Preloader) */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: #000;
            z-index: 99999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 1s ease-out, visibility 1s;
            overflow: hidden;
        }

        /* 背景特效層：放大、模糊的 Logo 氛圍圖 */
        .loader-bg {
            position: absolute;
            inset: -20px;
            background-image: url('./images/studio-logo.jpg');
            background-size: cover;
            background-position: center;
            filter: blur(25px) brightness(0.3);
            transform: scale(1.1);
            animation: bg-breathe 4s ease-in-out infinite alternate;
            z-index: 0;
        }

        @keyframes bg-breathe {
            from {
                transform: scale(1.1);
                filter: blur(25px) brightness(0.3);
            }

            to {
                transform: scale(1.2);
                filter: blur(20px) brightness(0.4);
            }
        }

        #loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-content {
            text-align: center;
            position: relative;
            z-index: 10;
        }

        /* 門扉光暈特效 */
        .loader-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(136, 209, 255, 0.4) 0%, rgba(157, 133, 255, 0.1) 50%, transparent 70%);
            filter: blur(30px);
            animation: pulse-glow-bg 3s infinite ease-in-out;
            z-index: -1;
        }

        .loader-logo {
            width: 180px;
            height: 180px;
            object-fit: cover;
            /* 改為 cover 確保填滿圓形 */
            border-radius: 50%;
            /* 變成圓形 */
            margin-bottom: 30px;
            animation: float 3s ease-in-out infinite;
            /* 增加圓形光邊，讓邊緣更柔和 */
            box-shadow: 0 0 30px rgba(136, 209, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .loader-text {
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.5rem;
            letter-spacing: 0.5em;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            animation: fade-in-up 1s ease-out forwards;
        }

        .loader-bar-bg {
            width: 200px;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            margin: 20px auto 0;
            border-radius: 2px;
            overflow: hidden;
        }

        .loader-bar-fill {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, var(--c-blue-bright), var(--c-gold));
            animation: loading-fill 2s ease-in-out forwards;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                filter: drop-shadow(0 0 20px rgba(136, 209, 255, 0.5));
                transform: scale(1);
            }

            50% {
                filter: drop-shadow(0 0 40px rgba(136, 209, 255, 0.8));
                transform: scale(1.05);
            }
        }

        @keyframes pulse-glow-bg {

            0%,
            100% {
                opacity: 0.5;
                transform: translate(-50%, -50%) scale(1);
            }

            50% {
                opacity: 0.8;
                transform: translate(-50%, -50%) scale(1.2);
            }
        }

        @keyframes loading-fill {
            0% {
                width: 0%;
            }

            100% {
                width: 100%;
            }
        }

        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 隱藏預設游標,但保留指針事件 - 強力覆蓋 */
        html,
        body,
        *,
        a,
        button,
        input,
        textarea,
        select,
        .cursor-pointer,
        ::selection {
            cursor: none !important;
        }

        /* 手機版恢復預設游標 */
        @media (max-width: 768px) {

            html,
            body,
            *,
            a,
            button,
            input,
            textarea,
            select,
            .cursor-pointer,
            ::selection {
                cursor: auto !important;
            }
        }

        /* 特別針對滑塊 Thumb 隱藏游標 */
        input[type=range]::-webkit-slider-thumb {
            cursor: none !important;
        }

        input[type=range]::-moz-range-thumb {
            cursor: none !important;
        }

        input[type=range]::-ms-thumb {
            cursor: none !important;
        }

        .serif {
            font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
            letter-spacing: 0.02em;
        }



        /* 魔法游標系統 */
        #magic-cursor {
            position: fixed;
            width: 32px;
            height: 32px;
            /* 逐夢幻境水晶游標 (SVG Vector) - 標準指標版 */
            /* 使用標準滑鼠游標形狀，確保使用者直覺點擊 */
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M1 1 L11 27 L15 17 L25 13 L1 1 Z' fill='url(%23crystal-grad)' stroke='%2388d1ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cdefs%3E%3ClinearGradient id='crystal-grad' x1='0' y1='0' x2='20' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='rgba(136, 209, 255, 0.3)'/%3E%3Cstop offset='1' stop-color='rgba(255, 207, 125, 0.9)'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat top left;
            background-size: contain;
            pointer-events: none;
            z-index: 10000;
            /* 絕對對齊左上角 */
            transform-origin: top left;
            filter: drop-shadow(0 0 10px rgba(136, 209, 255, 0.9));
        }

        /* 升級版：光暈跟隨者 */
        #magic-cursor-follower {
            position: fixed;
            width: 60px;
            height: 60px;
            /* 柔和光暈背景 */
            background: radial-gradient(circle, rgba(136, 209, 255, 0.15) 0%, rgba(136, 209, 255, 0) 70%);
            /* 移除虛線，改為極淡的實線邊框 */
            border: 1px solid rgba(136, 209, 255, 0.1);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            /* 增加 mix-blend-mode 讓光暈疊加更自然 */
            mix-blend-mode: screen;
            transition: width 0.3s, height 0.3s, background-color 0.3s;
            box-shadow: 0 0 20px rgba(136, 209, 255, 0.1);
        }

        /* 移除旋轉動畫，保持穩定 */
        /* #magic-cursor-follower::after 也不需要了 */

        /* 拖尾粒子 */
        .trail-particle {
            position: fixed;
            pointer-events: none;
            width: 4px;
            height: 4px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 8px #ffcf7d;
            z-index: 9998;
            /* 在 cursor 之下 */
            opacity: 0.8;
            animation: trail-fade 0.8s ease-out forwards;
        }

        @keyframes trail-fade {
            0% {
                opacity: 0.8;
                transform: scale(1);
            }

            100% {
                opacity: 0;
                transform: scale(0.2);
            }
        }

        /* 點擊特效粒子 */
        .click-particle {
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            animation: particle-burst 0.8s ease-out forwards;
            mix-blend-mode: screen;
            /* 確保黑色背景變透明，光效更亮 */
        }

        @keyframes particle-burst {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 1;
            }

            100% {
                transform: translate(var(--tx), var(--ty)) scale(0);
                opacity: 0;
            }
        }

        /* Hover 狀態強化 */
        body.hovering #magic-cursor {
            transform: translate(-50%, -50%) scale(1.5);
            filter: drop-shadow(0 0 10px var(--c-blue-bright));
        }

        body.hovering #magic-cursor-follower {
            width: 80px;
            height: 80px;
            border-color: var(--c-purple-glow);
            background-color: rgba(157, 133, 255, 0.05);
        }

        /* 手機版隱藏自定義游標 */
        @media (max-width: 768px) {

            #magic-cursor,
            #magic-cursor-follower {
                display: none !important;
            }

            body {
                cursor: auto !important;
            }
        }

        /* 夢幻背景 */
        .nebula {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background:
                radial-gradient(circle at 10% 20%, rgba(136, 209, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(157, 133, 255, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, #0a0c27 0%, var(--c-void) 100%);
        }

        /* --- 核心：3D 夢幻之門 --- */
        .door-perspective-wrapper {
            perspective: 1500px;
            position: relative;
            z-index: 10;
        }

        .dream-gate {
            position: relative;
            width: 320px;
            height: 480px;
            transform-style: preserve-3d;
            transition: transform 0.1s ease-out;
        }

        /* 門框結構 */
        .gate-frame {
            position: absolute;
            inset: -8px;
            border: 12px solid #2a2b3d;
            border-top: 12px solid #4a4b5d;
            border-radius: 160px 160px 0 0;
            box-shadow:
                0 0 0 2px var(--c-gold),
                inset 0 0 20px rgba(0, 0, 0, 0.8),
                0 30px 60px rgba(0, 0, 0, 0.6);
            z-index: 5;
        }

        /* 門內世界 */
        .gate-content {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, #0a1128 0%, #1a2456 50%, #2a4a7c 100%);
            border-radius: 150px 150px 0 0;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            box-shadow:
                inset 0 0 80px rgba(136, 209, 255, 0.2),
                0 0 80px rgba(255, 239, 173, 0.4);
        }

        .gate-world-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(1.3) contrast(1.2) saturate(1.3);
            transform: scale(1.1);
            mix-blend-mode: screen;
            opacity: 0.9;
            /* 預留位移空間 */
            transition: transform 0.2s ease-out;
        }

        .human-silhouette {
            width: 38px;
            height: 110px;
            background: #000;
            border-radius: 20px 20px 0 0;
            margin-bottom: 30px;
            z-index: 6;
            filter: blur(0.8px);
            opacity: 0.95;
            transform: translateZ(20px);
        }



        /* 動態雲霧粒 */
        .cloud-particle {
            position: absolute;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
            border-radius: 50%;
            filter: blur(30px);
            pointer-events: none;
            z-index: 4;
        }

        /* --- 專案卡片排版修正 --- */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            width: 100%;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 2.5rem;
            padding: 2rem;
            transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .glass-card:hover {
            background: rgba(255, 255, 255, 0.07);
            border-color: var(--c-gold);
            transform: translateY(-10px);
        }

        .text-glow {
            text-shadow: 0 0 15px rgba(255, 207, 125, 0.3);
        }

        .scroll-reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 1s ease-out;
        }

        .scroll-reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .status-badge {
            font-size: 10px;
            padding: 2px 10px;
            border-radius: 99px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }

        /* 夢幻效果 */
        @keyframes float {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        @keyframes glow-pulse {

            0%,
            100% {
                box-shadow: 0 0 30px rgba(255, 207, 125, 0.3),
                    0 0 60px rgba(255, 207, 125, 0.2),
                    inset 0 0 20px rgba(255, 207, 125, 0.1);
            }

            50% {
                box-shadow: 0 0 50px rgba(255, 207, 125, 0.5),
                    0 0 100px rgba(255, 207, 125, 0.3),
                    inset 0 0 30px rgba(255, 207, 125, 0.2);
            }
        }

        @keyframes sparkle {

            0%,
            100% {
                opacity: 0;
                transform: scale(0) rotate(0deg);
            }

            50% {
                opacity: 1;
                transform: scale(1) rotate(180deg);
            }
        }

        .nexus-card {
            animation: glow-pulse 3s ease-in-out infinite;
        }

        .nexus-logo {
            animation: float 4s ease-in-out infinite;
            filter: drop-shadow(0 0 30px rgba(255, 207, 125, 0.6)) drop-shadow(0 0 60px rgba(136, 209, 255, 0.4));
        }

        .magic-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--c-gold);
            border-radius: 50%;
            pointer-events: none;
            animation: sparkle 2s ease-in-out infinite;
        }

        .nexus-title {
            color: #ffffff;
            font-weight: 900;
            letter-spacing: 0.05em;
        }

        .nexus-subtitle {
            background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            font-weight: 700;
            letter-spacing: 0.2em;
        }

        .header-logo {
            background: linear-gradient(135deg, #88d1ff 0%, #ffffff 30%, #ffcf7d 70%, #9d85ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% 200%;
            animation: gradient-shift 8s ease infinite;
            text-shadow: 0 0 30px rgba(136, 209, 255, 0.5);
            position: relative;
            display: inline-block;
        }

        @keyframes gradient-shift {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        .header-logo:hover {
            animation: gradient-shift 2s ease infinite;
            transform: scale(1.05);
            transition: transform 0.3s ease;
        }

        /* 音樂播放器 */
        .music-player {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .music-toggle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(136, 209, 255, 0.2), rgba(157, 133, 255, 0.2));
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .music-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 0 30px rgba(136, 209, 255, 0.5);
        }

        .music-panel {
            position: absolute;
            bottom: 75px;
            right: 0;
            width: 280px;
            background: rgba(10, 12, 39, 0.95);
            backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.4s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .music-panel.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .music-info {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .music-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 15px;
        }

        .control-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 207, 125, 0.2);
            border: 1px solid rgba(255, 207, 125, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .control-btn:hover {
            background: rgba(255, 207, 125, 0.4);
            transform: scale(1.1);
        }

        .volume-control {
            flex: 1;
        }

        .volume-slider {
            width: 100%;
            height: 4px;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.1);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--c-gold);
            cursor: pointer;
        }

        /* Hero 標題特效 */
        .hero-title {
            background: linear-gradient(135deg,
                    #88d1ff 0%,
                    #ffffff 20%,
                    #ffcf7d 40%,
                    #ffffff 60%,
                    #9d85ff 80%,
                    #88d1ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 300% 300%;
            animation: hero-gradient 8s ease infinite, hero-float 6s ease-in-out infinite;
            text-shadow: 0 0 80px rgba(136, 209, 255, 0.8),
                0 0 120px rgba(255, 207, 125, 0.6),
                0 10px 40px rgba(0, 0, 0, 0.5);
            filter: drop-shadow(0 0 30px rgba(136, 209, 255, 0.5));
            position: relative;
        }

        @keyframes hero-gradient {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        @keyframes hero-float {

            0%,
            100% {
                transform: translateY(0px) scale(1);
            }

            50% {
                transform: translateY(-10px) scale(1.02);
            }
        }

        .hero-subtitle {
            animation: fade-pulse 4s ease-in-out infinite;
        }

        @keyframes fade-pulse {

            0%,
            100% {
                opacity: 0.4;
            }

            50% {
                opacity: 0.7;
            }
        }

        /* === 築夢師滑動卡片樣式 === */
        .founder-slider-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 20px 0;
        }

        .founder-slider {
            display: flex;
            gap: 2rem;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            /* Firefox */
            padding: 20px 10px;
            cursor: grab;
        }

        .founder-slider::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari */
        }

        .founder-card {
            flex: 0 0 min(800px, 90vw);
            scroll-snap-align: center;
            transition: transform 0.3s ease;
        }

        .founder-card:hover {
            transform: translateY(-10px);
        }

        .founder-card-inner {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 2rem;
            padding: 3rem 2.5rem;
            height: 450px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .founder-card:hover .founder-card-inner {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 207, 125, 0.3);
            box-shadow: 0 20px 80px rgba(255, 207, 125, 0.1);
        }

        .founder-avatar-section {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        /* 技能卡片樣式 */
        .skill-item {
            text-align: center;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 1rem;
            transition: all 0.3s ease;
        }

        .skill-item:hover {
            background: rgba(255, 207, 125, 0.05);
            border-color: rgba(255, 207, 125, 0.2);
            transform: translateY(-5px);
        }

        .skill-icon {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }

        .skill-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .skill-desc {
            font-size: 0.85rem;
            color: #9ca3af;
            line-height: 1.6;
        }

        /* 聯絡卡片樣式 */
        .contact-item {
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 1rem;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: rgba(136, 209, 255, 0.05);
            border-color: rgba(136, 209, 255, 0.2);
        }

        /* 導航點樣式 */
        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }

        .dot:hover {
            background: rgba(255, 207, 125, 0.5);
            transform: scale(1.2);
        }

        .dot.active {
            background: rgba(255, 207, 125, 1);
            width: 30px;
            border-radius: 5px;
        }

        /* 響應式設計 */
        @media (max-width: 768px) {
            .founder-card {
                flex: 0 0 90vw;
            }

            .founder-card-inner {
                padding: 2rem 1.5rem;
                height: auto;
                min-height: 400px;
            }

            .founder-card-inner .flex {
                flex-direction: column;
                text-align: center;
            }

            .founder-card-inner .relative {
                width: 120px;
                height: 120px;
            }

            .skill-item {
                padding: 1rem;
            }

            .skill-icon {
                font-size: 2rem;
            }
        }
