/* 重置樣式 - 確保一切正常顯示 */  
*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

/* 全域變數 - iOS 26 液態玻璃風格 */
:root {
    --text-primary: #000000;
    --text-secondary: #3a3a3c;
    --text-muted: #86868b;
    --background-primary: #ffffff;
    --card-background: rgba(255, 255, 255, 0.4);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: rgba(0, 122, 255, 0.15);
    --accent-blue: #007aff;
    --accent-blue-light: #5ac8fa;
    --accent-green: #34c759;
    --accent-gradient: linear-gradient(135deg, #007aff, #5ac8fa, #00d4ff);
    --accent-purple: #af52de;
    --project-card-bg: rgba(255, 255, 255, 0.35);
    --skill-bar-bg: rgba(0, 122, 255, 0.08);
    --skill-bar-fill: linear-gradient(90deg, #007aff, #5ac8fa);
    --progress-ring-bg: rgba(0, 122, 255, 0.12);
    --progress-ring-fill: var(--skill-bar-fill);
    --dynamic-island-bg: rgba(20, 20, 30, 0.85);
    --dynamic-island-text: #ffffff;
    --footer-bg: rgba(255, 255, 255, 0.4);
    --footer-border: rgba(255, 255, 255, 0.5);
    --footer-pill: rgba(0, 122, 255, 0.3);
    --contact-hover: rgba(0, 122, 255, 0.08);
    --accent-blue-rgb: 0, 122, 255;
    --accent-green-rgb: 52, 199, 89;
    --accent-purple-rgb: 175, 82, 222;
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
    --glass-bg-rgb: 255, 255, 255;
    --glass-border-rgb: 255, 255, 255;
    --glass-opacity: 0.4;
    --glass-border-opacity: 0.35;
    --glass-border-brightness: 0.6;
    --glass-blur: 24px;
    --glass-shadow: 0 16px 40px rgba(0, 122, 255, 0.12);
    
    /* Liquid glass environment lighting */
    --env-light-1: none;
    --env-light-2: none;
    --env-light-3: none;
}

/* 暗黑主題設置 - iOS 26 液態玻璃風格 */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #ebebf5;
    --text-muted: #8e8e93;
    --background-primary: #0b0b0b;
    --card-background: rgba(30, 30, 50, 0.35);
    --card-border: rgba(100, 150, 255, 0.3);
    --card-shadow: rgba(0, 122, 255, 0.25);
    --accent-blue: #0a84ff;
    --accent-blue-light: #64d2ff;
    --accent-green: #30d158;
    --accent-gradient: linear-gradient(135deg, #0a84ff, #64d2ff, #00d4ff);
    --accent-purple: #bf5af2;
    --project-card-bg: rgba(44, 44, 70, 0.4);
    --skill-bar-bg: rgba(10, 132, 255, 0.15);
    --skill-bar-fill: linear-gradient(90deg, #0a84ff, #64d2ff);
    --progress-ring-bg: rgba(10, 132, 255, 0.18);
    --progress-ring-fill: var(--skill-bar-fill);
    --dynamic-island-bg: rgba(10, 10, 20, 0.9);
    --dynamic-island-text: #ffffff;
    --footer-bg: rgba(30, 30, 50, 0.35);
    --footer-border: rgba(100, 150, 255, 0.25);
    --footer-pill: rgba(10, 132, 255, 0.4);
    --contact-hover: rgba(10, 132, 255, 0.12);
    --accent-blue-rgb: 10, 132, 255;
    --accent-green-rgb: 48, 209, 88;
    --accent-purple-rgb: 191, 90, 242;
    --glass-shine: linear-gradient(135deg, rgba(100, 150, 255, 0.3) 0%, rgba(100, 150, 255, 0) 60%);
    --glass-bg-rgb: 24, 24, 36;
    --glass-border-rgb: 120, 160, 255;
    --glass-opacity: 0.35;
    --glass-border-opacity: 0.3;
    --glass-border-brightness: 0.4;
    --glass-blur: 26px;
    --glass-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    
    /* Liquid glass environment lighting for dark theme */
    --env-light-1: none;
    --env-light-2: none;
    --env-light-3: none;
}

/* 基本排版設置 */
html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    background: var(--background-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.5s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
}

/* Liquid glass environment layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        var(--env-light-1),
        var(--env-light-2),
        var(--env-light-3);
    animation: environmentPulse 20s ease-in-out infinite;
    opacity: 0.8;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
}

@keyframes environmentPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

a {
    text-decoration: none;
    color: var(--accent-blue);
}

.mt-16 {
    margin-top: 16px;
}

/* 通用玻璃效果 */
.glass,
.glass-strong,
.glass-subtle {
    background: rgba(var(--glass-bg-rgb), var(--glass-opacity));
    border: 1px solid rgba(var(--glass-border-rgb), var(--glass-border-opacity));
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: var(--glass-shadow),
                inset 0 1px 0 rgba(255, 255, 255, var(--glass-border-brightness));
}

.glass-strong {
    --glass-opacity: 0.55;
    --glass-border-opacity: 0.5;
    --glass-border-brightness: 0.7;
    --glass-blur: 36px;
}

.glass-subtle {
    --glass-opacity: 0.25;
    --glass-border-opacity: 0.22;
    --glass-border-brightness: 0.45;
    --glass-blur: 16px;
    --glass-shadow: 0 12px 30px rgba(0, 122, 255, 0.08);
}

/* 容器 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Liquid glass utility */
.glass {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 12px 32px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .glass {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.glass:hover {
    filter: brightness(1.06) saturate(1.05);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 42px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass:active {
    filter: brightness(0.98) saturate(1.02);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(1px) scale(0.99);
}

[data-theme="dark"] .glass:hover {
    background: rgba(30, 30, 50, 0.45);
}

[data-theme="dark"] .glass:active {
    background: rgba(30, 30, 50, 0.35);
}

/* iOS 26 液態玻璃導航欄 */
header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    background: var(--card-background);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    box-shadow: 0 8px 32px var(--card-shadow), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    width: 100%;
}

header.glass {
    border: none;
    border-bottom: 1px solid var(--card-border);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主題切換按鈕 - 液態玻璃效果 */
.theme-switch {
    background: rgba(var(--accent-blue-rgb), 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.2);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(var(--accent-blue-rgb), 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    will-change: transform;
}

.theme-switch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, 
                rgba(var(--accent-blue-rgb), 0.3), 
                rgba(var(--accent-blue-rgb), 0.1));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.theme-switch:hover::before {
    width: 150%;
    height: 150%;
}

[data-theme="dark"] .theme-switch {
    background: rgba(var(--accent-blue-rgb), 0.18);
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(var(--accent-blue-rgb), 0.25),
                inset 0 1px 0 rgba(100, 150, 255, 0.2);
}

.theme-switch:hover {
    background: rgba(var(--accent-blue-rgb), 0.2);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(var(--accent-blue-rgb), 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

[data-theme="dark"] .theme-switch:hover {
    background: rgba(var(--accent-blue-rgb), 0.25);
    box-shadow: 0 6px 20px rgba(var(--accent-blue-rgb), 0.4),
                inset 0 1px 0 rgba(100, 150, 255, 0.3);
}

.theme-switch:active {
    transform: scale(0.95);
    filter: brightness(0.98);
}

/* 玻璃按鈕輔助樣式 */
.glow-on-hover.glass {
    background: rgba(20, 20, 30, 0.35);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 28px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.glow-on-hover.glass:hover {
    filter: brightness(1.08);
    box-shadow: 0 18px 36px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.glow-on-hover.glass:active {
    filter: brightness(0.97);
    transform: translateY(1px) scale(0.98);
}

.glow-on-hover.glass::after {
    background: rgba(20, 20, 30, 0.55);
}

/* 移動菜單按鈕 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn.glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* 移動菜單 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.glass {
    border-left: 1px solid var(--card-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.close-menu-btn.glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 20px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.close-menu-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.close-menu-btn:active {
    transform: translateY(1px) scale(0.98);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu-links a {
    padding: 15px 0;
    font-size: 18px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* 修復英雄區域樣式 */
.hero {
    text-align: center;
    padding: 80px 0 50px;
    position: relative;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 靈動島 - iOS 26 液態玻璃效果 */
.dynamic-island {
    position: relative;
    width: 120px;
    height: 36px;
    background: var(--dynamic-island-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dynamic-island-text);
    margin: 0 auto 40px;
    overflow: hidden;
    animation: islandAppear 1s forwards, liquidPulse 4s infinite 1s;
    transform: scale(0.8);
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 20px rgba(var(--accent-blue-rgb), 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dynamic-island::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: liquidShine 3s infinite;
}

@keyframes liquidPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 20px rgba(var(--accent-blue-rgb), 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 40px rgba(var(--accent-blue-rgb), 0.6);
    }
}

@keyframes liquidShine {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

@keyframes islandAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pill-content {
    font-size: 14px;
    font-weight: 500;
}

/* iOS 26 液態玻璃卡片 */
.ios-card {
    background: var(--card-background);
    border-radius: 24px;
    box-shadow: 0 12px 40px var(--card-shadow),
                0 0 0 1px var(--card-border),
                inset 0 2px 0 rgba(255, 255, 255, 0.7),
                0 0 80px rgba(var(--accent-blue-rgb), 0.1);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1.5px solid var(--card-border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                background 0.3s ease;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: cardSlideIn 0.8s forwards;
    animation-delay: calc(var(--card-index, 0) * 0.2s + 0.5s);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ios-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.6) 0%, 
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ios-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--accent-blue-rgb), 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.ios-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 60px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.9),
                0 0 100px rgba(var(--accent-blue-rgb), 0.25);
    filter: brightness(1.06) saturate(1.05);
}

.ios-card:hover::before {
    opacity: 0.8;
}

.ios-card:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

[data-theme="dark"] .ios-card {
    box-shadow: 0 12px 40px var(--card-shadow),
                0 0 0 1px var(--card-border),
                inset 0 2px 0 rgba(100, 150, 255, 0.25),
                0 0 80px rgba(var(--accent-blue-rgb), 0.15);
}

[data-theme="dark"] .ios-card::before {
    background: linear-gradient(135deg, 
                rgba(100, 150, 255, 0.35) 0%, 
                rgba(100, 150, 255, 0.1) 50%,
                transparent 100%);
}

[data-theme="dark"] .ios-card:hover {
    box-shadow: 0 24px 60px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.6),
                inset 0 2px 0 rgba(100, 150, 255, 0.4),
                0 0 100px rgba(var(--accent-blue-rgb), 0.35);
}

.ios-card:active {
    transform: translateY(-6px) scale(1.01);
    filter: brightness(0.99) saturate(1.02);
}

.fullpage-section.active .ios-card {
    animation-play-state: running;
}

.ios-card.full-width {
    width: 100%;
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
}

/* 卡片網格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

/* 自定義列表 */
.custom-list {
    list-style: none;
    padding-left: 5px;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}

/* 技能條 */
.skill-section {
    margin-bottom: 30px;
}

.skill-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-bars {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 15px;
}

.skill-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 技能條 - 液態玻璃效果 */
.skill-bar {
    height: 12px;
    background: var(--skill-bar-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

.skill-level {
    height: 100%;
    background: var(--skill-bar-fill);
    border-radius: 6px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(var(--accent-blue-rgb), 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.4) 50%, 
                rgba(255,255,255,0) 100%);
    animation: liquidFlow 2.5s infinite;
}

@keyframes liquidFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* 專案網格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    view-transition-name: projects-grid;
}

/* 專案卡片 - 液態玻璃風格 */
.project-card {
    background: var(--project-card-bg);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1.5px solid var(--card-border);
    box-shadow: 0 12px 40px var(--card-shadow),
                inset 0 2px 0 rgba(255, 255, 255, 0.6),
                0 0 60px rgba(var(--accent-blue-rgb), 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.5) 0%, 
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-16px) scale(1.06);
    box-shadow: 0 28px 56px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.5),
                inset 0 2px 0 rgba(255, 255, 255, 0.9),
                0 0 80px rgba(var(--accent-blue-rgb), 0.3);
    border-color: rgba(var(--accent-blue-rgb), 0.7);
    filter: brightness(1.06) saturate(1.05);
}

.project-card:hover::before {
    opacity: 0.7;
}

[data-theme="dark"] .project-card {
    box-shadow: 0 12px 40px var(--card-shadow),
                inset 0 2px 0 rgba(100, 150, 255, 0.25),
                0 0 60px rgba(var(--accent-blue-rgb), 0.15);
}

[data-theme="dark"] .project-card::before {
    background: linear-gradient(135deg, 
                rgba(100, 150, 255, 0.3) 0%, 
                rgba(100, 150, 255, 0.05) 50%,
                transparent 100%);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 28px 56px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.7),
                inset 0 2px 0 rgba(100, 150, 255, 0.4),
                0 0 80px rgba(var(--accent-blue-rgb), 0.4);
}

.project-card:active {
    transform: translateY(-8px) scale(1.02);
    filter: brightness(0.99) saturate(1.02);
}

.project-icon {
    font-size: 46px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 進度環 */
.coming-soon {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background-color: var(--card-background);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px var(--card-shadow);
}

.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring-circle-bg {
    stroke: var(--progress-ring-bg);
    stroke-dasharray: 314;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring-circle {
    stroke: var(--progress-ring-fill);
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 2s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
}

/* 聯繫網格 - 優化版本 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 聯繫卡片 - 液態玻璃風格 */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-background);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid var(--card-border);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    box-shadow: 0 12px 40px var(--card-shadow),
                inset 0 2px 0 rgba(255, 255, 255, 0.6),
                0 0 60px rgba(var(--accent-blue-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.5) 0%, 
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 48px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.5),
                inset 0 2px 0 rgba(255, 255, 255, 0.8),
                0 0 70px rgba(var(--accent-blue-rgb), 0.25);
    background: var(--contact-hover);
    border-color: rgba(var(--accent-blue-rgb), 0.6);
}

.contact-item:hover::before {
    opacity: 0.7;
}

[data-theme="dark"] .contact-item {
    box-shadow: 0 12px 40px var(--card-shadow),
                inset 0 2px 0 rgba(100, 150, 255, 0.25),
                0 0 60px rgba(var(--accent-blue-rgb), 0.15);
}

[data-theme="dark"] .contact-item::before {
    background: linear-gradient(135deg, 
                rgba(100, 150, 255, 0.3) 0%, 
                rgba(100, 150, 255, 0.05) 50%,
                transparent 100%);
}

[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 20px 48px var(--card-shadow),
                0 0 0 2px rgba(var(--accent-blue-rgb), 0.7),
                inset 0 2px 0 rgba(100, 150, 255, 0.4),
                0 0 70px rgba(var(--accent-blue-rgb), 0.35);
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
    background-color: rgba(0, 122, 255, 0.1);
    padding: 5px;
    border-radius: 8px;
}

[data-theme="dark"] .contact-icon {
    background-color: rgba(10, 132, 255, 0.2);
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    word-break: break-all;
    color: var (--text-primary);
}

.contact-value a {
    color: var(--accent-blue);
    transition: all 0.2s ease;
    display: inline-block;
}

.contact-value a:hover {
    text-decoration: none;
    opacity: 0.8;
    transform: scale(1.03);
}

/* iOS 26 液態玻璃頁腳 */
.ios-footer {
    padding: 0;
    background: var(--footer-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid var(--footer-border);
    box-shadow: 0 -8px 32px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    margin-top: 50px;
}

.ios-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.3;
}

.footer-indicator {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.footer-pill {
    width: 40px;
    height: 5px;
    background-color: var(--footer-pill);
    border-radius: 3px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 40px 0;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-nav-wrapper {
    display: flex;
    justify-content: flex-end;
}

.footer-nav-group h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.ios-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.ios-link:hover {
    color: var(--accent-blue);
}

.ios-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.ios-link:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* 行動裝置/低效能裝置的玻璃效果調整 */
@media (max-width: 768px), (prefers-reduced-motion: reduce), (update: slow) {
    :root {
        --card-background: rgba(255, 255, 255, 0.55);
        --project-card-bg: rgba(255, 255, 255, 0.5);
        --footer-bg: rgba(255, 255, 255, 0.55);
        --dynamic-island-bg: rgba(20, 20, 30, 0.75);
    }

    [data-theme="dark"] {
        --card-background: rgba(20, 20, 35, 0.6);
        --project-card-bg: rgba(30, 30, 50, 0.55);
        --footer-bg: rgba(20, 20, 35, 0.6);
        --dynamic-island-bg: rgba(10, 10, 20, 0.8);
    }

    header,
    .mobile-menu,
    .theme-switch,
    .dynamic-island,
    .ios-card,
    .contact-item,
    .liquid-glass-card,
    .feature-project,
    .coming-soon,
    .goal-item,
    .ios-footer,
    .player-container,
    .player-btn {
        backdrop-filter: blur(22px) saturate(160%);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
    }

    .liquid-glass-card {
        background-color: rgba(255, 255, 255, 0.6);
    }

    [data-theme="dark"] .liquid-glass-card {
        background-color: rgba(20, 20, 35, 0.65);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root {
        --card-background: rgba(255, 255, 255, 0.75);
        --project-card-bg: rgba(255, 255, 255, 0.7);
        --footer-bg: rgba(255, 255, 255, 0.75);
        --dynamic-island-bg: rgba(20, 20, 30, 0.8);
    }

    [data-theme="dark"] {
        --card-background: rgba(20, 20, 35, 0.75);
        --project-card-bg: rgba(30, 30, 50, 0.7);
        --footer-bg: rgba(20, 20, 35, 0.75);
        --dynamic-island-bg: rgba(10, 10, 20, 0.85);
    }

    header,
    .mobile-menu,
    .theme-switch,
    .dynamic-island,
    .ios-card,
    .project-card,
    .contact-item,
    .liquid-glass-card,
    .feature-project,
    .coming-soon,
    .goal-item,
    .ios-footer,
    .player-container,
    .player-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .liquid-glass-card {
        background: rgba(255, 255, 255, 0.78);
    }

    [data-theme="dark"] .liquid-glass-card {
        background: rgba(20, 20, 35, 0.78);
    }
}

/* 響應式設計 - 確保跨裝置兼容性 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }
    
    .liquid-glass-card {
        padding: 40px 30px;
        margin: 20px auto;
        border-radius: 30px;
    }
    
    .liquid-glass-card h1 {
        font-size: clamp(28px, 7vw, 40px);
    }
    
    .liquid-glass-card p {
        font-size: clamp(16px, 4vw, 20px);
    }

    .ios-card {
        padding: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .skill-item {
        grid-template-columns: 1fr;
    }

    .coming-soon {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-ring-container {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    
    .footer-nav-wrapper {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .section-dots {
        right: 15px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 10px;
        height: 10px;
    }

    .avatar-image {
        width: 120px;
        height: 120px;
    }

    /* 進一步優化移動設備上的體驗 */
    .mobile-device .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .mobile-device .dynamic-island {
        width: 100px;
        height: 32px;
        margin-bottom: 25px;
    }
    
    .mobile-device .pill-content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-device .contact-item {
        padding: 15px;
    }
    
    .mobile-device .contact-value {
        font-size: 14px;
    }
}

/* 滾動條美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 動畫 */
.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 全屏滾動相關樣式 */
.fullpage-container {
    height: 100vh;
    width: 100%;
    position: relative;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 2;
}

.fullpage-section {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullpage-section.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.section-content {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
}

/* 側邊導航點 */
.section-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-dots.glass {
    padding: 14px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid var(--card-border);
}

[data-theme="dark"] .section-dots.glass {
    background: rgba(30, 30, 50, 0.45);
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .dot {
    background: rgba(255, 255, 255, 0.2);
}

.dot.active {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-light);
}

.dot:hover:not(.active) {
    transform: scale(1.3);
    filter: brightness(1.1);
}

/* 區塊標題樣式 */
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    view-transition-name: title;
}

.fullpage-section.active .section-title {
    animation-play-state: running;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 鼠標滾動指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
    animation: arrowBlink 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

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

/* 拆分布局 */
.split-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

/* 英雄區域增強 */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Liquid glass hero card */
.liquid-glass-card {
    background: radial-gradient(circle at 30% 20%, 
                rgba(var(--accent-blue-rgb), 0.15), 
                transparent 50%),
                conic-gradient(from 180deg at 50% 50%, 
                rgba(var(--accent-purple-rgb), 0.12) 0deg,
                rgba(var(--accent-blue-rgb), 0.12) 120deg,
                rgba(90, 200, 250, 0.12) 240deg,
                rgba(var(--accent-purple-rgb), 0.12) 360deg);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-radius: 40px;
    padding: 60px 80px;
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(var(--accent-blue-rgb), 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 0 100px rgba(var(--accent-blue-rgb), 0.15);
    animation: liquidGlassAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scale(0.9);
    opacity: 0;
}

/* Animated liquid flow background */
.liquid-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
                transparent 0deg,
                rgba(var(--accent-blue-rgb), 0.15) 60deg,
                rgba(var(--accent-purple-rgb), 0.12) 120deg,
                rgba(90, 200, 250, 0.15) 180deg,
                rgba(var(--accent-green-rgb), 0.1) 240deg,
                rgba(var(--accent-blue-rgb), 0.15) 300deg,
                transparent 360deg);
    animation: liquidRotate 15s linear infinite;
    pointer-events: none;
}

/* Glass shine highlight */
.liquid-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.4) 0%, 
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
    pointer-events: none;
    border-radius: 40px 40px 0 0;
}

@keyframes liquidGlassAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes liquidRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[data-theme="dark"] .liquid-glass-card {
    background: radial-gradient(circle at 30% 20%, 
                rgba(var(--accent-blue-rgb), 0.2), 
                transparent 50%),
                conic-gradient(from 180deg at 50% 50%, 
                rgba(var(--accent-purple-rgb), 0.18) 0deg,
                rgba(var(--accent-blue-rgb), 0.18) 120deg,
                rgba(100, 210, 255, 0.15) 240deg,
                rgba(var(--accent-purple-rgb), 0.18) 360deg);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 
        0 20px 60px rgba(var(--accent-blue-rgb), 0.35),
        0 0 0 1px rgba(100, 150, 255, 0.2),
        inset 0 2px 0 rgba(100, 150, 255, 0.3),
        0 0 100px rgba(var(--accent-blue-rgb), 0.25);
}

[data-theme="dark"] .liquid-glass-card::after {
    background: linear-gradient(180deg, 
                rgba(100, 150, 255, 0.2) 0%, 
                rgba(100, 150, 255, 0.05) 50%,
                transparent 100%);
}

/* 添加頭像樣式 */
.profile-avatar {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    animation: profileAppear 1s forwards 0.3s;
    transform: scale(0.95);
    opacity: 0;
    z-index: 1;
}

/* 頭像 - 液態玻璃效果 */
.avatar-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(var(--accent-blue-rgb), 0.25),
                inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--accent-blue-rgb), 0.6);
    opacity: 0.6;
    animation: rotate 18s linear infinite;
    filter: drop-shadow(0 0 10px rgba(var(--accent-blue-rgb), 0.5));
}

.avatar-image:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 50px rgba(var(--accent-blue-rgb), 0.35),
                inset 0 2px 0 rgba(255, 255, 255, 0.7),
                0 0 30px rgba(var(--accent-blue-rgb), 0.3);
}

[data-theme="dark"] .avatar-image {
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 12px 40px rgba(var(--accent-blue-rgb), 0.35),
                inset 0 2px 0 rgba(100, 150, 255, 0.3);
}

[data-theme="dark"] .avatar-image:hover {
    box-shadow: 0 16px 50px rgba(var(--accent-blue-rgb), 0.5),
                inset 0 2px 0 rgba(100, 150, 255, 0.5),
                0 0 40px rgba(var(--accent-blue-rgb), 0.4);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes profileAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 調整標題在液態玻璃卡片內的位置 */
.liquid-glass-card h1 {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    transform: translateY(20px);
    opacity: 0;
    animation: heroFadeIn 1s forwards 0.6s;
    position: relative;
    z-index: 1;
}

.liquid-glass-card p {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    max-width: 700px;
    transform: translateY(20px);
    opacity: 0;
    animation: heroFadeIn 1s forwards 0.8s;
    position: relative;
    z-index: 1;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 專案區域 */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 調整其他存在樣式 */

/* View Transitions API 支持 */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slide-from-right {
  from { transform: translateX(30px); }
  to { transform: translateX(0); }
}

@keyframes slide-to-left {
  from { transform: translateX(0); }
  to { transform: translateX(-30px); }
}

::view-transition-old(root) {
  animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(root) {
  animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
    300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

::view-transition-old(title),
::view-transition-new(title) {
  height: auto;
  width: 100%;
}

::view-transition-old(featured-image),
::view-transition-new(featured-image) {
  height: auto;
  object-fit: cover;
}

/* 專案區塊改進樣式 */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

/* 特色專案 - 液態玻璃風格 */
.feature-project {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  background: var(--card-background);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 48px var(--card-shadow),
              0 0 0 1px var(--card-border),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  view-transition-name: featured-project;
  position: relative;
}

.feature-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.feature-project:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 32px 72px var(--card-shadow),
              0 0 0 1px rgba(var(--accent-blue-rgb), 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.8),
              0 0 50px rgba(var(--accent-blue-rgb), 0.25);
}

.feature-project:hover::before {
    opacity: 0.7;
}

.feature-project-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.featured-title {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.featured-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 16px;
}

.tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-tag {
  background-color: rgba(0, 122, 255, 0.1);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

[data-theme="dark"] .tech-tag {
  background-color: rgba(10, 132, 255, 0.2);
}

.feature-project-visual {
  background: linear-gradient(135deg, 
              rgba(var(--accent-blue-rgb), 0.9) 0%, 
              rgba(var(--accent-blue-rgb), 0.7) 50%,
              rgba(90, 200, 250, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  view-transition-name: featured-image;
  position: relative;
  overflow: hidden;
}

.feature-project-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: liquidRotate 10s linear infinite;
}

@keyframes liquidRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-icon-large {
  font-size: 120px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* 項目卡片改進 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  view-transition-name: projects-grid;
}

.project-card {
  background-color: var(--project-card-bg);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 30px var(--card-shadow);
  border-color: var(--accent-blue-light);
  filter: brightness(1.06) saturate(1.05);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 30px var(--card-shadow);
}

.project-card:active {
  transform: translateY(-6px) scale(1.01);
  filter: brightness(0.99) saturate(1.02);
}

.project-icon {
  font-size: 46px;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 學習計劃改進 */
.learning-plan {
  margin-top: 60px;
  view-transition-name: learning-section;
}

.subtitle {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* 進度環和學習計劃 - 液態玻璃效果 */
.coming-soon {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--card-background);
  border-radius: 28px;
  padding: 30px;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 40px var(--card-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  position: relative;
}

.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-shine);
  pointer-events: none;
  opacity: 0.4;
}

.plan-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 122, 255, 0.08);
  padding: 15px;
  border-radius: 12px;
  min-width: 100px;
}

[data-theme="dark"] .stat-item {
  background-color: rgba(10, 132, 255, 0.15);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 響應式設計調整 */
@media (max-width: 900px) {
  .feature-project {
    grid-template-columns: 1fr;
  }
  
  .feature-project-visual {
    height: 200px;
  }
  
  .plan-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .progress-stat {
    flex-direction: row;
    width: 100%;
  }
  
  .stat-item {
    flex: 1;
  }
}

/* 休閒娛樂卡片樣式 */
.entertainment-card {
  margin-top: 30px;
  width: 100%;
}

.entertainment-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.entertainment-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
  width: 80px;
}

.entertainment-group:hover {
  transform: translateY(-5px);
}

.entertainment-icon {
  font-size: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  padding: 12px;
  border-radius: 50%;
  background-color: rgba(0, 122, 255, 0.1);
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="dark"] .entertainment-icon {
  background-color: rgba(10, 132, 255, 0.15);
}

.entertainment-group span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 學習計劃區塊樣式調整 */
.learning-plan {
  view-transition-name: learning-section;
  margin-top: 0;
}

.future-goals {
  margin-top: 40px;
}

.goals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* 目標項目 - 液態玻璃效果 */
.goal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card-background);
  padding: 20px;
  border-radius: 18px;
  width: 130px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 4px 16px var(--card-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

.goal-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-shine);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px var(--card-shadow),
              0 0 0 1px rgba(var(--accent-purple-rgb), 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 0 20px rgba(var(--accent-purple-rgb), 0.2);
  border-color: rgba(var(--accent-purple-rgb), 0.5);
}

.goal-item:hover::before {
  opacity: 0.6;
}

.goal-icon {
  font-size: 24px;
  color: var(--accent-purple);
}

/* 修正關於區塊內容過長的問題 */
#about .section-content {
  padding-top: 50px;
  padding-bottom: 30px;
  overflow-y: auto;
  max-height: 100vh;
}

/* 確保每個區塊的標題都有一致的樣式 */
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  view-transition-name: title;
}

/* 懸浮音樂播放器 - iOS 26 液態玻璃風格 */
.floating-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--accent-blue-rgb), 0.2);
    will-change: transform;
}

.floating-player:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 16px 48px rgba(var(--accent-blue-rgb), 0.3);
}

[data-theme="dark"] .floating-player:hover {
    box-shadow: 0 16px 48px rgba(var(--accent-blue-rgb), 0.4);
}

.player-container {
    background: var(--card-background);
    border-radius: 24px;
    box-shadow: 0 12px 40px var(--card-shadow),
                0 0 0 1px var(--card-border),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--card-border);
    padding: 18px 24px;
    width: 340px;
    animation: playerFadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    position: relative;
    overflow: hidden;
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, 
                rgba(var(--accent-blue-rgb), 0.12) 0%, 
                rgba(var(--accent-blue-rgb), 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.player-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.3;
}

.floating-player:hover .player-container::before {
    opacity: 1;
}

@keyframes playerFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.player-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.player-title svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: var(--accent-blue);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 播放器按鈕 - 液態玻璃效果 */
.player-btn {
    background: rgba(var(--accent-blue-rgb), 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.25);
    cursor: pointer;
    color: var(--accent-blue);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 46px;
    height: 46px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(var(--accent-blue-rgb), 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.player-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, 
                rgba(var(--accent-blue-rgb), 0.3),
                rgba(var(--accent-blue-rgb), 0.1));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.player-btn:hover::before {
    width: 140%;
    height: 140%;
}

.player-btn:active {
    transform: scale(0.92);
    filter: brightness(0.98);
}

[data-theme="dark"] .player-btn {
    background: rgba(var(--accent-blue-rgb), 0.2);
    border-color: rgba(var(--accent-blue-rgb), 0.35);
    box-shadow: 0 4px 16px rgba(var(--accent-blue-rgb), 0.3),
                inset 0 1px 0 rgba(100, 150, 255, 0.25);
}

.player-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(var(--accent-blue-rgb), 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: rgba(var(--accent-blue-rgb), 0.25);
    filter: brightness(1.08);
}

[data-theme="dark"] .player-btn:hover {
    box-shadow: 0 8px 24px rgba(var(--accent-blue-rgb), 0.5),
                inset 0 1px 0 rgba(100, 150, 255, 0.35);
}

.player-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.play-icon {
    display: block;
}

.pause-icon {
    display: none;
}

.is-playing .play-icon {
    display: none;
}

.is-playing .pause-icon {
    display: block;
}

.is-playing {
    background-color: rgba(var(--accent-blue-rgb), 0.2);
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
}

.track-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#songTitle {
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    max-width: 180px;
}

.time-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* 進度條 - 液態玻璃效果 */
.progress-container {
    height: 6px;
    background: var(--skill-bar-bg);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15),
                0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.progress-container:hover .progress-bar {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue-light));
    box-shadow: 0 0 12px rgba(var(--accent-green-rgb), 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.progress-bar {
    height: 100%;
    background: var(--skill-bar-fill);
    width: 0;
    border-radius: 3px;
    transition: width 0.1s linear, background 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(var(--accent-blue-rgb), 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
    transform: scale(0);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.progress-container:hover .progress-bar::after {
    width: 14px;
    height: 14px;
    transform: scale(1) translate(50%, -25%);
}

.player-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.control-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.control-btn.glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 16px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.control-btn:hover {
    color: var(--accent-blue);
    background-color: rgba(var(--accent-blue-rgb), 0.08);
    filter: brightness(1.06);
    box-shadow: 0 10px 20px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.control-btn:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.98);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background-color: var(--skill-bar-bg);
    border-radius: 2px;
    width: 70px;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    transform: scale(1);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    background-color: var(--accent-green);
}

.volume-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    background-color: var(--accent-green);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .floating-player {
        left: 15px;
        bottom: 15px;
    }
    
    .player-container {
        width: 280px;
        padding: 12px 16px;
    }
    
    .control-btns {
        gap: 8px;
    }
    
    .volume-control {
        gap: 6px;
    }
    
    .volume-slider {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .player-container {
        width: 220px;
    }
    
    .player-bottom {
        display: none;
    }
    
    #songTitle {
        max-width: 120px;
        font-size: 13px;
    }
    
    .player-btn {
        width: 38px;
        height: 38px;
    }
}

/* 裝置偵測與響應式排版 */
.mobile-device {
    overflow-y: auto !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch; /* 增加這行提升滾動流暢度 */
}

.mobile-device html {
    overflow: auto !important;
    height: auto !important;
}

.mobile-device .fullpage-container {
    height: auto;
    transition: none;
    position: static; /* 改為靜態定位 */
    overflow: visible;
}

.mobile-device .fullpage-section {
    position: relative;
    height: auto;
    min-height: 100vh;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    padding-bottom: 50px;
    display: block; /* 改變顯示方式 */
    margin-bottom: 0;
    scroll-margin-top: 60px; /* 滾動到此元素時的頂部間距 */
}

/* 優化滾動行為 */
.mobile-device .mobile-section {
    scroll-margin-top: 70px;
    scroll-snap-align: start; /* 啟用滾動貼齊 */
}

.mobile-device {
    scroll-snap-type: y proximity; /* 啟用頁面滾動貼齊 */
}

/* 增強移動裝置的滑動體驗 */
@media (max-width: 768px) {
    html, body {
        overscroll-behavior: contain; /* 防止過度滾動 */
    }
    
    .mobile-device .section-content {
        touch-action: pan-y; /* 允許垂直平移 */
    }
    
    /* 調整觸控反饋 */
    .mobile-device a, 
    .mobile-device button,
    .mobile-device .ios-card,
    .mobile-device .contact-item,
    .mobile-device .project-card,
    .mobile-device .entertainment-group {
        -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
    }
    
    .mobile-device .floating-player {
        bottom: 60px; /* 調整懸浮播放器位置避免阻擋內容 */
    }
}

/* 裝置偵測與響應式排版 */
.mobile-device {
    overflow-y: auto !important;
    height: auto !important;
}

.mobile-device .fullpage-container {
    height: auto;
    transition: none;
}

.mobile-device .fullpage-section {
    position: relative;
    height: auto;
    min-height: 100vh;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    padding-bottom: 50px;
}

.mobile-device .section-content {
    padding: 60px 15px;
    max-height: none;
    overflow-y: visible;
}

.mobile-device .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-device .section-dots {
    display: none;
}

.mobile-device .split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
}

.mobile-device .floating-player {
    bottom: 10px;
    left: 10px;
}

.mobile-device .mobile-optimized .player-container {
    width: 220px;
    padding: 12px;
}

.mobile-device .mobile-optimized .player-bottom {
    display: none;
}

.mobile-device .mobile-optimized #songTitle {
    max-width: 120px;
    font-size: 13px;
}

.mobile-device .mobile-optimized .player-btn {
    width: 38px;
    height: 38px;
}

.mobile-device .mobile-optimized .time-info {
    font-size: 11px;
}

.mobile-device .feature-project {
    grid-template-columns: 1fr;
}

.mobile-device .feature-project-visual {
    height: 180px;
}

.mobile-device .coming-soon {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.mobile-device .progress-ring-container {
    margin: 0 auto;
}

.mobile-device .mobile-contact {
    grid-template-columns: 1fr;
}

.mobile-device .ios-card {
    padding: 20px;
    margin-bottom: 20px;
}

/* 優化滾動行為在移動設備上的表現 */
.mobile-device .mobile-section {
    scroll-margin-top: 70px;
}

/* 優化移動設備上的頁腳 */
.mobile-device .ios-footer .container {
    padding: 0 15px;
}

.mobile-device .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

.mobile-device .footer-nav-wrapper {
    justify-content: flex-start;
}

.mobile-device .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    text-align: center;
}

.mobile-device .footer-bottom-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 優化移動設備上的英雄區塊 */
.mobile-device .hero-section h1 {
    font-size: clamp(28px, 8vw, 40px);
}

.mobile-device .hero-section p {
    font-size: clamp(16px, 4vw, 20px);
    padding: 0 10px;
}

.mobile-device .avatar-image {
    width: 120px;
    height: 120px;
}

/* 優化移動設備上的娛樂卡片 */
.mobile-device .entertainment-content {
    justify-content: space-around;
}

.mobile-device .entertainment-group {
    width: 70px;
    margin-bottom: 15px;
}

.mobile-device .entertainment-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
}

/* 優化移動設備上的專案卡片 */
.mobile-device .projects-grid {
    grid-template-columns: 1fr;
}

/* 優化移動設備上的目標網格 */
.mobile-device .goals-grid {
    gap: 15px;
}

.mobile-device .goal-item {
    width: calc(50% - 15px);
    padding: 15px;
}

/* 優化移動設備上的專案和學習計劃區塊 */
.mobile-device .feature-project,
.mobile-device .project-card,
.mobile-device .coming-soon,
.mobile-device .future-goals,
.mobile-device .goal-item {
    opacity: 1 !important; /* 確保這些元素在移動設備上總是可見的 */
    transform: none !important; /* 移除可能阻礙顯示的變形 */
    transition: none !important; /* 移除可能導致問題的延遲效果 */
}

.mobile-device .projects-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 調整間距 */
}

/* 確保移動設備上的進度環正確顯示 */
.mobile-device .progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease; /* 更快的動畫速度 */
}

/* 改進移動設備上Feature Project的樣式 */
.mobile-device .feature-project {
    box-shadow: 0 10px 20px var(--card-shadow); /* 降低陰影強度 */
}

.mobile-device .feature-project-content {
    padding: 25px; /* 調小內邊距 */
}

.mobile-device .featured-title {
    font-size: 28px; /* 調小字體大小 */
}

.mobile-device .feature-project-visual {
    min-height: 150px; /* 確保最小高度 */
}

/* 優化移動設備上的學習目標卡片 */
.mobile-device .goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 改為兩列佈局 */
    gap: 15px;
    margin-top: 20px;
}

.mobile-device .goal-item {
    width: auto; /* 自動寬度適應網格 */
    padding: 15px;
    border-radius: 12px;
}

/* 確保滾動檢測在移動設備上正常工作 */
.mobile-device .fullpage-section {
    scroll-margin-top: 60px;
    scroll-snap-margin: 60px; /* 舊版瀏覽器兼容 */
}

/* 移動設備上的動畫優化 */
@media (max-width: 768px) {
    .feature-project, 
    .project-card,
    .coming-soon,
    .future-goals {
        will-change: transform, opacity; /* 硬件加速 */
        backface-visibility: hidden; /* 防止渲染問題 */
    }
    
    .mobile-section {
        padding-top: 60px; /* 補償頂部空間 */
        padding-bottom: 60px; /* 補償底部空間 */
    }
}
