* {
    margin: 0;
    padding: 0;
    /*box-sizing: border-box;*/
}

:root {
    --bg-light: #ffffff;
    --text-light: #333333;
    --card-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --text-dark: #ffffff;
    --card-dark: #2d2d2d;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --card-color: rgba(35, 35, 35, 0.8); /* 深色卡片背景 */
    --card-hover-color: rgba(45, 45, 45, 0.9); /* 深色卡片懸停背景 */
    --btn-text-color: #ffffff; /* 按鈕文字顏色 */
}

/* 深色模式變量 */
body.dark-mode {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --primary-color: #4a90e2;
    --secondary-color: #2d2d2d;
    --card-color: rgba(35, 35, 35, 0.8); /* 深色卡片背景 */
    --card-hover-color: rgba(45, 45, 45, 0.9); /* 深色卡片懸停背景 */
    --btn-text-color: #ffffff; /* 按鈕文字顏色 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    transition: all 0.3s ease;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 30px;
}

header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    margin-bottom: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover::before {
    transform: translateX(100%);
}

header .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.9;
    margin: 0;
    animation: fadeInUp 1s ease-out;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 響應式調整 */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.2em;
    }
}

nav {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li.active a {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

nav ul li.active a::before {
    width: 80%;
}

/* 漢堡菜單 */
.menu-icon {
    display: none; /* 在桌面版預設隱藏 */
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    height: 34px;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

/* 關閉按鈕 */
.close-icon {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* 手機響應式設計 */
@media (max-width: 768px) {
    nav {
        padding: 0 12px;
        min-height: 60px;
        justify-content: flex-end;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 30px 20px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    nav ul.show .close-icon {
        display: block;
    }
    
    /* 當菜單開啟時隱藏菜單按鈕 */
    nav ul.show + .menu-icon,
    nav ul.show ~ .menu-icon {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav ul li {
        width: 100%;
        margin: 5px 0;
    }

    nav ul li a {
        padding: 15px 20px;
        text-align: center;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 1.2em;
}

nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .menu-icon {
        display: flex; /* 只在手機版顯示 */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

section {
    padding: 20px 0;
    animation: fadeInSection 1s ease-in-out;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px); /* 從下方淡入 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

p {
    margin-bottom: 15px;
}

ul {
    list-style-type: square;
}

.work-grid {
    display: flex;
    gap: 20px;
}

.work-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 作品集項目動畫 */
}

.work-item:hover {
    transform: translateY(-5px); /* 懸停時向上移動 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 懸停時增加陰影 */
}

.translation-section {
    padding: 80px 0;
}

.translation-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.translation-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

.translation-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

.translation-section p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.translation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.translation-item {
    background: rgba(255, 255, 255, 0.05); /*var(--card-color); */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.translation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.translation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* background: var(--card-hover-color); */
}

.translation-item:hover::before {
    transform: translateX(100%);
}

.translation-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    /* background: rgba(255, 255, 255, 0.1); */
    padding: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.translation-image:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.translation-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.translation-content h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.translation-content p {
    color: var(--text-color);
    font-size: 0.95em;
    opacity: 0.9;
    margin: 0;
    transition: all 0.3s ease;
}

.translation-item:hover .translation-content h3 {
    transform: translateX(5px);
}

.translation-item:hover .translation-content p {
    transform: translateX(5px);
    opacity: 1;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .translation-section h2 {
        font-size: 2rem;
    }

    .translation-section p {
        font-size: 1rem;
    }

    .translation-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .translation-item {
        padding: 20px;
    }

    .translation-image {
        width: 60px;
        height: 60px;
    }

    .translation-content h3 {
        font-size: 1.2em;
    }

    .translation-content p {
        font-size: 0.9em;
    }
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.btn {
    --bs-btn-padding-x: .75rem;
    --bs-btn-padding-y: .375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: .65;
    --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    margin-bottom: 6px;
    margin-right: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 設定按鈕動畫效果 */
}

.btn:hover {
    transform: scale(1.05); /* 懸停時擴展按鈕 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加陰影效果 */
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
    text-decoration: none;
}

.bi {
    text-decoration: none;
    color: #333;
}

a {
    text-decoration: none;
    color: #0000EE;
}

svg {
    margin-bottom: -2px;
}

.messenger {
    background-image: radial-gradient(circle farthest-corner at 18% 98%, #0078ff 5%, #4b69ff 25%, #af37f0 55%, #ff557d 78%, #fa696e 83%);
}

.instagram {
    background-image: linear-gradient(34deg, #ffc600 0%, #fe008e 50%, #7a04ff 100%);
}

.indented {
            padding-left: 20px; /* 你可以根據需求調整數值 */
}

ul.indented-list {
    padding-left: 40px; /* 增加縮排，根據需要調整數值 */
}

::marker {
    padding-left: 20px;
}

/* 美化容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 標題樣式 */
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 列表樣式 */
.indented-list {
    list-style-type: none; /* 去掉默認列表符號 */
    padding-left: 0;
}

.indented-list li {
    margin-bottom: 10px;
}

.indented-list li a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px 6px 10px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    border-radius: 12px;
    color: #007bff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 懸停效果 */
.indented-list li a:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 調整間距 */
.indented {
    margin-bottom: 40px;
}

#contact {
    padding: 80px 0;
}

#contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#contact h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
}

#contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

#contact p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.1em;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.email-list, .social-links {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-list:hover, .social-links:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.email-list h3, .social-links h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.email-list ul {
    list-style: none;
    padding: 0;
}

.email-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-list strong {
    color: var(--text-color);
    min-width: 80px;
}

.email-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.email-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.email-list a:hover {
    color: var(--primary-color);
}

.email-list a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    opacity: 0.1;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Instagram 特殊樣式 */
.social-icon.instagram svg {
    color: #333;
    transition: all 0.3s ease;
}

.social-icon.instagram:hover svg {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1);
}

/* Facebook 特殊樣式 */
.social-icon.facebook svg {
    color: #333;
    transition: all 0.3s ease;
}

.social-icon.facebook:hover svg {
    color: #1877f2;
    transform: scale(1.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        width: 90%;
        margin: 0 auto;
        gap: 20px;
    }

    .email-list, .social-links {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px;
        margin: 0 auto;
    }
    
    .email-list li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .email-list li strong {
        margin-bottom: 5px;
    }
    
    .email-list a {
        word-break: break-all;
    }
    
    .social-icons {
        justify-content: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .indented {
        width: 90%;
        margin: 0 auto 20px auto;
    padding: 20px;
        box-sizing: border-box;
    }
    
    .translation-list, .game-list, #study ul, #skills ul {
        width: 90%;
        margin: 0 auto;
    }
}

/* 更小螢幕的優化 */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .contact-methods {
        width: 95%;
        gap: 15px;
    }

    .email-list, .social-links {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    
    .email-list h3, .social-links h3 {
        font-size: 1.3em;
    }
    
    .email-list li {
        margin-bottom: 12px;
    }
    
    .email-list li strong {
        min-width: auto;
        font-size: 0.9em;
    }
    
    .email-list a {
        font-size: 0.9em;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .indented {
        width: 95%;
        padding: 15px;
    }
    
    .translation-list, .game-list, #study ul, #skills ul {
        width: 95%;
    }
    
    .about-phone {
    flex-direction: column;
        padding: 20px;
    }
    
    .about-phone img {
        width: 120px;
        height: 120px;
    }
}

@font-face {
    font-family: 'TaiwanPearl';
    src: url('TaiwanPearl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#genshin {
    fill: #000;
  }

#crowdin-sign {
    fill: #fff;
}

#crowdin-bg {
    fill: #263238;
}

/* 音樂播放器 */
#player-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 350px;
    max-width: 90%;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#marquee-container {
    flex: 1;
    overflow: hidden;
    margin-right: 15px;
    position: relative;
}

#marquee {
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-size: 14px;
    color: #fff;
    padding: 5px 0;
}

#marquee span {
    margin-right: 15px;
    display: inline-block;
}

#marquee span:first-child {
    color: #4a90e2;
    font-weight: bold;
    position: relative;
}

#marquee span:first-child::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90e2;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#marquee span:first-child:hover::after {
    transform: scaleX(1);
}

#controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

#controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#controls button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

#controls button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

#controls button:hover::before {
    width: 100%;
    height: 100%;
}

#controls button:active {
    transform: scale(0.95);
}

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

/* 響應式調整 */
@media (max-width: 480px) {
    #player-container {
        padding: 10px 15px;
        min-width: auto;
        bottom: 10px;
    }

    #marquee {
        font-size: 12px;
    }

    #controls button {
        font-size: 16px;
        width: 30px;
        height: 30px;
    }
}

/* Game 部分樣式 */
#game {
    padding: 80px 0;
}

#game .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#game h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
}

#game h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

#game p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.1em;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.game-item:hover::before {
    transform: translateX(100%);
}

.game-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.game-image:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.game-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.game-content h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-content span {
    color: var(--text-color);
    font-size: 0.95em;
    opacity: 0.9;
    display: block;
    transition: all 0.3s ease;
}

.game-item:hover .game-content h3 {
    transform: translateX(5px);
}

.game-item:hover .game-content span {
    transform: translateX(5px);
    opacity: 1;
}

/* 響應式調整 */
@media (max-width: 768px) {
    #game h2 {
        font-size: 2rem;
    }

    #game p {
        font-size: 1rem;
    }

    .game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-item {
        padding: 20px;
    }

    .game-image {
        width: 60px;
        height: 60px;
    }

    .game-content h3 {
        font-size: 1.2em;
    }

    .game-content span {
        font-size: 0.9em;
    }
}

/* Services 部分樣式 */
#services {
    padding: 80px 0;
}

#services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
}

#services h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.indented {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.indented:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.indented h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

ul.indented-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.indented-list li {
    margin: 0;
}

.indented-list li a {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.indented-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indented-list li a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.indented-list li a:hover::before {
    transform: scaleX(1);
}

.indented-list li p {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.indented-list li p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indented-list li p:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.indented-list li p:hover::before {
    transform: scaleX(1);
}

.copy-text {
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

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

.copy-text:hover {
    color: var(--text-color);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-text:hover::after {
    width: 100%;
}

.other-text {
    display: block;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: normal;
}

/* 響應式調整 */
@media (max-width: 768px) {
    #services h2 {
        font-size: 2rem;
    }

    .indented {
        padding: 20px;
    }

    .indented h3 {
        font-size: 1.5em;
    }

    .indented-list {
        grid-template-columns: 1fr;
    }
}

/* Social 部分樣式 */
#social {
    padding: 80px 0;
}

#social .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#social h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

#social h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

#social p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#social .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 8px;
    background: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

#social .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#social .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--card-hover-color);
    border-color: rgba(255, 255, 255, 0.2);
}

#social .btn:hover::before {
    transform: translateX(100%);
}

#social .btn img {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

#social .btn:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

#social .btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: relative;
    z-index: 1;
}

#social .btn-name {
    font-weight: 600;
    font-size: 1em;
    color: var(--btn-text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#social .btn-username {
    font-size: 0.9em;
    color: var(--btn-text-color);
    opacity: 0.8;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

#social .btn:hover .btn-name {
    transform: translateX(5px);
}

#social .btn:hover .btn-username {
    transform: translateX(5px);
    opacity: 1;
}

/* 特殊社群按鈕樣式 */
#social .btn.instagram {
    background: linear-gradient(34deg, #ffc600 0%, #fe008e 50%, #7a04ff 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

#social .btn.instagram .btn-name,
#social .btn.instagram .btn-username {
    color: white;
}

#social .btn.messenger {
    background: radial-gradient(circle farthest-corner at 18% 98%, #0078ff 5%, #4b69ff 25%, #af37f0 55%, #ff557d 78%, #fa696e 83%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

#social .btn.messenger .btn-name,
#social .btn.messenger .btn-username {
    color: white;
}

#social .btn.instagram:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    background: linear-gradient(34deg, #ffc600 0%, #fe008e 50%, #7a04ff 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

#social .btn.messenger:hover {
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.4);
    background: radial-gradient(circle farthest-corner at 18% 98%, #0078ff 5%, #4b69ff 25%, #af37f0 55%, #ff557d 78%, #fa696e 83%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

#social .btn.facebook {
    background-color: #0062f8;
}

#social .btn.line {
    background-color: #00C961;
}

#social .btn.wechat {
    background-color: #00be35;
}

#social .btn.discord {
    background-color: #5561EC;
}

#social .btn.mastodon {
    background: linear-gradient(to bottom, #6a68f8 0%,#5731c7 100%);
}

#social .btn.whatsapp {
    background: rgb(55,208,107);
    background: linear-gradient(142deg, rgba(55,208,107,1) 0%, rgba(5,193,88,1) 100%);
}

#social .btn.xiaohongshu {
    background-color: #FF2741;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 響應式調整 */
@media (max-width: 768px) {
    #social h2 {
        font-size: 2.2rem;
    }

    #social p {
        font-size: 1.1em;
        padding: 0 20px;
    }

    #social .btn {
        padding: 10px 16px;
    }

    #social .btn img {
        width: 20px;
        height: 20px;
    }

    #social .btn-name {
        font-size: 0.95em;
    }

    #social .btn-username {
        font-size: 0.85em;
    }
}

#study {
    padding: 80px 0;
}

#study .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#study h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

#study h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

#study p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#study ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#study ul li {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

#study ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#study ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

#study ul li:hover::before {
    transform: translateX(100%);
}

#study ul li::after {
    content: '📚';
    font-size: 1.5em;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

#study ul li:hover::after {
    transform: scale(1.2) rotate(10deg);
}

#study ul li span {
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#study ul li:hover span {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* 響應式調整 */
@media (max-width: 768px) {
    #study h2 {
        font-size: 2rem;
    }

    #study p {
        font-size: 1rem;
    }

    #study ul {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #study ul li {
        padding: 20px;
    }

    #study ul li span {
        font-size: 1.1em;
    }
}

#skills {
    padding: 80px 0;
}

#skills .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#skills h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

#skills h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

#skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#skills ul li {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

#skills ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#skills ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

#skills ul li:hover::before {
    transform: translateX(100%);
}

#skills ul li::after {
    content: '💻';
    font-size: 1.5em;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

#skills ul li:hover::after {
    transform: scale(1.2) rotate(10deg);
}

#skills ul li span {
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#skills ul li:hover span {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* 響應式調整 */
@media (max-width: 768px) {
    #skills h2 {
        font-size: 2rem;
    }

    #skills ul {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #skills ul li {
        padding: 20px;
    }

    #skills ul li span {
        font-size: 1.1em;
    }
}

#about {
    padding: 80px 0;
    background: var(--bg-color);
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

#about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

.about-phone {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-phone:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.about-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-phone:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.about-phone:hover::before {
    transform: translateX(100%);
}

.about-phone img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-phone:hover img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-phone h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

.about-phone h2::after {
    display: none;
}

.about-phone p {
    color: var(--text-color);
    font-size: 1.2em;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.about-phone p b {
    color: var(--primary-color);
    font-weight: 600;
}

/* 響應式調整 */
@media (max-width: 768px) {
    #about h2 {
        font-size: 2rem;
    }

    .about-phone {
        padding: 30px;
        text-align: center;
    }

    .about-phone img {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .about-phone h2 {
        text-align: center;
        font-size: 1.8em;
    }

    .about-phone p {
        font-size: 1.1em;
    }
}

/* 技能專長和學習部分樣式 */
.skills-list, .study-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item, .study-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover, .study-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-item h3, .study-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.skill-level {
    font-size: 14px;
    background-color: rgba(var(--accent-color-rgb), 0.2);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    display: inline-block;
}

/* 進度條樣式 */
.progress-container {
    width: 100%;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-accent-color) 100%);
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: black;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* 學習資源樣式 */
.resources {
    margin-top: 10px;
    font-size: 14px;
}

.resources-title {
    font-weight: bold;
    color: var(--text-color);
}

.resources-list {
    list-style-type: disc;
    margin: 5px 0 0 20px;
    padding: 0;
}

.resources-list li {
    margin-bottom: 3px;
}

/* 深色模式適配 */
body.dark-mode .skill-item, 
body.dark-mode .study-item {
    background-color: rgba(30, 30, 30, 0.3);
}

body.dark-mode .skill-level {
    background-color: rgba(var(--accent-color-rgb), 0.3);
}

body.dark-mode .progress-container {
    background-color: rgba(50, 50, 50, 0.3);
}

/* 媒體查詢 */
@media (max-width: 768px) {
    .skills-list, .study-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .skills-list, .study-list {
        grid-template-columns: 1fr;
    }
}

#contact .social-icon svg .icon-fill[fill="#1877f2"] {
    fill: #1877f2;
}

body.dark-mode #contact .social-icon svg .icon-fill[fill="#1877f2"] {
    fill: #1877f2;
}

/* Facebook圖標懸停效果 */
#contact .social-icon:hover svg .icon-fill[fill="#1877f2"] {
    fill: #1877f2;
    filter: brightness(1.1);
}
