/* ===== CSS Variables - Figma Design Colors ===== */
:root {
    /* Colors - From Figma design */
    --primary: #FFD700;
    --primary-dark: #E5C100;

    /* Background gradient colors */
    --bg-gradient-start: #FFF9E6;
    --bg-gradient-end: #FFF0F0;

    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-muted: #FFF8E7;

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;

    --border: #E0E0E0;
    --border-light: #F5F5F5;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spring Animation */
    --spring-stiffness: 52;
    --spring-damping: 15;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* 单页中各 section 锚点目标统一留出 fixed navbar 空间 */
section[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
}

/* ===== Background Gradient ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    z-index: -1;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease);
}

.nav-inner {
    max-width: 1071px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.nav-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* ===== Navbar Actions (collapse + mobile toggle) ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-collapse-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.nav-collapse-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.nav-collapse-btn:active {
    transform: translateY(0);
}

/* 收起状态：navbar 滑出视口顶部 */
.navbar.collapsed {
    transform: translateY(-100%);
}

.navbar.collapsed .nav-collapse-btn {
    /* 防止收起后仍可点击 */
    pointer-events: none;
}

/* ===== 浮动恢复按钮 ===== */
.nav-restore-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(255, 215, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.85);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
    padding: 0;
}

.nav-restore-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-restore-btn:hover {
    box-shadow:
        0 6px 22px rgba(255, 215, 0, 0.55),
        0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.06);
}

.nav-restore-btn:active {
    transform: translateY(0) scale(1);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s var(--ease);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.mobile-link:hover {
    color: var(--primary);
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    padding: 8rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-number {
    font-family: var(--font-mono);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== Hero Section (Homepage) ===== */
.hero {
    min-height: 100vh;
    padding: 7rem 3.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1071px;
    margin: 0 auto;
    align-items: start;
    position: relative;
}

.hero-blur {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: blur-pulse 8s ease-in-out infinite;
}

@keyframes blur-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-greeting {
    margin-bottom: 1rem;
}

.greeting-line {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-name .highlight-name {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-intro {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

.hero-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-intro .highlight {
    color: var(--primary);
    font-weight: 500;
}

.hero-intro .intro-closing {
    font-weight: 500;
    color: var(--text-primary);
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.role-pill {
    font-family: var(--font-body);
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--ease);
}

.role-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ===== Hero Visual ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 2rem;
}

/* ===== Photo Wheel Component ===== */
.photo-wheel-component {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dotted Grid Pattern Background */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(200, 180, 160, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 24px;
    pointer-events: none;
}

/* Ripple Container */
.ripple-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.ripple {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0.2) 50%, transparent 70%);
    pointer-events: none;
    animation: rippleExpand 1.35s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ===== Orbit Track (Dashed Circle) ===== */
.orbit-track {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1.5px dashed rgba(200, 160, 120, 0.5);
}

/* ===== Satellites Container ===== */
.satellites-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ===== Satellite Images ===== */
.satellite {
    position: absolute;
    width: 90px;
    height: 90px;
}

/* Top Satellite (12 o'clock) */
.satellite-top {
    top: 15px;
    left: 50%;
    margin-left: -45px;
}

/* Bottom Right Satellite (4 o'clock) */
.satellite-right {
    bottom: 45px;
    right: 35px;
}

/* Bottom Left Satellite (8 o'clock) */
.satellite-left {
    bottom: 45px;
    left: 35px;
}

/* Decorative Ring (for top satellite) */
.decorative-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 106px;
    height: 106px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

/* Square Base (for bottom satellites) */
.square-base {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 240, 220, 0.8) 0%, rgba(255, 220, 190, 0.6) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Satellite Photo Button */
.satellite-btn {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #FFFAF0;
    padding: 0;
    cursor: pointer;
    background: none;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(200, 160, 120, 0.2);
    transition: all 0.3s ease;
}

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

/* Satellite Overlay - 35% dark mask */
.satellite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.satellite-btn.active .satellite-overlay {
    opacity: 0;
}

.satellite-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(200, 160, 120, 0.3);
}

.satellite-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* ===== Center Main Image ===== */
.center-main-image {
    position: absolute;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatMainPhoto 6s ease-in-out infinite;
}

@keyframes floatMainPhoto {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Outer Ring - Light Orange */
.main-image-outer-ring {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255, 200, 150, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Inner Ring - White */
.main-image-inner-ring {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid #FFFFFF;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF0E0 100%);
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Image transition: 0.58s, fade in + scale down */
    transition: opacity 0.58s ease-out, transform 0.58s ease-out;
}

.main-photo.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

.main-photo.fade-in {
    opacity: 1;
    transform: scale(1);
}

.main-photo.fade-in-start {
    opacity: 0;
    transform: scale(1.05);
}

/* ===== Visual Decoration ===== */
.visual-decoration {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    border-color: var(--primary);
    animation-delay: 0s;
}

.circle-2 {
    width: 260px;
    height: 260px;
    border-color: var(--accent-light);
    animation-delay: 0.5s;
}

.circle-3 {
    width: 320px;
    height: 320px;
    border-color: var(--accent);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.25;
    }
}

/* ===== Cube Grid Animation ===== */
.cube-grid {
    position: relative;
    width: 320px;
    height: 320px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.cube-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease);
}

.cube-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.05);
    opacity: 0.4;
    transition: all 0.3s var(--ease);
}

.cube-face.front {
    transform: translateZ(20px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(20px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(20px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(20px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(20px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(20px);
}

.cube:hover .cube-face {
    opacity: 0.9;
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--accent);
}

/* Wave propagation effect */
.cube.wave .cube-face {
    background: rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
    opacity: 0.8;
}

/* Explosion effect */
.cube.explode .cube-inner {
    animation: explodeRotate 0.6s ease-out;
}

.cube.explode .cube-face {
    background: rgba(255, 215, 0, 0.5);
    border-color: var(--accent);
    opacity: 0.9;
}

@keyframes explodeRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg) scale(1.3);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) scale(1);
    }
}

/* Sparkle effect */
.cube.sparkle .cube-face {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 215, 0, 0.9);
    opacity: 1;
    animation: sparkleFlash 0.8s ease-out;
}

@keyframes sparkleFlash {
    0%, 100% {
        opacity: 0.6;
        background: rgba(255, 215, 0, 0.3);
    }
    25%, 75% {
        opacity: 1;
        background: rgba(255, 255, 255, 0.7);
    }
    50% {
        opacity: 0.8;
        background: rgba(255, 215, 0, 0.5);
    }
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.lightbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease);
    width: auto;
    height: auto;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s var(--ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

/* ===== Quick Links ===== */
.quick-links {
    max-width: 1071px;
    margin: 2rem auto 4rem;
    padding: 0 3.5rem;
}

.quick-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-links-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

.quick-links-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    min-height: 200px;
}

.quick-link:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.link-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.link-info p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.link-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s var(--ease);
    align-self: flex-end;
}

.quick-link:hover .link-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ===== About Section ===== */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}

.about-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s var(--ease);
}

.about-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

/* Interactive Cards */
.interactive-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-card .card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s var(--ease);
}

.interactive-card:hover .card-title {
    color: var(--primary);
}

.interactive-card .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
}

.interactive-card.active .card-content {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

.interactive-card .card-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.interactive-card .card-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    margin: 0 auto;
}

.interactive-card .card-photo img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.card-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s var(--ease);
}

.interactive-card:hover .card-hint {
    opacity: 1;
}

.interactive-card.active .card-hint {
    display: none;
}

/* ===== About Accordion Cards ===== */
.about-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.accordion-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s var(--ease);
}

.accordion-header:hover {
    background: var(--bg-muted);
}

.accordion-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s var(--ease);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    padding: 0 1.5rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-accordion {
        margin: 1.5rem auto 0;
        padding: 0 1.5rem;
    }

    .accordion-header {
        padding: 1rem 1.25rem;
    }

    .accordion-title {
        font-size: 1.1rem;
    }

    .accordion-content p {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ===== About HoverSlider ===== */
.hover-slider {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 2rem auto 0;
}

.hover-slider-triggers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hover-trigger {
    background: none;
    border: none;
    padding: 0.85rem 0.75rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    border-radius: 8px;
    position: relative;
}

.hover-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}

.hover-trigger.active {
    color: var(--text-primary);
}

.hover-trigger.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 2px;
}

.trigger-text {
    display: inline-block;
}

/* 字符级 stagger 动画 */
.char-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.2;
}

.char {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--char-delay, 0s);
}

.char-default {
    /* 默认在原位 */
}

.char-active {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(110%);
}

.hover-trigger.active .char-default,
.hover-trigger:hover .char-default {
    transform: translateY(-110%);
}

.hover-trigger.active .char-active,
.hover-trigger:hover .char-active {
    transform: translateY(0);
}

/* 内容框 */
.hover-slider-content-wrap {
    position: relative;
    display: grid;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    min-height: 280px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hover-slider-content-wrap:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.hover-slider-content {
    grid-column: 1;
    grid-row: 1;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    transition: clip-path 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.hover-slider-content.active {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hover-slider-content > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Education content inside slider - preserve original visual */
.hover-slider-content .edu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hover-slider-content .edu-main h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.hover-slider-content .edu-major {
    color: var(--text-secondary);
    margin: 0;
}

.hover-slider-content .edu-gpa {
    text-align: center;
}

.hover-slider-content .gpa-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.hover-slider-content .gpa-total {
    color: var(--text-muted);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .hover-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto 0;
        padding: 0 1.5rem;
    }

    .hover-slider-triggers {
        padding: 0.5rem 0;
    }

    .hover-trigger {
        font-size: 1.1rem;
        padding: 0.7rem 0.6rem;
    }

    .hover-slider-content-wrap {
        padding: 1.5rem;
        min-height: 220px;
    }
}

/* Non-interactive card icon (legacy) */
.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.education-card {
    padding: 2rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.education-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.edu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edu-main h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.edu-major {
    color: var(--text-secondary);
}

.edu-gpa {
    text-align: center;
}

.gpa-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.gpa-total {
    color: var(--text-muted);
}

/* ===== Skills Section ===== */
.skills-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    padding: 1rem 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percent {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
    border-radius: 3px;
    width: var(--fill);
    transition: width 1s var(--ease);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--ease);
}

.skill-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.competency-list {
    display: grid;
    gap: 0.75rem;
}

.competency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.check-icon {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Skills Page Vintage Theme ===== */
.skills-page {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE8D6 50%, #FFF0E0 100%);
    min-height: 100vh;
}

.skills-page .bg-gradient {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE8D6 50%, #FFF0E0 100%);
}

.skills-page .navbar {
    background: rgba(255, 248, 231, 0.95);
    border-bottom: 1px solid rgba(212, 165, 0, 0.15);
}

.skills-page .nav-brand,
.skills-page .nav-link,
.skills-page .mobile-link {
    color: #5D4E0A;
}

.skills-page .nav-link.active,
.skills-page .nav-link:hover {
    color: #D4A500;
}

.skills-page .nav-toggle span {
    background: #D4A500;
}

.skills-page .mobile-menu {
    background: rgba(255, 248, 231, 0.98);
}

/* ===== Skills Page Header ===== */
.skills-page-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.header-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    background: #FFD700;
    color: #5D4E0A;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.header-title {
    margin: 0 0 1rem;
}

.title-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: #3D3D3D;
}

.title-accent {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    font-style: italic;
    color: #D4A500;
    margin-left: 0.25em;
}

.header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: #888;
    text-transform: uppercase;
    margin: 0;
}

/* ===== Archive Cards Section ===== */
.archive-cards-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ===== Archive Card Base ===== */
.archive-card {
    display: flex;
    flex-direction: column;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Top Notch Effect */
.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 20px;
    height: 10px;
    background: inherit;
    border-radius: 0 0 50% 50%;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Card Color Variants */
.archive-mustard {
    background: linear-gradient(180deg, #E8C972 0%, #D4B84A 100%);
}

.archive-terracotta {
    background: linear-gradient(180deg, #C4785A 0%, #A86548 100%);
}

.archive-orange {
    background: linear-gradient(180deg, #E89A4A 0%, #D67F2F 100%);
}

.archive-khaki {
    background: linear-gradient(180deg, #C8B89A 0%, #B5A682 100%);
}

/* ===== Card Top (Fixed) ===== */
.card-top {
    padding: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: #3D3D3D;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D3D3D;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(61, 61, 61, 0.6);
    text-transform: uppercase;
}

/* ===== Card Marquee (Scrolling) ===== */
.card-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 1rem;
}

.marquee-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: scrollVertical var(--duration, 22s) linear infinite;
    will-change: transform;
}

@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.card-marquee:hover .marquee-list {
    animation-play-state: paused;
}

/* ===== Skill Items ===== */
.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(61, 61, 61, 0.08);
}

.skill-bullet {
    width: 4px;
    height: 4px;
    background: rgba(61, 61, 61, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
}

.skill-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #3D3D3D;
    letter-spacing: 0.05em;
}

/* ===== Card Bottom (Fixed) ===== */
.card-bottom {
    padding: 0.75rem 1.25rem;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(61, 61, 61, 0.5);
    text-transform: uppercase;
}

.bottom-dot {
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
}

/* ===== Minimalist Highlight Cards ===== */
.highlight-cards {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.highlight-card {
    background: rgba(253, 251, 247, 0.9);
    border: 1px solid #E5E0D8;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.highlight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.highlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D3D3D;
    margin: 0 0 1.5rem 0;
}

/* Score Grid (English Proficiency) */
.score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-value {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #D4A500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B6B6B;
}

/* Achievement List (Photography) */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.achievement-bullet {
    width: 6px;
    height: 6px;
    background: #D4A500;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.achievement-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #3D3D3D;
    line-height: 1.5;
}

/* Competencies Horizontal Marquee */
.competencies-marquee {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 3.5rem;
}

.competencies-marquee .section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.competencies-track {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    contain: content;
}

.competencies-content {
    display: flex;
    gap: 1rem;
    animation: scrollLeft var(--duration, 30s) linear infinite;
    will-change: transform;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.competencies-track:hover .competencies-content {
    animation-play-state: paused;
}

.competency-item {
    font-family: var(--font-mono);
    padding: 0.6rem 1.2rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.competency-item::before {
    content: '✓';
    color: var(--primary);
    font-weight: 600;
}

.competency-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-main);
}

/* ===== Photography Gallery ===== */
.photography-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    text-align: center;
}

.photography-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Photo Grid - 2 rows, 3 columns */
.photography-section .photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 2rem !important;
    width: 100%;
}

.photo-card {
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Initial grayscale effect */
    filter: grayscale(100%);
    /* Smooth transition for filter, transform */
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.photo-card:hover img {
    /* Remove grayscale on hover */
    filter: grayscale(0%);
    /* Subtle scale effect */
    transform: scale(1.02);
}

.photo-card:hover {
    /* Enhanced shadow on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Photo Lightbox ===== */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.photo-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-photo {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Fade-in animation */
    animation: lightboxFadeIn 0.3s ease-in-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Projects Section ===== */
/* ===== Projects Section ===== */
.projects-section {
    max-width: 1000px;
    margin: 2rem auto 4rem;
    padding: 0 3.5rem;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.project-item:hover {
    border-color: var(--primary);
}

.project-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 2rem;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.project-header:hover {
    background: var(--bg-muted);
}

.project-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.project-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.project-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.project-metadata {
    font-size: 0.85rem;
    color: #b8a070;
    font-style: italic;
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s var(--ease);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Project Expanded Content */
.project-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.58s ease-in-out, opacity 0.4s ease-in-out;
    position: relative;
}

.project-item.active .project-expanded {
    max-height: 2000px;
    opacity: 1;
}

.project-subtitle-bar {
    padding: 0 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.project-subtitle-bar p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Scroll Dots */
.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem 0.75rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.scroll-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Horizontal Scroll Container with Snap */
.project-scroll-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-scroll-container::-webkit-scrollbar {
    display: none;
}

.project-scroll-container {
    scroll-behavior: smooth;
}

/* Project Slide */
.project-slide {
    scroll-snap-align: start;
    min-height: 420px;
}

.slide-visual {
    background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.visual-placeholder {
    text-align: center;
    padding: 2rem;
}

.placeholder-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.placeholder-subtext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.slide-content {
    padding: 2.5rem 3rem;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #D97706;
    margin: 0 0 1.5rem 0;
}

.slide-section {
    margin-bottom: 1.5rem;
}

.slide-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: #D97706;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.slide-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

.slide-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Methodology List */
.methodology-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.methodology-list li {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    position: relative;
}

.methodology-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D97706;
    font-size: 1.1rem;
}

.methodology-list li:last-child {
    margin-bottom: 0;
}

.methodology-list li strong {
    color: #D97706;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    font-family: var(--font-mono);
    padding: 0.4rem 0.85rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--ease);
}

.tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Navigation Arrows */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s var(--ease);
    z-index: 2;
}

.scroll-nav:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.scroll-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-nav-prev {
    left: 1rem;
}

.scroll-nav-next {
    right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 0 1.5rem 2rem;
    }

    .project-header {
        padding: 1.25rem 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-metadata {
        font-size: 0.75rem;
    }

    .project-number {
        font-size: 1.25rem;
    }

    .project-subtitle-bar {
        padding: 0 1.5rem 0.75rem;
    }

    .project-slide {
        min-height: auto;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-title {
        font-size: 1.2rem;
    }

    .scroll-nav {
        display: none;
    }
    }
}

/* ===== Journey Section ===== */
.journey-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.timeline {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent-light), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
}

.timeline-card:hover {
    border-color: var(--primary);
}

.timeline-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    font-family: var(--font-mono);
    padding: 0.3rem 0.7rem;
    background: var(--bg-muted);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== Internship Expandable Cards ===== */
.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.timeline-overview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.timeline-toggle:hover {
    border-color: var(--primary);
    background: var(--bg-muted);
}

.timeline-toggle .toggle-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

.timeline-card.expanded .timeline-toggle .toggle-icon {
    transform: rotate(45deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), margin-top 0.3s var(--ease);
}

.timeline-card.expanded .timeline-details {
    max-height: 2000px;
    margin-top: 1.25rem;
}

.details-list {
    list-style: none;
    padding: 1.25rem 0 0 0;
    margin: 0;
    border-top: 1px dashed var(--border);
}

.details-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.details-list li:last-child {
    margin-bottom: 0;
}

.details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.details-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.creative-section {
    text-align: center;
}

.creative-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.creative-item {
    padding: 2rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.creative-item:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.creative-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.creative-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.creative-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--primary);
}

/* Email container with separator */
.contact-emails {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-separator {
    color: var(--text-muted);
    font-weight: 400;
}

.contact-cta {
    text-align: center;
    padding: 3rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease);
}

.qrcode-image:hover {
    transform: scale(1.05);
}

.contact-cta h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.opportunity-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.opportunity-tags span {
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.opportunity-tags span:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem 3.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .quick-links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .page-header,
    .hero,
    .quick-links,
    .about-section,
    .skills-section,
    .work-section,
    .journey-section,
    .contact-section,
    .skills-nebula,
    .photography-section,
    .competencies {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .quick-links-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Photo Wheel Component Responsive */
    .photo-wheel-component {
        width: 320px;
        height: 320px;
    }

    .orbit-track {
        width: 280px;
        height: 280px;
    }

    .satellite {
        width: 70px;
        height: 70px;
    }

    .satellite-top {
        top: 10px;
        margin-left: -35px;
    }

    .satellite-right {
        bottom: 30px;
        right: 25px;
    }

    .satellite-left {
        bottom: 30px;
        left: 25px;
    }

    .decorative-ring {
        top: -6px;
        left: -6px;
        width: 82px;
        height: 82px;
    }

    .square-base {
        width: 55px;
        height: 24px;
        bottom: -6px;
    }

    .satellite-btn {
        width: 70px;
        height: 70px;
        border-width: 4px;
    }

    .center-main-image {
        width: 170px;
        height: 170px;
    }

    .main-image-outer-ring {
        width: 155px;
        height: 155px;
        border-width: 3px;
    }

    .main-image-inner-ring {
        width: 140px;
        height: 140px;
        border-width: 6px;
    }

    /* Nebula Responsive */
    .skills-nebula {
        min-height: 400px;
    }

    .skill-cluster {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }

    .cluster-data,
    .cluster-product {
        top: auto;
        left: auto;
        right: auto;
    }

    .nebula-center {
        position: static;
        transform: none;
        margin: 0 auto 2rem;
    }

    .special-skills {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 1rem;
    }

    .special-skill {
        width: 100%;
    }

    .competency-grid {
        grid-template-columns: 1fr;
    }

    /* Photo Grid Responsive */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Archive Cards Responsive */
    .archive-cards-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem 2rem;
    }

    .archive-card {
        height: 420px;
    }

    .highlight-cards {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2rem;
        gap: 1.25rem;
    }

    .badge-main {
        font-size: 1.2rem;
    }

    .competencies-marquee {
        padding: 0 1.5rem 2rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .archive-cards-section {
        grid-template-columns: 1fr;
    }

    .archive-card {
        height: 380px;
    }
        font-size: 1.75rem;
    }

    .badge-main {
        font-size: 1.1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .competencies-content {
        gap: 0.75rem;
    }

    .competency-item {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ===== Timeline Component ===== */
.timeline-component {
    width: 100%;
    margin: 0 auto;
}

.timeline-body {
    position: relative;
}

/* 中心轴线（背景灰） */
.timeline-track-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
    overflow: visible;
    z-index: 1;
}

.timeline-track-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, var(--primary) 0%, rgba(255, 215, 0, 0.45) 60%, transparent 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 流动的高光纹理（液体感） */
.timeline-track-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%
    );
    background-size: 100% 50px;
    animation: timeline-stream 1.4s linear infinite;
    pointer-events: none;
    border-radius: 2px;
}

@keyframes timeline-stream {
    from { background-position: 0 -50px; }
    to { background-position: 0 50px; }
}

/* 液体前端的发光亮点（始终在进度条底部） */
.timeline-track-progress::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow:
        0 0 12px var(--primary),
        0 0 24px rgba(255, 215, 0, 0.9),
        0 0 48px rgba(255, 215, 0, 0.55),
        0 0 72px rgba(255, 215, 0, 0.3);
    animation: timeline-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes timeline-pulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-track-progress::before,
    .timeline-track-progress::after {
        animation: none;
    }
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 4rem;
    align-items: start;
    min-height: 220px;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

/* 中间节点 + meta（绝对定位居中） */
.timeline-entry-left {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    z-index: 3;
    padding: 0 0.5rem;
    /* 未激活时整体置灰，由 .in-view 控制 */
    opacity: 0.32;
    filter: saturate(0.35);
    transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}

.timeline-entry.in-view .timeline-entry-left,
.timeline-entry:has(.timeline-entry-content:hover) .timeline-entry-left,
.timeline-entry:has(.timeline-entry-meta:hover) .timeline-entry-left {
    opacity: 1;
    filter: saturate(1);
}

.timeline-marker {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid #C0BBA8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.timeline-entry.in-view .timeline-marker,
.timeline-entry:has(.timeline-entry-content:hover) .timeline-marker,
.timeline-entry:has(.timeline-entry-meta:hover) .timeline-marker {
    border-color: var(--primary);
    background: #FFF8DC;
    box-shadow:
        0 0 0 8px rgba(255, 215, 0, 0.18),
        0 0 24px rgba(255, 215, 0, 0.45);
}

.timeline-marker-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #B8B29F;
    transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.timeline-entry.in-view .timeline-marker-inner,
.timeline-entry:has(.timeline-entry-content:hover) .timeline-marker-inner,
.timeline-entry:has(.timeline-entry-meta:hover) .timeline-marker-inner {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.timeline-entry-meta {
    width: 100%;
}

.timeline-entry-title {
    font-family: var(--font-mono);
    font-size: 1.65rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.55rem 0;
    line-height: 1.25;
    letter-spacing: 0.02em;
    transition: color 0.4s var(--ease);
}

.timeline-entry.in-view .timeline-entry-title,
.timeline-entry:has(.timeline-entry-content:hover) .timeline-entry-title,
.timeline-entry:has(.timeline-entry-meta:hover) .timeline-entry-title {
    color: #D97706;
}

.timeline-entry-org {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.2rem 0;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

.timeline-entry-role {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: #4B5563;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* 兼容旧版单 p 副标题（fallback） */
.timeline-entry-subtitle {
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: #374151;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* 卡片：默认右侧（奇数条目：1、3） */
.timeline-entry-right {
    width: 100%;
}

.timeline-entry:nth-child(odd) .timeline-entry-right {
    grid-column: 2;
    padding: 0 1rem 0 175px;
}

.timeline-entry:nth-child(even) .timeline-entry-right {
    grid-column: 1;
    padding: 0 175px 0 1rem;
}

.timeline-entry-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.85rem 2.25rem;
    transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.55s var(--ease), transform 0.55s var(--ease);
    /* 未激活时压低对比 + 大幅下移 */
    opacity: 0.32;
    transform: translateY(40px);
    filter: saturate(0.55);
}

.timeline-entry.in-view .timeline-entry-content,
.timeline-entry-content:hover {
    opacity: 1;
    transform: translateY(0);
    filter: saturate(1);
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.12);
}

/* 已激活卡片的 hover 额外反馈 */
.timeline-entry.in-view .timeline-entry-content:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(255, 215, 0, 0.2);
}

.contribution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contribution-item {
    position: relative;
    padding-left: 1.35rem;
}

.contribution-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D97706;
}

.contribution-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #D97706;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.contribution-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.72;
    margin: 0;
}

@media (max-width: 880px) {
    .timeline-component {
        max-width: 700px;
        padding: 0 1.5rem 3rem;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-bottom: 2.5rem;
    }

    .timeline-track-bg {
        left: 18px;
        transform: none;
    }

    .timeline-entry-left {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 0 0 1rem 3rem;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        width: 36px;
        height: 36px;
    }

    .timeline-marker-inner {
        width: 10px;
        height: 10px;
    }

    .timeline-entry-title {
        font-size: 1.25rem;
    }

    .timeline-entry-subtitle,
    .timeline-entry-org {
        font-size: 0.92rem;
    }

    .timeline-entry-role {
        font-size: 0.82rem;
    }

    .timeline-entry:nth-child(odd) .timeline-entry-right,
    .timeline-entry:nth-child(even) .timeline-entry-right {
        grid-column: 1;
        padding: 0 0 0 3rem;
    }

    .timeline-entry-content {
        padding: 1.4rem 1.5rem;
    }
}

/* ===== Section Fade-in (板块级滚动淡入) ===== */
.section-fade {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

.section-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

@media (prefers-reduced-motion: reduce) {
    .section-fade,
    .section-fade.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Language Toggle (中英双语切换) ===== */
.lang-en .zh-text,
.lang-zh .en-text {
    display: none;
}

/* 中文字体栈：在 .lang-zh 作用域内覆盖字体变量，所有 var() 引用自动跟随 */
.lang-zh {
    --font-body: 'Manrope', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', sans-serif;
    --font-display: 'Playfair Display', 'Songti SC', 'Noto Serif SC', 'STSong', serif;
    --font-mono: 'DM Mono', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', monospace;
}

/* 中文行高放宽，提升可读性 */
.lang-zh body {
    line-height: 1.75;
}

/* 胶囊形语言切换按钮，样式参考 .nav-collapse-btn */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.3s var(--ease),
                color 0.3s var(--ease),
                border-color 0.3s var(--ease),
                transform 0.3s var(--ease);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 激活语言高亮：英文态 EN 加粗金色，中文态 中 加粗金色 */
.lang-en .lang-toggle .lang-label-en,
.lang-zh .lang-toggle .lang-label-zh {
    color: var(--primary);
    font-weight: 700;
}

/* hover 时整体反白，激活色保持高亮 */
.lang-toggle:hover .lang-label-en,
.lang-toggle:hover .lang-label-zh {
    color: #fff;
}

.lang-toggle .lang-sep {
    opacity: 0.5;
}

/* 中文态反转按钮内部顺序：中 在左，EN 在右 */
.lang-zh .lang-toggle {
    flex-direction: row-reverse;
}

/* 移动端按钮紧凑一点 */
@media (max-width: 768px) {
    .lang-toggle {
        padding: 0.35rem 0.7rem;
        font-size: 0.72rem;
    }
}
