:root {
    --nice-padding: 6rem;
    --roundness-small: 1rem;
    --roundness-medium: 1.5rem;
    --roundness-large: 2rem;
    --roundness-xl: 2.5rem;
    
    /* 亮色主題，充滿活力感 */
    --primary-orange: #FF5722; /* 更有活力的橘紅色 */
    --primary-orange-light: #FF8A65; /* 較淺的橘紅色 */
    --primary-orange-dark: #E64A19; /* 較深的橘紅色 */
    --primary-orange-alpha: rgba(255, 87, 34, 0.1); /* 帶有透明度的橘紅色 */
    --primary-orange-alpha-strong: rgba(255, 87, 34, 0.2); /* 較強透明度的橘紅色 */
    
    --background-primary: #FFFFFF; /* 亮白色背景 */
    --background-secondary: #F0F2F5; /* 輕微的淺灰色 */
    --background-tertiary: #E0E2E5; /* 較深的淺灰色 */
    --background-elevated: #D0D2D5; /* 更深的淺灰色 */
    --background-glass: rgba(255, 255, 255, 0.8); /* 亮色玻璃效果 */
    
    --text-primary: #212121; /* 深色文本 */
    --text-secondary: #616161; /* 中等深色文本 */
    --text-tertiary: #9E9E9E; /* 淺色文本 */
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-orange: 0 4px 20px rgba(255, 87, 34, 0.2); /* 更新陰影顏色 */

    color-scheme: light; /* 設置為亮色模式 */
    /* Frosted glass variables (light theme) */
    --glass-blur: 12px; /* default blur for frosted elements */
    --glass-sat: 180%; /* saturation for backdrop */
    --glass-tint: rgba(255, 255, 255, 0.65); /* light tint used for overlays */
    --glass-border: rgba(255, 255, 255, 0.55); /* subtle glass border */
    --glass-inner-shadow: rgba(0,0,0,0.06);
}

/* 黑色模式變數 */
[data-theme="dark"] {
    --background-primary: #0D1117; /* 深色背景 */
    --background-secondary: #161B22; /* 較淺的深色背景 */
    --background-tertiary: #21262D; /* 更淺的深色背景 */
    --background-elevated: #30363D; /* 最淺的深色背景 */
    --background-glass: rgba(13, 17, 23, 0.8); /* 深色玻璃效果 */
    
    --text-primary: #F0F6FC; /* 亮色文本 */
    --text-secondary: #C9D1D9; /* 中等亮色文本 */
    --text-tertiary: #8B949E; /* 淺色文本 */
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-orange: 0 4px 20px rgba(255, 87, 34, 0.3);

    color-scheme: dark;
}

* {
    box-sizing: border-box;
    /* Smooth transitions for all interactive elements */
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

span {
    font-family: 'SF Pro Display', 'Space Grotesk', -apple-system, BlinkMacMacSystemFont, sans-serif;
}

body {
    font-family: 'SF Pro Display', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling animation */
html {
    scroll-behavior: smooth;
}

/* Section padding adjustments for navbar */
#more, #discord, #about, #join {
    padding-top: 6rem;
    margin-top: -6rem;
}

/* Banner with One UI styling */
.banner {
    display: flex;
    position: fixed;
    background: var(--background-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    width: 100%;
    height: 3.5rem;
    z-index: 200;
    font-size: 1.1rem;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--background-tertiary);
    animation: slideDown 0.6s ease-out;
}

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

/* Main headline */
.headline {
    margin-top: 2rem;
    color: var(--text-primary);
    font-size: 3.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

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

/* 音量控制動畫 - 已移除，不再需要 */
/* 保留其他動畫 */
@keyframes volumePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Desktop navbar with One UI glass effect */
.desktop_navbar {
    position: fixed;
    display: flex;
    height: 4.5rem;
    width: 100%;
    top: 0;
    background: var(--background-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 150;
    align-items: center; /* 垂直置中 */
    justify-content: center; /* 讓中間連結置中 */
    border-bottom: 1px solid var(--background-tertiary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.desktop_navbar_logo_img {
    width: 60px; /* 放大 Logo */
    padding-right: 20px;
    border-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop_navbar_logo_img:hover {
    transform: scale(1.1) rotate(5deg);
}

.desktop_navbar_link {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--roundness-small);
    position: relative;
    overflow: hidden;
    /* Removed border */
    border: none; 
    outline: none;
    display: flex; /* 讓內容水平排列 */
    align-items: center; /* 垂直居中對齊 */
}

.desktop_navbar_link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-orange-alpha), transparent);
    transition: left 0.5s ease;
}

.desktop_navbar_link:hover::before {
    left: 100%;
}

.desktop_navbar_link:hover {
    color: var(--primary-orange);
    background-color: var(--primary-orange-alpha);
    transform: translateY(-2px);
}

/* Navbar link icons */
.desktop_navbar_link i {
    margin-right: 0.5rem; /* Icon and text spacing */
    color: var(--text-secondary); /* Default icon color */
    transition: color 0.3s ease;
}

.desktop_navbar_link:hover i {
    color: var(--primary-orange); /* Icon color on hover */
}


.desktop_navbar_link2 {
    padding: 0;
    color: var(--text-primary);
    text-decoration: none;
    margin-left: auto;
    margin-right: 1rem;
}

.desktop_navbar_link2_div {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    /* Removed border */
    border: none;
    border-radius: var(--roundness-large);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
    outline: none; /* Removed outline */
}

.desktop_navbar_link2_div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-orange-light), var(--primary-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop_navbar_link2_div:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.4); /* 更新陰影顏色 */
}

/* 黑色模式切換按鈕 - 桌面版 */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: #e5e5e5; /* 淺灰底 */
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
    margin-right: 1rem;
    outline: none;
    box-shadow: var(--shadow-light);
}

.theme-toggle:hover {
    background: #d9d9d9;
    transform: scale(1.05);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #ffffff; /* 白色滑塊 */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.theme-toggle[data-theme="dark"]::before {
    transform: translateX(25px);
    background: #000000; /* 黑色滑塊 */
}

.theme-toggle i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.theme-toggle .sun-icon {
    left: 6px;
    color: #000000; /* 黑色圖示 */
    opacity: 1;
}

.theme-toggle .moon-icon {
    right: 6px;
    color: #ffffff; /* 白色圖示 */
    opacity: 0;
}

.theme-toggle[data-theme="dark"] .sun-icon {
    opacity: 0;
}

.theme-toggle[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* 深色下切換底色加深 */
[data-theme="dark"] .theme-toggle {
    background: #111111;
}

/* 音量控制容器 */
.volume-control-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.5rem; /* 添加間距 */
}

/* 音量切換按鈕 */
.volume-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--background-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-light);
    flex-shrink: 0; /* 防止按鈕被壓縮 */
}

.volume-toggle:hover {
    background: var(--primary-orange-alpha);
    color: var(--primary-orange);
    transform: scale(1.05);
}

.volume-toggle i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* 音量滑塊容器 - 直接顯示在導航欄中 */
.volume-slider-wrapper {
    display: flex;
    align-items: center;
    min-width: 120px;
    max-width: 150px;
    opacity: 0; /* 默認隱藏 */
    visibility: hidden;
    transform: translateX(-20px); /* 向左邊隱藏 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible; /* 改為visible，避免切到拖拽點 */
    padding: 10px 0; /* 添加上下內邊距，確保拖拽點不被切到 */
    height: 40px; /* 設置固定高度，確保有足夠空間 */
}

.volume-control-container:hover .volume-slider-wrapper {
    opacity: 1; /* 懸停時顯示 */
    visibility: visible;
    transform: translateX(0); /* 滑入到正確位置 */
}

/* 音量滑塊 */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--background-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to right, var(--primary-orange) 0%, var(--primary-orange) 50%, var(--background-tertiary) 50%, var(--background-tertiary) 100%);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    border-radius: 50%; /* 改為圓形 */
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid var(--background-primary); /* 添加白色邊框 */
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-orange);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    border-radius: 50%; /* 改為圓形 */
    cursor: pointer;
    border: 2px solid var(--background-primary); /* 添加白色邊框 */
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-orange);
}

/* 音量數值顯示 - 隱藏 */
.volume-value {
    display: none; /* 隱藏音量百分比 */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    min-width: 40px;
}

/* 響應式設計 - 手機版音量控制 */
@media (max-width: 768px) {
    .volume-control-container {
        display: none;
    }
}

/* Mobile navbar */
.mobile_navbar {
    display: none;
    background: var(--background-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    width: 100%;
    z-index: 150;
    min-height: 3.5rem;
    border-bottom: 1px solid var(--background-tertiary);
}

.mobile_navbar_logo_img {
    position: absolute;
    height: 40px; /* 放大 Logo */
    padding-left: 1rem;
    top: 0.5rem;
    left: 0;
    border-radius: var(--roundness-small);
}

.mobile_navbar #mobile_navbar_links {
    display: none;
    margin-top: 3.5rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--background-glass);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
}

/* Mobile menu open animation */
.mobile_navbar #mobile_navbar_links.is-open {
    display: flex;
    animation: menuReveal 0.28s ease-out both;
}

/* 當模態視窗開啟時，強制隱藏手機版選單，避免同時顯示 */
body.modal-open .mobile_navbar #mobile_navbar_links {
    display: none !important;
}

/* 模態關閉動畫期間也隱藏，避免關閉瞬間閃出 */
body.modal-closing .mobile_navbar #mobile_navbar_links {
    display: none !important;
}

/* Stagger children on open */
.mobile_navbar #mobile_navbar_links.is-open > * {
    opacity: 0;
    transform: translateY(-6px);
    animation: linkFade 0.3s ease-out forwards;
}

.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(1) { animation-delay: 0.05s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(2) { animation-delay: 0.09s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(3) { animation-delay: 0.13s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(4) { animation-delay: 0.17s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(5) { animation-delay: 0.21s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(6) { animation-delay: 0.25s; }
.mobile_navbar #mobile_navbar_links.is-open > *:nth-child(7) { animation-delay: 0.29s; }

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

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

/* Mobile menu close animation */
.mobile_navbar #mobile_navbar_links.is-closing {
    display: flex;
    animation: menuHide 0.22s ease-in both;
}

.mobile_navbar #mobile_navbar_links.is-closing > * {
    opacity: 1;
    transform: translateY(0);
    animation: linkFadeOut 0.18s ease-in forwards;
}

.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(1) { animation-delay: 0s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(2) { animation-delay: 0.02s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(3) { animation-delay: 0.04s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(4) { animation-delay: 0.06s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(5) { animation-delay: 0.08s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(6) { animation-delay: 0.10s; }
.mobile_navbar #mobile_navbar_links.is-closing > *:nth-child(7) { animation-delay: 0.12s; }

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

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

.mobile_navbar_link {
    padding: 0.75rem 1.5rem;
    width: 90%;
    text-align: center;
    margin: 0.25rem 0;
    border-radius: var(--roundness-small);
    transition: all 0.3s ease;
    /* Removed border */
    border: none;
    outline: none;
    display: flex; /* 讓內容水平排列 */
    align-items: center; /* 垂直居中對齊 */
    justify-content: center; /* 水平居中對齊 */
}

.mobile_navbar_link:hover {
    background-color: var(--primary-orange-alpha);
}

.mobile_navbar a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Mobile Navbar link icons */
.mobile_navbar_link i {
    margin-right: 0.5rem;
    color: var(--text-primary); /* Adjust for mobile contrast */
    transition: color 0.3s ease;
}

.mobile_navbar_link:hover i {
    color: var(--primary-orange);
}

.mobile_navbar .icon {
    background-color: var(--background-secondary);
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0.95rem;
    border-radius: 0 0 0 var(--roundness-small);
    transition: all 0.3s ease;
}

.mobile_navbar .icon:hover {
    background-color: var(--primary-orange-alpha);
}

/* 黑色模式切換按鈕 - 手機版 */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    width: 90%;
    margin: 0.25rem auto;
    border-radius: var(--roundness-small);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    background: #e5e5e5; /* 淺灰底 */
    color: #000000; /* 黑色文字 */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mobile-theme-toggle:hover {
    background-color: #d9d9d9;
    transform: translateY(-2px);
}

.mobile-theme-toggle i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-theme-toggle .toggle-text {
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-theme-toggle {
    background: #111111; /* 深色底 */
    color: #ffffff; /* 白色文字 */
}

/* 手機版音量控制 */
.mobile-volume-control {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin: 0.5rem auto;
    width: 90%;
    /* 移除背景色 */
    border-radius: var(--roundness-small);
    /* 去掉邊框 */
    transition: all 0.3s ease;
}

.mobile-volume-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.mobile-volume-header i {
    margin-right: 0.5rem;
    color: var(--primary-orange);
}

.mobile-volume-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--primary-orange) 0%, var(--primary-orange) 50%, var(--background-elevated) 50%, var(--background-elevated) 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-orange);
    border-radius: 50%; /* 改為圓形 */
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid var(--background-primary); /* 添加白色邊框 */
}

.mobile-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-orange);
}

.mobile-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-orange);
    border-radius: 50%; /* 改為圓形 */
    cursor: pointer;
    border: 2px solid var(--background-primary); /* 添加白色邊框 */
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.mobile-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-orange);
}

.mobile-volume-value {
    display: none; /* 隱藏手機版音量百分比 */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 40px;
}

/* Main container */
.mainflex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background: transparent;
    min-height: 100vh;
}

/* Hero section */
.main1 {
    padding-top: calc(var(--nice-padding) + 2rem);
    display:flex;
    width: 100%;
    height: 100%; /* 保持原有的高度設定 */
    align-self: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5) url('bp.png');
    background-blend-mode: darken;
    background-repeat: no-repeat;
    background-position: center center; /* 確保圖片居中 */
    background-size: cover; /* 自動放大圖片以填滿整個元素，同時保持圖片比例 */
    position: relative;
    z-index: 2;
}

.main1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 請確保 'bp.png' 圖片的路徑正確，否則將無法顯示 */
    /* Apply global frosted overlay for hero */
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    opacity: 0.30; /* make background image softer under the frosted layer */
    z-index: 0;
    /* 如果你希望 ::before 偽元素也使用相同的背景圖片並填滿，可以取消註釋下面兩行 */
    /* background: url('bp.png') no-repeat center center; */
    /* background-size: cover; */
}


.main1 > * {
    position: relative;
    z-index: 1;
}

.main1_logo_a {
    margin-bottom: calc(var(--nice-padding) / 2);
    cursor: default;
    display: flex; /* 使用 flexbox 進行內部居中 */
    justify-content: center; /* 水平居中 */
    width: 100%; /* 確保佔用全部寬度以便居中 */
}

.main1_logo {
    display: block;
    max-width: 45rem;
    width: 80%; /* 調整為響應式寬度 */
    height: auto; /* 自動調整高度以保持比例 */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(var(--shadow-medium));
    border-radius: 0; /* 移除圓角，保持logo原始形狀 */
}

.main1_logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(var(--shadow-heavy)) hue-rotate(15deg);
}

.main1_description {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: calc(var(--nice-padding) / 2);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.main1_player_stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: calc(var(--nice-padding) / 2);
    color: white;
}

.player_stat {
    background: var(--background-glass);
    color: var(--primary-orange);
    padding: 1rem 1.5rem;
    border-radius: var(--roundness-medium);
    text-align: center;
    min-width: 130px;
}

.stat_value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat_label {
    font-size: 1rem;
    font-weight: 400;
}

.main1_actcent {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main1_ipcopier {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    /* Removed border */
    border: none;
    border-radius: var(--roundness-xl);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-orange);
    outline: none; /* Removed outline */
}

.main1_ipcopier::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.main1_ipcopier:hover::before {
    left: 100%;
}

.main1_ipcopier:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4); /* 更新陰影顏色 */
}

.main1_ipcopier:active {
    transform: translateY(-1px) scale(1.02);
}

.main1_popup {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--primary-orange);
    color: var(--text-primary);
    border-radius: var(--roundness-medium);
    padding: 0.75rem 1.5rem;
    margin-top: -11rem;
    z-index: 100;
    box-shadow: var(--shadow-heavy);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, 0) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.main1_downarrow {
    opacity: 0.6;
    height: 2rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(var(--shadow-light));
}

.main1_downarrow:hover {
    opacity: 1;
    transform: translateY(5px) scale(1.1);
    filter: drop-shadow(var(--shadow-medium));
}

/* Features section */
.main2 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    width: 100%;
    position: relative;
    z-index: 2;
}

.main2_features_div {
    padding-top: 2rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap; /* 允許換行，適應不同螢幕大小 */
    gap: 1.5rem;
    max-width: 100%;
    padding-bottom: 2rem;
}

.main2_feature {
    flex: 1 1 20rem; /* 允許彈性縮放，最小寬度20rem */
    display: flex;
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    min-height: 26rem;
    max-width: 20rem; /* 最大寬度限制 */
    border-radius: var(--roundness-large);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--background-elevated);
}

.main2_feature:hover {
    background: var(--background-elevated);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange-alpha);
}

.main2_feature_img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-radius: var(--roundness-large) var(--roundness-large) 0 0;
    transition: transform 0.4s ease;
}

.main2_feature:hover .main2_feature_img {
    transform: scale(1.05);
}

.main2_feature_headline {
    margin: 1.5rem 1rem 0.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.main2_feature_text {
    margin: 0 1.5rem 1.5rem;
    text-align: center;
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

/* Discord section */
.main4 {
    min-height: 10rem;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    position: relative;
    z-index: 2;
}

.main4_dc_widget {
    border-radius: var(--roundness-large);
    border: none;
    box-shadow: var(--shadow-medium);
}

.main4_dc_div {
    margin: 2rem;
    display: flex;
    flex-direction: row;
    background: var(--background-glass);
    border-radius: var(--roundness-large);
    max-width: 50rem;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--background-tertiary);
    transition: all 0.3s ease;
}

.main4_dc_div:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange-alpha);
}

.main4_dc_description_div {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.main4_dc_description_title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.main4_dc_description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.main4_dc_button_a {
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    border-radius: var(--roundness-medium);
    margin-top: auto;
    align-self: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-orange);
    overflow: hidden;
    position: relative;
    /* Removed border */
    border: none;
    outline: none;
}

.main4_dc_button_a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main4_dc_button_a:hover::before {
    left: 100%;
}

.main4_dc_button_a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.4); /* 更新陰影顏色 */
}

.main4_dc_button {
    padding: 0.75rem 2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Team section */
.main5 {
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

/* New container for horizontal admin list */
/* 請確保您的 HTML 中，所有 .main5_admins_div 元素都包含在一個具有此 class 的父元素中，例如：
   <div class="main5_admin_list_container">
       <div class="main5_admins_div">...</div>
       <div class="main5_admins_div">...</div>
       <!-- 更多管理員卡片 -->
   </div>
*/
.main5_admin_div { /* Changed from .main5_admin_list_container to target the existing div */
    display: flex;
    flex-wrap: wrap; /* 允許卡片換行 */
    justify-content: center; /* 在容器中居中卡片 */
    gap: 2rem; /* 卡片之間的間距 */
    max-width: 1200px; /* 卡片行的最大寬度 */
    margin: 2rem auto; /* 居中容器並添加垂直邊距 */
    padding: 0 1rem; /* 為較小螢幕添加水平內邊距 */
}

.main5_admins_div {
    display: flex; /* 確保內部佈局為彈性盒模型 */
    flex-direction: column; /* 保持卡片內部內容垂直堆疊 */
    align-items: center; /* 在卡片內部水平居中內容 */
    width: 24rem; /* 為每個管理員卡片設置固定寬度 */
    min-height: auto; /* 允許高度根據內容調整 */
    background: var(--background-glass);
    border-radius: var(--roundness-large);
    padding: 1.5rem; /* 調整內邊距以獲得更好的外觀 */
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--background-elevated);
    transition: all 0.3s ease;
}

.main5_admins_div:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange-alpha);
}

/* Removed specific flex-direction for type1 and type2 as cards are now always column-oriented */
.main5_admins_dev_type1,
.main5_admins_dev_type2 {
    flex-direction: column; /* 確保這些在卡片內部始終為垂直方向 */
    padding-right: 0;
    padding-left: 0;
}

.main5_admins_img {
    border-radius: var(--roundness-medium);
    max-width: 70%; /* 增加垂直卡片內部圖片的大小 */
    height: 80px; /* 自動調整高度以保持比例 */
    align-self: center; /* 居中圖片 */
    margin-bottom: 1rem; /* 圖片和文字之間的間距 */
    transition: transform 0.3s ease;
}

.main5_admins_div:hover .main5_admins_img {
    transform: scale(1.05);
}

.main5_admins_description_div {
    display: flex;
    justify-content: center;
    max-width: 100%; /* 佔用卡片的全部寬度 */
    padding: 0; /* 移除其他規則可能添加的內邊距 */
    flex-direction: column;
    align-items: center; /* 居中文本內容 */
    text-align: center; /* 文本居中對齊 */
}

.main5_admins_description_rank {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main5_admins_description_rank_owner {
    color: var(--primary-orange);
}

.main5_admins_description_rank_admin {
    color: #FF6B6B;
}

.main5_admins_description_title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 1rem;
}

.main5_admins_description_title:hover {
    color: var(--primary-orange);
    transform: scale(1.05);
}

.main5_admins_description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Supporters section */
.main5_supporter_div {
    display: flex;
    max-width: 1000px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main5_supporters_div {
    width: 24rem;
    min-height: 18rem;
    background: var(--background-glass);
    border-radius: var(--roundness-large);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--background-elevated);
    transition: all 0.3s ease;
}

.main5_supporters_div:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange-alpha);
    transform: translateY(-5px);
}

.main5_supporters_img {
    border-radius: var(--roundness-medium);
    max-width: 25%;
    max-height: 100%;
    align-self: center;
    margin: 1.5rem;
    transition: transform 0.3s ease;
}

.main5_supporters_div:hover .main5_supporters_img {
    transform: scale(1.1);
}

.main5_supporters_description_div {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 2rem 1.5rem 1rem;
    flex-direction: column;
}

.main5_supporters_description_rank {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main5_supporters_description_rank_supporter {
    color: var(--primary-orange-light);
}

.main5_supporters_description_title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 0.5rem;
}

.main5_supporters_description_title:hover {
    color: var(--primary-orange);
    transform: scale(1.05);
}

.main5_supporters_description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Join section */
.main3 {
    background: var(--background-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

/* 深色模式下將半透明白背景換成深色半透明 */
[data-theme="dark"] .main2 {
    background: rgba(22, 27, 34, 0.7);
}

[data-theme="dark"] .main3 {
    background: rgba(13, 17, 23, 0.7);
}

[data-theme="dark"] .main4 {
    background: rgba(13, 17, 23, 0.7);
}

[data-theme="dark"] .main5 {
    background: rgba(22, 27, 34, 0.7);
}

.main3_join_div_div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem;
}

.main3_join_div {
    display: flex;
    flex-direction: column;
    width: 22rem;
    min-height: 10rem;
    background: var(--background-secondary);
    border-radius: var(--roundness-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--background-tertiary);
    transition: all 0.3s ease;
}

.main3_join_div:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-orange-alpha);
    transform: translateY(-5px);
}

.main3_join_title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.main3_join_content_div {
    display: flex;
    flex-direction: row;
    background: var(--background-glass);
    flex-grow: 1;
    border-radius: var(--roundness-medium);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.main3_join_categories {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 1.2rem;
    line-height: 1.8;
    border-right: 3px solid var(--primary-orange);
    padding-right: 1rem;
    color: var(--text-secondary);
}

.main3_join_values {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8;
    border-left: 3px solid var(--primary-orange);
    padding-left: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.copyright_div {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6); /* 半透明以啟用背景模糊 */
    border-top: 1px solid var(--background-tertiary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.copyright {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Images with rounded corners */
img {
    border-radius: var(--roundness-medium);
    transition: transform 0.3s ease;
}

.status {
    width: 500px;
    max-width: 80%;
    border-radius: 15px;
}

/* Responsive design - Enhanced for all screen sizes */
@media only screen and (max-width: 1200px) {
    .main2_features_div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .main2_feature {
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 280px;
        max-width: calc(33.333% - 1rem);
    }
    
    .main5_admin_div {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .main5_admins_div {
        flex: 0 1 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media only screen and (max-width: 1024px) {
    .main2_features_div {
        padding: 2rem 1rem;
    }
    
    .main2_feature {
        flex: 1 1 calc(50% - 1rem);
        min-width: 250px;
        max-width: calc(50% - 1rem);
    }
    
    .main5_admins_div {
        flex: 0 1 calc(50% - 1rem);
        min-width: 250px;
    }
    
    .main3_join_div_div {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .main3_join_div {
        flex: 0 1 calc(50% - 1rem);
        min-width: 250px;
    }
}

@media only screen and (max-width: 900px) {
    :root {
        --nice-padding: 3rem;
    }
    
    .headline {
        font-size: 3rem;
    }
    
    .main1_logo {
        max-width: 35rem;
        width: 85%;
    }
    
    .main1_description {
        font-size: 2.5rem;
    }
    
    .main2_features_div {
        gap: 1.2rem;
        padding: 2rem 1rem;
    }
    
    .main2_feature {
        flex: 1 1 calc(50% - 0.8rem);
        min-width: 220px;
        max-width: calc(50% - 0.8rem);
    }
}

@media only screen and (max-width: 768px) {
    :root {
        --nice-padding: 2rem;
    }
    
    .desktop_navbar {
        display: none;
    }
    
    .mobile_navbar {
        display: flex;
    }
    
    /* Avoid hero being covered by fixed mobile navbar */
    .main1 {
        padding-top: calc(var(--nice-padding) + 4.5rem);
    }
    
    .headline {
        font-size: 2.5rem;
        margin: 0 1rem;
        line-height: 1.2;
    }
    
    .main1_logo {
        max-width: 18rem;
        width: 90%;
        /* Prevent float animation from intersecting navbar on small screens */
        animation: none;
    }
    
    .main1_description {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Mobile: horizontal scrollable stats row */
    .main1_player_stats {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .player_stat {
        min-width: 200px;
        padding: 1.5rem;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    
    .stat_value {
        font-size: 1.8rem;
    }
    
    .main1_ipcopier {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .main2_features_div {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .main2_feature {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        min-height: 20rem;
        flex: 1 1 auto;
    }
    
    .main2_feature_img {
        height: 40%;
    }
    
    .main5_admin_div {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .main5_admins_div {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        flex: none;
    }
    
    .main3_join_div_div {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1rem;
    }
    
    .main3_join_div {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        flex: none;
    }
    
    .main4_dc_div {
        flex-direction: column;
        margin: 1rem;
    }
    
    .main4_dc_widget {
        height: 20rem;
        width: 100%;
    }
    
    .status {
        width: 90%;
        max-width: 400px;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --nice-padding: 1.5rem;
    }
    
    .headline {
        font-size: 2rem;
        margin: 0 0.5rem;
    }
    
    .main1_logo {
        max-width: 16rem;
        width: 95%;
    }
    
    .main1_description {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .main1_player_stats {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .player_stat {
        min-width: 180px;
        padding: 1.2rem;
    }
    
    .stat_value {
        font-size: 1.5rem;
    }
    
    .stat_label {
        font-size: 0.9rem;
    }
    
    .main1_ipcopier {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .main2 {
        padding: 2rem 1rem;
    }
    
    .main2_features_div {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .main2_feature {
        max-width: 20rem;
        min-height: 18rem;
        flex: 1 1 auto;
    }
    
    .main2_feature_headline {
        font-size: 1.2rem;
        margin: 1rem 0.8rem 0.3rem;
    }
    
    .main2_feature_text {
        font-size: 0.9rem;
        margin: 0 1.2rem 1.2rem;
    }
    
    .main5 {
        padding: 2rem 1rem;
    }
    
    .main5_admin_div {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .main5_admins_div {
        max-width: 20rem;
        padding: 1.2rem;
    }
    
    .main5_admins_img {
        max-width: 60%;
        height: 60px;
    }
    
    .main5_admins_description_rank {
        font-size: 1.1rem;
    }
    
    .main5_admins_description_title {
        font-size: 1.2rem;
    }
    
    .main5_admins_description {
        font-size: 0.9rem;
    }
    
    .main3 {
        padding: 2rem 1rem;
    }
    
    .main3_join_div_div {
        gap: 1rem;
        margin: 0.5rem;
    }
    
    .main3_join_div {
        max-width: 20rem;
        padding: 1.5rem;
    }
    
    .main3_join_title {
        font-size: 1.4rem;
    }
    
    .main3_join_categories,
    .main3_join_values {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .main3_join_content_div {
        padding: 1rem;
    }
    
    .main4_dc_description_title {
        font-size: 1.5rem;
    }
    
    .main4_dc_description {
        font-size: 1rem;
    }
    
    .mobile_navbar_link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mobile_navbar_link i {
        margin-right: 0.3rem;
    }
}

@media only screen and (max-width: 480px) {
    :root {
        --nice-padding: 1rem;
    }
    
    .headline {
        font-size: 1.8rem;
        margin: 0 0.3rem;
    }
    
    .main1_logo {
        max-width: 14rem;
        width: 98%;
    }
    
    .main1_description {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding: 0 0.3rem;
    }
    
    .main1_player_stats {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .player_stat {
        min-width: 160px;
        padding: 1rem;
    }
    
    .stat_value {
        font-size: 1.3rem;
    }
    
    .stat_label {
        font-size: 0.8rem;
    }
    
    .main1_ipcopier {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .main2_feature {
        max-width: 18rem;
        min-height: 16rem;
    }
    
    .main2_feature_headline {
        font-size: 1.1rem;
        margin: 0.8rem 0.6rem 0.2rem;
    }
    
    .main2_feature_text {
        font-size: 0.8rem;
        margin: 0 1rem 1rem;
    }
    
    .main5_admins_div {
        max-width: 18rem;
        padding: 0.9rem;
    }
    
    .main5_admins_img {
        max-width: 55%;
        height: 50px;
    }
    
    .main5_admins_description_rank {
        font-size: 1rem;
    }
    
    .main5_admins_description_title {
        font-size: 1.1rem;
    }
    
    .main5_admins_description {
        font-size: 0.8rem;
    }
    
    .main3_join_div {
        max-width: 18rem;
        padding: 1.2rem;
    }
    
    .main3_join_title {
        font-size: 1.3rem;
    }
    
    .main3_join_categories,
    .main3_join_values {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .main3_join_content_div {
        padding: 0.8rem;
    }
    
    .main4_dc_description_title {
        font-size: 1.3rem;
    }
    
    .main4_dc_description {
        font-size: 0.9rem;
    }
    
    .mobile_navbar_link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .mobile_navbar_link i {
        margin-right: 0.2rem;
    }
}

@media only screen and (max-width: 400px) {
    .headline {
        font-size: 1.7rem;
    }
    
    .main1_logo {
        max-width: 13rem;
    }
    
    .main1_description {
        font-size: 1.2rem;
    }
    
    .player_stat {
        min-width: 150px;
        padding: 0.9rem;
    }
    
    .stat_value {
        font-size: 1.2rem;
    }
    
    .stat_label {
        font-size: 0.75rem;
    }
    
    .main1_ipcopier {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .main2_feature {
        max-width: 17rem;
        min-height: 15rem;
    }
    
    .main5_admins_div {
        max-width: 17rem;
        padding: 0.9rem;
    }
    
    .main3_join_div {
        max-width: 17rem;
        padding: 1.1rem;
    }
}

@media only screen and (max-width: 360px) {
    .headline {
        font-size: 1.6rem;
    }
    
    .main1_logo {
        max-width: 12rem;
    }
    
    .main1_description {
        font-size: 1.1rem;
    }
    
    .player_stat {
        min-width: 140px;
        padding: 0.8rem;
    }
    
    .stat_value {
        font-size: 1.1rem;
    }
    
    .stat_label {
        font-size: 0.7rem;
    }
    
    .main1_ipcopier {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .main2_feature {
        max-width: 16rem;
        min-height: 14rem;
    }
    
    .main5_admins_div {
        max-width: 16rem;
        padding: 0.8rem;
    }
    
    .main3_join_div {
        max-width: 16rem;
        padding: 1rem;
    }
    
    .main3_join_categories,
    .main3_join_values {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .main3_join_content_div {
        padding: 0.8rem;
    }
    
    .status {
        width: 98%;
        max-width: 300px;
    }
}

@media only screen and (max-width: 320px) {
    .headline {
        font-size: 1.5rem;
    }
    
    .main1_logo {
        max-width: 11rem;
    }
    
    .main1_description {
        font-size: 1rem;
    }
    
    .player_stat {
        min-width: 130px;
        padding: 0.7rem;
    }
    
    .stat_value {
        font-size: 1rem;
    }
    
    .stat_label {
        font-size: 0.65rem;
    }
    
    .main1_ipcopier {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .main2_feature {
        max-width: 15rem;
        min-height: 13rem;
    }
    
    .main5_admins_div {
        max-width: 15rem;
        padding: 0.7rem;
    }
    
    .main3_join_div {
        max-width: 15rem;
        padding: 0.9rem;
    }
    
    .main3_join_categories,
    .main3_join_values {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .main3_join_content_div {
        padding: 0.7rem;
    }
    
    .status {
        width: 99%;
        max-width: 280px;
    }
}

/* Landscape orientation for mobile */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .main1 {
        padding-top: calc(var(--nice-padding) + 1rem);
        min-height: 100vh;
    }
    
    .main1_logo {
        max-width: 12rem;
        margin-bottom: 1rem;
    }
    
    .main1_description {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .main1_player_stats {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .player_stat {
        min-width: 120px;
        padding: 0.8rem;
    }
    
    .stat_value {
        font-size: 1.2rem;
    }
    
    .stat_label {
        font-size: 0.7rem;
    }
    
    .main1_ipcopier {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Ultra-wide screens */
@media only screen and (min-width: 1400px) {
    .main2_features_div {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .main5_admin_div {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .main3_join_div_div {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .headline {
        font-size: 4rem;
    }
    
    .main1_logo {
        max-width: 50rem;
    }
    
    .main1_description {
        font-size: 3.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .main1_logo,
    .main2_feature_img,
    .main5_admins_img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Background Interactive Responsive Design */
@media only screen and (max-width: 768px) {
    .floating-particle {
        animation-duration: 6s; /* 加快動畫速度 */
    }
    
    .energy-ring {
        width: 60px !important;
        height: 60px !important;
    }
    
    .tech-grid {
        background-size: 30px 30px; /* 縮小網格 */
        opacity: 0.2;
    }
    
    .holographic-line {
        height: 0.5px; /* 細化線條 */
    }
    
    .mouse-follower {
        width: 15px;
        height: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .floating-particle {
        animation-duration: 4s;
        opacity: 0.4; /* 降低透明度 */
    }
    
    .energy-ring {
        width: 40px !important;
        height: 40px !important;
    }
    
    .tech-grid {
        background-size: 25px 25px;
        opacity: 0.15;
    }
    
    .holographic-line {
        opacity: 0.3;
    }
    
    .mouse-follower {
        width: 12px;
        height: 12px;
    }
}

/* 低性能設備優化 */
@media (prefers-reduced-motion: reduce) {
    .floating-particle,
    .energy-ring,
    .holographic-line,
    .tech-grid {
        animation: none !important;
    }
    
    .background-interactive {
        display: none; /* 完全隱藏背景動畫 */
    }
}

/* 高對比度模式 */
@media (prefers-contrast: high) {
    .floating-particle {
        background: var(--primary-orange-alpha-strong) !important;
        opacity: 0.8 !important;
    }
    
    .energy-ring {
        border-color: var(--primary-orange) !important;
        opacity: 0.6 !important;
    }
    
    .holographic-line {
        background: var(--primary-orange-alpha-strong) !important;
        opacity: 0.8 !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .main1_logo {
        animation: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Print styles */
@media print {
    .desktop_navbar,
    .mobile_navbar,
    .main1_ipcopier,
    .main1_downarrow {
        display: none !important;
    }
    
    .main1 {
        background: none !important;
        color: black !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Background Interactive Elements */
.background-interactive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.6);
    backdrop-filter: blur(2px);
    animation: floatParticle 8s ease-in-out infinite;
    opacity: 1;
    /* 確保粒子可見 */
    min-width: 8px;
    min-height: 8px;
    /* 添加陰影效果 */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.8);
    border: 2px solid rgba(255, 87, 34, 0.8);
}

.floating-particle:nth-child(odd) {
    background: rgba(255, 138, 101, 0.7);
    animation-duration: 12s;
    animation-delay: -2s;
    border-color: rgba(255, 138, 101, 0.9);
}

.floating-particle:nth-child(3n) {
    background: rgba(255, 87, 34, 0.8);
    animation-duration: 10s;
    animation-delay: -4s;
    border-color: rgba(255, 87, 34, 1);
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 87, 34, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 87, 34, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.6;
}

.energy-ring {
    position: absolute;
    border: 3px solid rgba(255, 87, 34, 0.6);
    border-radius: 50%;
    animation: energyPulse 6s ease-in-out infinite;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.energy-ring:nth-child(2) {
    animation-delay: -2s;
    border-color: rgba(255, 87, 34, 0.8);
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.6);
}

.energy-ring:nth-child(3) {
    animation-delay: -4s;
    border-color: rgba(255, 138, 101, 0.7);
    box-shadow: 0 0 20px rgba(255,138, 101, 0.5);
}

.holographic-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 87, 34, 0.8), 
        rgba(255, 87, 34, 0.6), 
        transparent);
    animation: lineScan 4s ease-in-out infinite;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.holographic-line:nth-child(even) {
    animation-delay: -2s;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 138, 101, 0.7), 
        rgba(255, 87, 34, 0.5), 
        transparent);
    box-shadow: 0 0 10px rgba(255, 138, 101, 0.4);
}

.mouse-follower {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 87, 34, 0.8);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.6), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.6);
}

.mouse-follower.active {
    opacity: 1;
}

/* Animations for background elements */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(45px, 45px); /* 放慢約10%的位移 */
    }
}

@keyframes energyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lineScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(90vw); /* 距離略短，視覺上更慢 */
        opacity: 0;
    }
}

/* Additional animations and effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-orange-alpha);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-orange-alpha), 0 0 30px var(--primary-orange-alpha);
    }
}

.main1_logo {
    animation: float 6s ease-in-out infinite;
}

/* Scroll-triggered animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pulse effect for interactive elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.main1_ipcopier:focus {
    animation: pulse 0.3s ease-in-out;
    /* Removed outline as per request */
    outline: none; 
}

/* Enhanced glass morphism effect */
.desktop_navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 87, 34, 0.1) 0%, /* 更新顏色 */
        rgba(255, 87, 34, 0.05) 50%, /* 更新顏色 */
        rgba(255, 87, 34, 0.1) 100%); /* 更新顏色 */
    pointer-events: none;
}

/* Frosted/glass utility classes (reusable) */
/* Dark theme variations */
[data-theme="dark"] {
    --glass-tint: rgba(13, 17, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.03);
    --glass-inner-shadow: rgba(0,0,0,0.6);
    --glass-blur: 10px;
    --glass-sat: 140%;
}

/* Core frosted utility - subtle, works on cards, navs, modals */
.frosted,
.glass-card {
    background: linear-gradient(180deg, var(--glass-tint), rgba(255,255,255,0.35));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow: 0 6px 24px var(--glass-inner-shadow);
    border-radius: var(--roundness-medium);
}

/* Stronger, more opaque glass (for elevated UI) */
.glass-strong {
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.7));
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(calc(var(--glass-sat) + 40%));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(calc(var(--glass-sat) + 40%));
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* Accent glass variant with theme tint */
.glass-accent {
    background: linear-gradient(135deg, rgba(255,87,34,0.08), rgba(255,87,34,0.03));
    border: 1px solid rgba(255,87,34,0.06);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow: 0 6px 24px rgba(255,87,34,0.06);
}

/* Lightweight helper for small translucent chips */
.glass-chip {
    background: rgba(255,255,255,0.6);
    border-radius: calc(var(--roundness-small) * 0.7);
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(6px) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(6px) saturate(var(--glass-sat));
    color: var(--text-primary);
}

/* Dark variants fallback colors are handled by CSS vars defined in [data-theme="dark"] */

/* Accessibility: reduce heavy backdrop effects when user prefers reduced transparency */
@media (prefers-reduced-transparency: reduce) {
    .frosted,
    .glass-card,
    .glass-strong,
    .glass-accent,
    .glass-chip {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: var(--background-elevated) !important;
        border: 1px solid var(--background-tertiary) !important;
        box-shadow: var(--shadow-medium) !important;
    }
}

/* prefers-reduced-motion: avoid animating heavy glass transitions */
@media (prefers-reduced-motion: reduce) {
    .frosted,
    .glass-card,
    .glass-strong,
    .glass-accent,
    .glass-chip {
        transition: none !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-light);
}

/* Selection styling */
::selection {
    background: var(--primary-orange-alpha-strong);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary-orange-alpha-strong);
    color: var(--text-primary);
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
    /* Removed default outline, relying on custom hover/active effects */
    outline: none; 
}

/* Enhanced hover effects for cards */
.main2_feature,
.main5_admins_div,
.main5_supporters_div,
.main3_join_div {
    position: relative;
    overflow: hidden;
}

.main2_feature::before,
.main5_admins_div::before,
.main5_supporters_div::before,
.main3_join_div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-orange-alpha), 
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.main2_feature:hover::before,
.main5_admins_div:hover::before,
.main5_supporters_div:hover::before,
.main3_join_div:hover::before {
    left: 100%;
}

.main2_feature > *,
.main5_admins_div > *,
.main5_supporters_div > *,
.main3_join_div > * {
    position: relative;
    z-index: 2;
}

.joingif {
    width: 400px ;
    max-width: 100%;
}

/* 音量控制動畫 - 簡化版本 */
@keyframes volumePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.user-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.5rem; /* 添加間距 */
}

.avator {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--background-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-light);
    flex-shrink: 0; /* 防止按鈕被壓縮 */
}

.avator-img {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--background-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-light);
    flex-shrink: 0; /* 防止按鈕被壓縮 */
}

.avator:hover {
    background: var(--primary-orange-alpha);
    color: var(--primary-orange);
    transform: scale(1.05);
}

.user-container a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-container a:hover {
    color: var(--primary-orange);
}

.user-container {
    position: fixed;
    right: 20px;
}

.mobile-user-container {
    position: fixed;
    top: 7.5px;
    right: 50px;
}

/* 用戶下拉選單樣式 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--background-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--background-tertiary);
    border-radius: var(--roundness-medium);
    box-shadow: var(--shadow-heavy);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 200;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-orange-alpha);
    color: var(--primary-orange);
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--primary-orange);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.dropdown-item.logout i {
    color: #ff6b6b;
}

.dropdown-item.logout:hover i {
    color: #ff5252;
}

.dropdown-divider {
    height: 1px;
    background: var(--background-tertiary);
    margin: 0.25rem 0;
}

/* 手機版用戶下拉選單樣式 */
.mobile-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--background-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--background-tertiary);
    border-radius: var(--roundness-medium);
    box-shadow: var(--shadow-heavy);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 200;
    overflow: hidden;
}

.mobile-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 響應式設計 - 手機版下拉選單調整 */
@media (max-width: 768px) {
    .user-dropdown {
        display: none;
    }
    
    .mobile-user-dropdown {
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .dropdown-item i {
        margin-right: 0.6rem;
        width: 14px;
    }
}

/* 深色模式適配 */
[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .mobile-user-dropdown {
    background: rgba(13, 17, 23, 0.9);
    border-color: var(--background-elevated);
}

[data-theme="dark"] .dropdown-divider {
    background: var(--background-elevated);
}

/* 下拉選單動畫效果 */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.user-dropdown.show,
.mobile-user-dropdown.show {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.user-dropdown:not(.show),
.mobile-user-dropdown:not(.show) {
    animation: dropdownSlideOut 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 模態窗口樣式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--background-tertiary);
    border-radius: var(--roundness-large);
    box-shadow: var(--shadow-heavy);
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--background-tertiary);
    background: rgba(255, 255, 255, 0.8);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: var(--primary-orange-alpha);
    color: var(--primary-orange);
    transform: scale(1.1);
}

.modal-content {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* 基本資訊樣式 */
.profile-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: var(--roundness-medium);
    border: 3px solid var(--primary-orange);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.profile-avatar-img:hover {
    transform: scale(1.05);
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--roundness-small);
    border: 1px solid var(--background-tertiary);
    transition: all 0.3s ease;
}

.profile-item:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-orange-alpha);
    transform: translateX(5px);
}

.profile-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 0.9rem;
}

.profile-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.profile-value.uuid {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copy-btn {
    background: var(--primary-orange-alpha);
    border: none;
    color: var(--primary-orange);
    padding: 0.5rem;
    border-radius: var(--roundness-small);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.copy-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

/* 贊助紀錄樣式 */
.donations-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.donations-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange-alpha), var(--primary-orange-alpha-strong));
    border-radius: var(--roundness-medium);
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.donations-table-container {
    overflow-x: hidden;
    border-radius: var(--roundness-medium);
    border: 1px solid var(--background-tertiary);
    background: var(--background-secondary);
}

.donations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-primary);
}

.donations-table thead {
    background: var(--background-tertiary);
}

.donations-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-orange);
    font-size: 0.95rem;
}

.donations-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--background-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    vertical-align: top;
}

.donations-table tbody tr {
    transition: all 0.3s ease;
}

.donations-table tbody tr:hover {
    background: var(--primary-orange-alpha);
    transform: scale(1.01);
}

.donations-table .amount {
    font-weight: 600;
    color: var(--primary-orange);
    text-align: right;
}

.donations-table .item {
    font-weight: 500;
    color: var(--text-primary);
}

.donations-table .message {
    color: var(--text-secondary);
    font-style: italic;
    max-width: 200px;
    word-wrap: break-word;
}

/* 深色模式適配 */
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal {
    background: rgba(13, 17, 23, 0.95);
    border-color: var(--background-elevated);
}

[data-theme="dark"] .modal-header {
    background: rgba(22, 27, 34, 0.8);
    border-color: var(--background-elevated);
}

[data-theme="dark"] .profile-item {
    background: var(--background-tertiary);
    border-color: var(--background-elevated);
}

[data-theme="dark"] .donations-table-container {
    border-color: var(--background-elevated);
    background: var(--background-tertiary);
}

[data-theme="dark"] .donations-table {
    background: var(--background-secondary);
}

[data-theme="dark"] .donations-table thead {
    background: var(--background-elevated);
}

[data-theme="dark"] .donations-table td {
    border-color: var(--background-elevated);
}

/* 響應式設計 */
@media (max-width: 1100px) {
    .modal {
        width: 95vw;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-label {
        min-width: auto;
    }
    
    .donations-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .donations-table {
        font-size: 0.8rem;
    }
    
    .donations-table th,
    .donations-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .donations-table .message {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 98vw;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .profile-avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .donations-table th,
    .donations-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .donations-table .message {
        max-width: 120px;
    }
}

/* 模態窗口動畫 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

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

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

.modal-overlay.show {
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay.show .modal {
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay.closing {
    animation: modalFadeOut 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay.closing .modal {
    animation: modalSlideOut 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 複製提示動畫 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}