/* --- 變數 (舒適藍、暗色透明感) --- */
:root {
    --text-main: #e2e8f0;    
    --text-muted: #94a3b8;   
    --glass-bg: rgba(30, 41, 59, 0.4);      
    --glass-border: rgba(255, 255, 255, 0.15); 
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --bg-grad-1: #0f172a; 
    --bg-grad-2: #1e3a8a; 
}

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

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- 背景裝飾光暈 --- */
.blob {
    position: absolute;
    filter: blur(90px);
    z-index: -1;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: #3b82f6; 
    opacity: 0.25;
    top: -150px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #8b5cf6; 
    opacity: 0.2;
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
}

/* --- 佈局 --- */
.app-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    perspective: 1000px; 
}

/* --- 玻璃卡片主體 --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.1s ease-out;
    animation: fadeIn 1s ease;
}

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

/* --- 個人資料元件 --- */
.avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.05));
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.alias-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.alias-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 400;
}

/* --- Worker 預留區 --- */
.worker-placeholder {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 語言切換按鈕 --- */
.lang-toggle {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    padding: 4px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 16px;
    transition: all 0.3s ease;
    user-select: none;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    font-weight: 600;
}

/* --- 雙語顯示邏輯 --- */
/* 當 body 身上有 lang-zh 時，隱藏所有 .lang-en */
body.lang-zh .lang-en {
    display: none;
}

/* 當 body 身上有 lang-en 時，隱藏所有 .lang-zh */
body.lang-en .lang-zh {
    display: none;
}