:root {
    --bg-deep-black: #0A0A0A;
    --card-anthropic: #F9F6F0;
    --text-main: #1A1A1A;
    --text-light: #FDFCF8;
    --accent-orange: #FF4F00;
}

/* 基础盒模型保护（好习惯，不影响布局） */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep-black);
    color: var(--text-light);
    font-family: 'Libre Baskerville', serif;
    margin: 0;
}

#vectorField {
    position: fixed;
    top: 0; left: 0;
    z-index: -1;
}

header nav {
    display: flex;
    justify-content: space-between;
    padding: 3rem 18%;
    font-weight: 700;
}

.nav-right a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-light);
}

/* Centered Hero Layout */
.hero-card {
    background: var(--card-anthropic);
    color: var(--text-main);
    margin: 2rem 18%;
    padding: 5rem 4rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text { flex: 1.6; }

/* Centering the Headshot */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 35px;
    object-fit: cover;
    border: 3px solid var(--accent-orange);
    position: absolute;
    transition: opacity 0.6s ease-in-out, transform 0.4s ease;
    cursor: pointer;
}

/* Hover Swap Logic */
.img-back { opacity: 0; }
.hero-image:hover .img-front { opacity: 0; }
.hero-image:hover .img-back { opacity: 1; }
.hero-image:hover img { transform: scale(1.02); }

h1 {
    font-size: 5.5rem;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1.05;
}

.sub-headline {
    color: var(--accent-orange);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.2rem 0;
    white-space: nowrap; /* 保持一行 */
}

/* 小窗口时适当缩小字体，防止溢出（保留，桌面下也有用） */
@media (max-width: 900px) {
    .sub-headline {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .sub-headline {
        font-size: 1.2rem;
    }
}

.bio {
    font-size: 1.7rem;
    max-width: 650px;
}

/* Rest of Content */
.section-container { padding: 0 18%; }
.section-title {
    color: var(--text-light);
    margin: 4.5rem 0 1.2rem 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.info-card {
    background: var(--card-anthropic);
    color: var(--text-main);
    padding: 4rem;
    border-radius: 16px;
    margin-bottom: 4rem;
}

.entry h3 { font-size: 2.1rem; margin-bottom: 0.5rem; }
.entry p { font-size: 1.4rem; color: #222; }

.links a {
    font-size: 1.4rem;
    margin-right: 2rem;
    color: var(--text-main);
    font-weight: 700;
}

footer { padding: 6rem 18%; border-top: 1px solid #333; opacity: 0.8; }

/* Footer navigation (保留，但不加手机适配) */
.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-left a,
.footer-center a {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 700;
}
.footer-center a:last-child {
    margin-right: 0;
}
.footer-left a:hover,
.footer-center a:hover {
    opacity: 0.9;
}
.footer-right {
    color: var(--text-light);
    opacity: 0.8;
}

/* Roadmap Specific Styles (合并重复，取后面一套) */
.roadmap-container {
    padding: 2rem 18% 8rem 18%;
    position: relative;
}
.roadmap-container::before {
    content: '';
    position: absolute;
    left: 18.5%;
    top: 180px;
    bottom: 150px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-orange), #333);
    z-index: 0;
}
.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}
.roadmap-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-orange);
    border-radius: 50%;
    margin-top: 5rem;
    box-shadow: 0 0 15px var(--accent-orange);
    flex-shrink: 0;
}
.edu-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.school-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}
.edu-meta {
    font-size: 1.2rem;
    color: var(--accent-orange);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.edu-degree {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-main);
}
.edu-details {
    font-size: 1.4rem;
    color: #444;
    max-width: 800px;
}

/* Nav Active Indicator */
.nav-right a.active {
    color: var(--accent-orange) !important;
    border-bottom: 2px solid var(--accent-orange);
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: var(--accent-orange);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}
#backToTop:hover {
    background-color: #e04500;
    transform: scale(1.1);
}

/* 图片自适应（好习惯，保留） */
img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}
