
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { 
            font-family: 'Microsoft JhengHei', 'Arial', sans-serif; 
            color: #fff; 
            overflow-x: hidden; 
            min-height: 100vh; 
            position: relative;
            background: #000;
        }

        /* 增強背景效果 */
        .stars-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, #000428 0%, #004e92 50%, #1a0b3d 100%);
            z-index: -1;
            overflow: hidden;
        }
        
        /* 新增粒子背景層 */
        .particles-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.3;
        }

        .stars {
            position: absolute;
            width: 2px;
            height: 2px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 3px rgba(255,255,255,.8);
            animation: flowStars 20s linear infinite;
        }
        
        @keyframes flowStars {
            0% { transform: translateX(0) translateY(0); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateX(-100vw) translateY(50vh); opacity: 0; }
        }
        
        .star-large {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,.5);
            animation: twinkleLarge 4s ease-in-out infinite;
        }
        
        @keyframes twinkleLarge {
            0%, 100% { opacity: .3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.5); }
        }
        
        .satellite {
            position: absolute;
            width: 60px;
            height: 60px;
            animation: orbitSatellite 30s linear infinite;
            filter: drop-shadow(0 0 10px rgba(102,126,234,.6));
        }
        
        .satellite-body {
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 3px;
            box-shadow: 0 0 15px rgba(102,126,234,.8);
        }
        
        .satellite-panel {
            width: 25px;
            height: 8px;
            background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
            position: absolute;
            top: 50%;
            border-radius: 1px;
        }
        
        .satellite-panel.left { right: 100%; transform: translateY(-50%); }
        .satellite-panel.right { left: 100%; transform: translateY(-50%); }
        .satellite-antenna {
            width: 2px;
            height: 15px;
            background: #ccc;
            position: absolute;
            left: 50%;
            bottom: 100%;
            transform: translateX(-50%);
        }
        
        @keyframes orbitSatellite {
            0% { transform: translateX(0) translateY(0) rotate(0); }
            100% { transform: translateX(-150vw) translateY(80vh) rotate(360deg); }
        }
        
        .planet {
            position: absolute;
            border-radius: 50%;
            animation: floatPlanet 40s ease-in-out infinite;
        }
        
        .planet-1 {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle at 30% 30%, #ff6b6b, #8b2635);
            box-shadow: 0 0 30px rgba(255,107,107,.5), inset -10px -10px 30px rgba(0,0,0,.3);
            top: 10%;
            right: 15%;
        }
        
        .planet-2 {
            width: 60px;
            height: 60px;
            background: radial-gradient(circle at 30% 30%, #4ecdc4, #1a535c);
            box-shadow: 0 0 25px rgba(78,205,196,.5), inset -8px -8px 25px rgba(0,0,0,.3);
            bottom: 15%;
            left: 10%;
            animation-delay: 2s;
        }
        
        @keyframes floatPlanet {
            0%, 100% { transform: translateY(0) rotate(0); }
            50% { transform: translateY(-30px) rotate(5deg); }
        }
        
        .comet {
            position: absolute;
            width: 3px;
            height: 3px;
            background: #fff;
            border-radius: 50%;
            animation: shootComet 8s linear infinite;
            box-shadow: 0 0 10px #fff;
        }
        
        .comet::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 2px;
            background: linear-gradient(90deg, rgba(255,255,255,.8), transparent);
            top: 50%;
            right: 100%;
            transform: translateY(-50%);
        }
        
        @keyframes shootComet {
            0% { transform: translateX(120vw) translateY(-100px); opacity: 1; }
            100% { transform: translateX(-100px) translateY(120vh); opacity: 0; }
        }

        /* 增強星雲效果 */
        .nebula {
            position: absolute;
            pointer-events: none;
            filter: blur(40px);
            opacity: .3;
            border-radius: 50%;
            animation: nebulaFloat 20s ease-in-out infinite;
        }
        
        @keyframes nebulaFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(20px, -20px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }
        
        .nebula-1 {
            width: 320px;
            height: 320px;
            top: 20%;
            left: 8%;
            background: radial-gradient(circle at 30% 30%, rgba(138,43,226,.55), rgba(0,0,0,0));
        }
        
        .nebula-2 {
            width: 260px;
            height: 260px;
            bottom: 10%;
            right: 8%;
            background: radial-gradient(circle at 60% 40%, rgba(102,126,234,.5), rgba(0,0,0,0));
            animation-delay: -10s;
        }

        /* 改進導覽列 - 玻璃態效果 */
        .nav-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 60;
            background: rgba(20, 20, 40, 0.6);
            backdrop-filter: blur(20px);
            padding: 8px 16px;
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .nav-container:hover {
            background: rgba(20, 20, 40, 0.8);
            box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
        }
        
        .nav-tabs {
            display: flex;
            gap: 8px;
        }
        
        .nav-tab {
            padding: 10px 18px;
            color: #e8e8ff;
            font-size: 0.95em;
            font-weight: 600;
            opacity: .8;
            position: relative;
            text-decoration: none;
            border-radius: 25px;
            transition: all 0.3s ease;
        }
        
        .nav-tab:hover {
            opacity: 1;
            background: rgba(138, 43, 226, 0.2);
            transform: translateY(-2px);
        }
        
        .nav-tab.active {
            opacity: 1;
            background: linear-gradient(135deg, rgba(138,43,226,.4), rgba(138,43,226,.2));
            box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
        }

        /* 跳到主內容 */
        .skip-link {
            position: absolute;
            left: -9999px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }
        
        .skip-link:focus {
            left: 12px;
            top: 12px;
            width: auto;
            height: auto;
            padding: 12px 20px;
            background: rgba(138, 43, 226, 0.95);
            color: #fff;
            border-radius: 8px;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5);
        }

        /* 改進標題卡片 */
        .header-card {
            max-width: 1100px;
            margin: 60px auto 50px;
            background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.08) 100%);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            padding: 60px 50px;
            border: 1px solid rgba(255,255,255,.25);
            box-shadow: 0 20px 60px rgba(0,0,0,.5),
                        inset 0 1px 0 rgba(255,255,255,.2);
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
        }
        
        .header-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(138,43,226,.1) 0%, transparent 70%);
            animation: rotateGradient 15s linear infinite;
        }
        
        @keyframes rotateGradient {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .header-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 70px rgba(138,43,226,.6),
                        inset 0 1px 0 rgba(255,255,255,.3);
            border-color: rgba(138,43,226,.7);
        }
        
        .header-card h1 {
            text-align: center;
            font-size: 2.5em;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #667eea 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.5;
            animation: shimmer 3s linear infinite;
            position: relative;
            z-index: 1;
        }
        
        @keyframes shimmer {
            0% { background-position: 0% center; }
            100% { background-position: 200% center; }
        }
        
        .subtitle {
            text-align: center;
            font-size: 1.5em;
            color: #b8b8ff;
            margin-bottom: 40px;
            font-weight: 500;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 10px rgba(138,43,226,.3);
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-top: 30px;
            position: relative;
            z-index: 1;
        }
        
        .info-item {
            background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
            padding: 25px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,.2);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        
        .info-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(138,43,226,.3), transparent);
            transition: left 0.6s;
        }
        
        .info-item:hover::before {
            left: 100%;
        }
        
        .info-item:hover {
            background: linear-gradient(135deg, rgba(138,43,226,.3) 0%, rgba(138,43,226,.15) 100%);
            border-color: rgba(138,43,226,.7);
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 40px rgba(138,43,226,.5);
        }
        
        .info-label {
            font-size: 0.95em;
            color: #b8b8ff;
            margin-bottom: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .info-value {
            font-size: 1.2em;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,.2);
        }

        /* 改進內容容器 */
        .content-container {
            max-width: 1100px;
            margin: 50px auto;
            padding: 0 20px 100px;
        }
        
        .content-box {
            background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.07) 100%);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 1px solid rgba(255,255,255,.25);
            transition: all 0.5s ease;
            box-shadow: 0 15px 50px rgba(0,0,0,.4),
                        inset 0 1px 0 rgba(255,255,255,.15);
            position: relative;
            overflow: hidden;
        }
        
        .content-box::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(138,43,226,.15) 0%, transparent 70%);
            pointer-events: none;
            transition: all 0.5s ease;
        }
        
        .content-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 70px rgba(138,43,226,.6),
                        inset 0 1px 0 rgba(255,255,255,.25);
            background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.1) 100%);
            border-color: rgba(138,43,226,.7);
        }
        
        .content-box:hover::after {
            width: 300px;
            height: 300px;
            opacity: 0.8;
        }
        
        .content-box h2 {
            font-size: 2.2em;
            margin-bottom: 35px;
            color: #e8e8ff;
            border-bottom: 3px solid rgba(138,43,226,.6);
            padding-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            text-shadow: 0 2px 10px rgba(138,43,226,.3);
        }
        
        .content-box h2::before {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.5s ease;
        }
        
        .content-box:hover h2::before {
            width: 200px;
        }
        
        .content-box h3 {
            font-size: 1.6em;
            margin: 35px 0 20px;
            color: #d8d8ff;
            padding-left: 20px;
            border-left: 5px solid rgba(138,43,226,.8);
            text-shadow: 0 2px 5px rgba(138,43,226,.2);
            transition: all 0.3s ease;
        }
        
        .content-box h3:hover {
            padding-left: 30px;
            border-color: rgba(138,43,226,1);
        }
        
        .section {
            scroll-margin-top: 100px;
        }

        /* 改進摺疊面板 */
        .collapsible {
            background: rgba(255,255,255,.1);
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 18px;
            margin-bottom: 25px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,.2);
        }
        
        .collapsible:hover {
            border-color: rgba(138,43,226,.6);
            box-shadow: 0 8px 30px rgba(138,43,226,.4);
            transform: translateX(5px);
        }
        
        .collapsible-header {
            padding: 25px 30px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.25em;
            font-weight: bold;
            color: #e8e8ff;
            user-select: none;
            background: linear-gradient(90deg, transparent, rgba(138,43,226,.05), transparent);
            transition: all 0.3s ease;
        }
        
        .collapsible-header:hover {
            background: linear-gradient(90deg, rgba(138,43,226,.1), rgba(138,43,226,.25), rgba(138,43,226,.1));
            padding-left: 35px;
        }
        
        .collapsible-header::after {
            content: '▼';
            font-size: 0.8em;
            transition: transform 0.4s ease;
            color: #b8b8ff;
            background: rgba(138,43,226,.3);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .collapsible.active .collapsible-header::after {
            transform: rotate(-180deg);
            background: rgba(138,43,226,.5);
        }
        
        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.5s ease;
            padding: 0 30px;
        }
        
        .collapsible.active .collapsible-content {
            max-height: 2000px;
            padding: 25px 30px 30px;
        }

        .content-box p {
            line-height: 2;
            font-size: 1.1em;
            color: #e8e8ff;
            margin-bottom: 20px;
            text-shadow: 0 1px 2px rgba(0,0,0,.1);
        }
        
        .content-box ul {
            padding-left: 30px;
            list-style: none;
            margin-top: 20px;
        }
        
        .content-box ul li {
            position: relative;
            margin-bottom: 18px;
            line-height: 2;
            font-size: 1.08em;
            color: #e8e8ff;
            padding-left: 10px;
            transition: all 0.3s ease;
        }
        
        .content-box ul li:hover {
            padding-left: 20px;
            color: #fff;
        }
        
        .content-box ul li:before {
            content: "▸";
            color: #b8b8ff;
            font-weight: bold;
            position: absolute;
            left: -20px;
            transition: all 0.3s ease;
        }
        
        .content-box ul li:hover:before {
            color: #764ba2;
            transform: translateX(5px);
        }


        /* 改進學習卡片 */
        .learning-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 35px;
        }
        
        .learning-card {
            background: linear-gradient(135deg, rgba(138,43,226,.2) 0%, rgba(138,43,226,.08) 100%);
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 22px;
            padding: 35px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        
        .learning-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(138,43,226,.2) 0%, transparent 60%);
            transition: all 0.6s ease;
            opacity: 0;
        }
        
        .learning-card:hover::before {
            opacity: 1;
            top: -30%;
            right: -30%;
        }
        
        .learning-card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 20px 50px rgba(138,43,226,.6);
            border-color: rgba(138,43,226,.8);
            background: linear-gradient(135deg, rgba(138,43,226,.3) 0%, rgba(138,43,226,.12) 100%);
        }
        
        .learning-card-icon {
            font-size: 3.5em;
            margin-bottom: 25px;
            filter: drop-shadow(0 4px 10px rgba(138,43,226,.4));
            transition: all 0.4s ease;
        }
        
        .learning-card:hover .learning-card-icon {
            transform: scale(1.15) rotateY(360deg);
        }
        
        .learning-card h4 {
            font-size: 1.5em;
            color: #e8e8ff;
            margin-bottom: 18px;
            text-shadow: 0 2px 5px rgba(138,43,226,.3);
        }
        
        .learning-card p {
            font-size: 1.08em;
            line-height: 1.9;
            color: #d8d8ff;
        }

        /* 改進回到頂部按鈕 */
        .back-to-top {
            position: fixed;
            right: 30px;
            bottom: 30px;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(138,43,226,.9), rgba(138,43,226,.7));
            color: #fff;
            border: 2px solid rgba(255,255,255,.3);
            display: grid;
            place-items: center;
            font-size: 24px;
            cursor: pointer;
            z-index: 60;
            box-shadow: 0 10px 30px rgba(138,43,226,.6);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.8);
            transition: all 0.3s ease;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px) scale(1.1);
            background: linear-gradient(135deg, rgba(138,43,226,1), rgba(138,43,226,.85));
            box-shadow: 0 15px 40px rgba(138,43,226,.8);
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        /* 公司環境四卡 */
        .env-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(280px, 1fr));
            gap: 28px;
            margin-top: 20px;
        }
        
        .env-card {
            background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 10px 35px rgba(0,0,0,.4);
            display: grid;
            grid-template-columns: 60px 1fr;
            gap: 20px;
            backdrop-filter: blur(15px);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        
        .env-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(138,43,226,.2), transparent);
            transition: left 0.6s ease;
        }
        
        .env-card:hover::before {
            left: 100%;
        }
        
        .env-card:hover {
            border-color: rgba(138,43,226,.6);
            box-shadow: 0 18px 50px rgba(138,43,226,.5);
            transform: translateY(-8px) scale(1.02);
            background: linear-gradient(135deg, rgba(138,43,226,.25), rgba(138,43,226,.12));
        }
        
        .env-icon {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, rgba(138,43,226,.25), rgba(138,43,226,.15));
            border: 1px solid rgba(138,43,226,.4);
            transition: all 0.4s ease;
        }
        
        .env-card:hover .env-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 5px 20px rgba(138,43,226,.5);
        }
        
        .env-card svg [stroke] {
            stroke: #b8b8ff;
            transition: stroke 0.3s ease;
        }
        
        .env-card:hover svg [stroke] {
            stroke: #fff;
        }
        
        .env-card h4 {
            margin: 5px 0 10px;
            font-size: 1.3rem;
            color: #e8e8ff;
            text-shadow: 0 2px 5px rgba(138,43,226,.2);
        }
        
        .env-card p {
            margin: 0;
            line-height: 2;
            color: #d8d8ff;
            font-size: 1.05rem;
        }
        
        @media (max-width: 768px) {
            .env-grid { grid-template-columns: 1fr; }
        }

        /* 專題區塊：分頁 */
        .proj-box {
            margin-top: 35px;
        }
        
        .proj-title {
            font-size: 1.7em;
            color: #e8e8ff;
            margin-bottom: 20px;
            text-shadow: 0 2px 8px rgba(138,43,226,.3);
        }
        
        .pill-tabs {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 25px;
        }
        
        .pill-tabs button {
            padding: 12px 24px;
            border-radius: 999px;
            border: 1px solid rgba(184,184,255,.4);
            background: rgba(255,255,255,.08);
            color: #e8e8ff;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,.2);
        }
        
        .pill-tabs button:hover {
            box-shadow: 0 0 0 3px rgba(138,43,226,.3);
            transform: translateY(-3px);
            background: rgba(138,43,226,.15);
        }
        
        .pill-tabs button.active {
            background: linear-gradient(135deg, rgba(138,43,226,.5), rgba(138,43,226,.25));
            border-color: rgba(138,43,226,.7);
            box-shadow: 0 5px 20px rgba(138,43,226,.4);
            transform: scale(1.05);
        }
        
        .tab-panel {
            display: none;
            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 8px 25px rgba(0,0,0,.3);
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .tab-panel.active {
            display: block;
        }
        
        .tab-panel h4 {
            font-size: 1.3em;
            margin-bottom: 15px;
            color: #b8b8ff;
            text-shadow: 0 2px 5px rgba(138,43,226,.2);
        }
        
        .tab-panel p,
        .tab-panel li {
            color: #eaeaff;
        }
        
        .tab-panel ul {
            padding-left: 25px;
        }
        
        .muted {
            color: #cfd0ff;
            font-weight: 600;
        }

        /* 輪播 */
        .carousel {
            position: relative;
            border-radius: 25px;
            overflow: hidden;
            background: rgba(0,0,0,.35);
            border: 1px solid rgba(255,255,255,.25);
            box-shadow: 0 20px 60px rgba(0,0,0,.7);
            max-width: 900px;
            margin: 20px auto 0;
            transition: all 0.4s ease;
        }
        
        .carousel:hover {
            box-shadow: 0 25px 70px rgba(138,43,226,.5);
            transform: scale(1.02);
        }
        
        .carousel-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .carousel img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            flex: 0 0 100%;
            display: block;
        }
        
        .carousel .nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,.4);
            background: rgba(20,20,40,.7);
            color: #fff;
            font-size: 22px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .carousel .nav:hover {
            background: rgba(138,43,226,.8);
            border-color: rgba(138,43,226,.8);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 5px 20px rgba(138,43,226,.5);
        }
        
        .carousel .prev {
            left: 15px;
        }
        
        .carousel .next {
            right: 15px;
        }
        
        .dots {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }
        
        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(184,184,255,.4);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .dot:hover {
            background: rgba(184,184,255,.7);
            transform: scale(1.2);
        }
        
        .dot.active {
            background: #b8b8ff;
            transform: scale(1.3);
            box-shadow: 0 0 10px rgba(184,184,255,.8);
            border-color: rgba(255,255,255,.3);
        }
        
        @media(max-width: 768px) {
            .carousel img {
                height: 260px;
            }
        }

        /* 成果用：2張圖輪播（完整顯示） */
        .carousel.slim {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .carousel.slim img {
            height: 460px;
            object-fit: contain;
            background: #0b0f2a;
        }
        
        @media(max-width: 768px) {
            .carousel.slim img {
                height: 300px;
            }
        }

        /* 結果卡片 */
        .result-card {
            background: rgba(0,0,0,.3);
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 20px;
            overflow: hidden;
            max-width: 800px;
            margin: 0 auto;
            box-shadow: 0 20px 60px rgba(0,0,0,.7);
            transition: all 0.4s ease;
        }
        
        .result-card:hover {
            box-shadow: 0 25px 70px rgba(138,43,226,.5);
            transform: scale(1.02);
        }
        
        .result-card img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            display: block;
        }
        
        .result-caption {
            padding: 20px 25px;
            font-size: 1em;
            line-height: 1.8;
            color: #cfd0ff;
            background: rgba(20,20,40,.7);
            border-top: 1px solid rgba(255,255,255,.2);
        }
        
        @media(max-width: 768px) {
            .result-card img {
                height: 260px;
            }
        }

        /* 響應式設計優化 */
        @media (max-width: 1024px) {
            .header-card {
                padding: 50px 40px;
            }
            
            .content-box {
                padding: 40px 35px;
            }
            
            .info-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .nav-container {
                top: 10px;
                right: 10px;
                left: 10px;
            }
            
            .nav-tabs {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .nav-tab {
                font-size: 0.85em;
                padding: 8px 14px;
            }
            
            .header-card {
                margin: 90px auto 30px;
                padding: 40px 30px;
            }
            
            .header-card h1 {
                font-size: 1.8em;
            }
            
            .subtitle {
                font-size: 1.2em;
            }
            
            .info-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .content-box {
                padding: 30px 25px;
                margin-bottom: 30px;
            }
            
            .content-box h2 {
                font-size: 1.8em;
            }
            
            .content-box h3 {
                font-size: 1.4em;
            }
            
            .learning-cards {
                grid-template-columns: 1fr;
            }
            
            .env-grid {
                grid-template-columns: 1fr;
            }
            
            .env-card {
                grid-template-columns: 55px 1fr;
                padding: 22px;
            }
            
            .env-icon {
                width: 55px;
                height: 55px;
            }
            
            .back-to-top {
                width: 50px;
                height: 50px;
                right: 20px;
                bottom: 20px;
            }
        }

        /* 動畫降噪（無障礙） */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition: none !important;
            }
            .comet, .stars, .star-large, .satellite, .planet {
                animation: none !important;
            }
        }

        /* 列印樣式 */
        @media print {
            body {
                color: #000;
                background: #fff;
            }
            .stars-container, .back-to-top, .nav-container {
                display: none !important;
            }
            .content-box, .header-card {
                background: #fff !important;
                border: 1px solid #ccc !important;
                box-shadow: none !important;
            }
            .collapsible-content {
                max-height: none !important;
                padding: 0 !important;
            }
            .collapsible-header::after {
                content: '';
            }
            a {
                color: #000;
                text-decoration: underline;
            }
        }

        /* 新增：滾動進度條 */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
            background-size: 200% 100%;
            animation: shimmer 2s linear infinite;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(138,43,226,.5);
        }

        /* 新增：頁面載入動畫 */
        @keyframes pageLoad {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .content-box, .header-card {
            animation: pageLoad 0.8s ease-out;
        }
        
        .content-box:nth-child(1) { animation-delay: 0.1s; }
        .content-box:nth-child(2) { animation-delay: 0.2s; }
        .content-box:nth-child(3) { animation-delay: 0.3s; }
        .content-box:nth-child(4) { animation-delay: 0.4s; }
        .content-box:nth-child(5) { animation-delay: 0.5s; }


        html { zoom: 0.7; } /* 快、影響整站；Chrome/Edge/Safari OK，Firefox 不支援 */
