/* 全局設定 */
:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover: rgba(255, 255, 255, 1);
    --text-main: #2d3436;
    --text-sub: #636e72;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* 深色模式支援 (可選) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
        --card-bg: rgba(40, 40, 40, 0.6);
        --card-hover: rgba(60, 60, 60, 0.9);
        --text-main: #dfe6e9;
        --text-sub: #b2bec3;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', 'Noto Sans JP', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* 語言切換按鈕 */
.lang-switch {
    margin-bottom: 30px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-sub);
    color: var(--text-sub);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--text-main);
    color: var(--bg-gradient); /* 反白效果 */
    border-color: var(--text-main);
}

/* 個人檔案 */
.profile {
    margin-bottom: 40px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

#profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#profile-bio {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.5;
}

/* 連結列表 */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(4px); /* 玻璃磨砂效果 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: var(--card-hover);
}

/* 連結內的圖片 */
.link-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm); /* 圓角處理 */
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
}

/* 連結文字區 */
.link-info {
    text-align: left;
    flex-grow: 1;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.footer {
    margin-top: 50px;
    font-size: 0.8rem;
    color: var(--text-sub);
    opacity: 0.7;
}