:root {
    /* 深色模式配色方案 */
    --primary: #ED7A05;
    /* 明亮的橘色 */
    /* #34AFCE   */
    /* 明亮的青色 */
    --bg-body: #0f172a;
    /* 極深藍色背景 */
    --bg-card: #1e293b;
    /* 稍淺的卡片背景 */
    --bg-card-light: #34AFCE;
    /* 明亮的卡片背景 */
    --bg-nav: rgba(15, 23, 42, 0.9);
    --text-main: #f8fafc;
    /* 近乎白色的主文字 */
    --text-muted: #94a3b8;
    /* 灰色的輔助文字 */
    --border: #334155;
    /* 深色邊框 */
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

/* 導覽列：加入毛玻璃效果 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    gap: 8px;
    font-size: 1.2rem;
}

.logo-icon {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
}

.lang-select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
}

.container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.profile-container {
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card-light);
    /* 增加照片邊框感 */
}

.badge {
    position: absolute;
    bottom: 5px;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: -1px;
}

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

.hero-text .bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    margin-top: 60px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    text-align: center;
    border-radius: 16px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}


.flickr-photo {
    display: block;
    width: calc(100%);
    /* 四分之一寬，扣掉 gap */
    height: 375px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

/* Timeline */
.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--card-shadow);
}

.timeline-item .date {
    float: right;
    background: var(--border);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-main);
}

.timeline-item h3 {
    margin: 0;
    font-size: 1.25rem;
}

.company {
    color: var(--primary);
    font-weight: 600;
    margin: 5px 0 15px;
}

.timeline-item p {
    color: var(--text-muted);
}

/* CTA & Footer */
.cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 24px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
}



/* 語言切換動畫 */
.content-section {
    display: none;
}

.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}