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

body {
    font-family: 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #3498db;
}

main {
    margin-top: 60px;
}

section {
    padding: 4rem 2rem;
}

.hero {
    background-color: #ecf0f1;
    text-align: center;
    padding: 6rem 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.social-links p {
    margin: 1rem 0;
}

#contact a[href^="mailto"] {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a[href^="mailto"]:hover {
    color: #3498db;
}

.experience-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.experience-item {
    padding: 20px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.experience-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.experience-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.experience-item p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.experience-item .company-info {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.experience-item .responsibilities {
    margin-top: 10px;
}

.experience-item ul {
    padding-left: 20px;
}

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.education-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.education-item p {
    margin: 8px 0;
    font-size: 1rem;
}

.education-item .department {
    color: #34495e;
    font-weight: bold;
}

.education-item .date {
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

.profile-image {
    margin: 2rem auto;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
} 
.bookmarks {
    width: 80%;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.bookmark-group {
    margin-bottom: 20px;
    text-align: left;
}
.bookmark-group h3 {
    color: #555;
    border-bottom: 5px solid #eee;
    padding-bottom: 5px;
}



/* 搜索區域樣式 */

.search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-form {
    width: 100%;
}
























