body {
    background-color: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px;
}

header {
    position: sticky;
    top: 0; /* stick to the top */
    z-index: 1000; /* ensure it stays above other content */
    display: flex;
    justify-content: space-between; /* pushes items to edges */
    align-items: center; /* vertically center them */
    padding: 1rem 2rem; /* some spacing */
    background-color: #fff; /* optional, for better visibility */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optional subtle shadow */
}

.content {
    max-width: 1200px; /* limit content width for readability */
    margin: 0 auto;
    padding: 0 2rem;
}

header h1 {
    margin: 0; /* remove default margin */
    font-size: 1.5rem;
}

#menuToggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    position: relative; /* to help with focus styles if needed */
    z-index: 10; /* stay on top */
}  

/* Hide by default */
#top_nav_reveal {
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 100vh;
    background: #eacfe0;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
}

/* Show when active */
#top_nav_reveal.visible {
    transform: translateX(0);
}

/* Close button styling */
#closeMenu {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin: 0 auto 1rem 7px;
}

/* Menu styling */
#top_nav_reveal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#top_nav_reveal ul li {
    padding: 0.5rem 1rem;
}

#top_nav_reveal li a {
    display: block;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    color: black;
}

#top_nav_reveal li a:hover {
    background-color: #fcf2f9;
}

/* Landing page styling */
.landing {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 垂直居中 */
    align-items: center;      /* 水平居中 */
    background: black; /* 防止加载时空白 */
}

.landing figure {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    z-index: 1;
}

.landing figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.landing article {
    position: relative;
    z-index: 2;
}

.landing article h1 a {
    font-size: 3rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
    /* text-shadow: 0 0 8px rgba(0,0,0,0.7); */
}

.landing.hidden {
    display: none;
}

#Bio {
    display: flex;
    flex-direction: column;
}

#Bio figure {
    max-width: 600px;
    margin: 0 auto;
}

#Bio img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

#bio-caption p {
    text-align: center;
    font-size: 0.8rem;
    color: #828282;
    margin: 0 0;
}

#Contact ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#Contact li {
    background: #f0f4f8;
    min-width: 260px;
    padding: 1rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

#Contact li i {
    color: #3498db;
    font-size: 1.2rem;
}

#Contact a {
    color: #4e87c1;
    text-decoration: none;
}

#Contact a:hover {
    color: #0f91e7;
    text-decoration: underline;
}

footer {
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

h3 {
    margin: 0 0;
}

.latin {
    font-family: 'Gravitas One', cursive;
}

.chinese {
    font-family: 'Noto Serif SC', serif;
}