﻿        /* ========== Reset & Base ========== */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: Georgia, 'Times New Roman', Times, serif;
            color: #374151;
            line-height: 1.7;
            overflow-x: hidden;
            background: #fff;
            font-variant-numeric: lining-nums tabular-nums;
            font-feature-settings: "lnum" 1, "tnum" 1;
        }
        a { color: #2563eb; text-decoration: none; transition: color 0.3s; }
        a:hover { color: #1d4ed8; }
        ::selection { background: #bfdbfe; color: #1e3a5f; }

        /* ========== Navigation ========== */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0;
            z-index: 1000;
            height: 56px;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.4s ease, box-shadow 0.4s ease;
        }
        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
        }
        .nav-inner {
            display: flex; align-items: center; gap: 2.2rem;
        }
        .nav-links {
            display: flex; gap: 2rem; list-style: none;
        }
        .nav-links a {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.92rem; font-weight: 500;
            padding: 0.4rem 0; position: relative;
            letter-spacing: 0.01em;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
            transition: color 0.3s;
        }
        .navbar.scrolled .nav-links a {
            color: #4b5563; text-shadow: none;
        }
        .nav-links a.active {
            font-weight: 700;
            color: #fff;
        }
        .navbar.scrolled .nav-links a.active {
            color: #111827;
        }
        .nav-links a::after {
            content: ''; position: absolute; bottom: -2px; left: 0;
            width: 0; height: 2px;
            background: #2563eb; border-radius: 1px;
            transition: width 0.3s ease;
        }
        .nav-links a:hover::after,
        .nav-links a.active::after { width: 100%; }

        /* Hamburger */
        .nav-toggle {
            display: none; background: none; border: none; cursor: pointer;
            padding: 4px; position: absolute; right: 1.5rem;
            z-index: 1100;
            width: 36px; height: 36px;
            display: none; align-items: center; justify-content: center;
        }
        .nav-toggle span {
            display: block; width: 22px; height: 2px;
            background: #fff;
            border-radius: 1px;
            position: absolute;
            transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                        opacity 0.3s ease,
                        background 0.3s ease;
        }
        .nav-toggle span:nth-child(1) { transform: translateY(-7px); }
        .nav-toggle span:nth-child(2) { transform: translateY(0); }
        .nav-toggle span:nth-child(3) { transform: translateY(7px); }
        /* Hamburger → X morph */
        .nav-toggle.active span:nth-child(1) {
            transform: translateY(0) rotate(45deg) scale(1.1);
        }
        .nav-toggle.active span:nth-child(2) {
            opacity: 0; transform: scale(0.2);
        }
        .nav-toggle.active span:nth-child(3) {
            transform: translateY(0) rotate(-45deg) scale(1.1);
        }
        .navbar.scrolled .nav-toggle span { background: #374151; }

        /* ========== Hero Section ========== */
        .hero {
            position: relative;
            height: 61.8vh; min-height: 380px;
            overflow: hidden;
            display: flex; align-items: center; justify-content: center;
        }
        .hero-bg {
            position: absolute; top: -20%; left: 0;
            width: 100%; height: 140%;
            will-change: transform;
            z-index: 0;
            overflow: hidden;
            cursor: zoom-in;
        }
        .hero-bg img {
            position: absolute; left: 0; top: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: translateY(var(--hero-parallax, 0px)) scale(1.035);
            transform-origin: center center;
        }
        .hero-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.40) 0%,
                rgba(0, 0, 0, 0.0) 45%,
                rgba(0, 0, 0, 0.20) 100%
            );
            z-index: 1;
            pointer-events: none;
        }
        .hero-shadow {
            position: relative;
            z-index: 2;
            height: 30px;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0), rgba(255, 255, 255, 0));
        }
        @media (max-width: 768px) {
            .hero-shadow { display: none; }
        }
        .hero-content {
            position: relative; z-index: 2;
            display: flex; align-items: center; justify-content: center;
            max-width: 880px; width: 95%;
        }
        .profile-photo {
            width: 200px; height: 250px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
            flex-shrink: 0;
            position: relative; z-index: 3;
        }
        .hero-card {
            background: rgba(55, 55, 55, 0.62);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(6px);
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 16px;
            padding: 1.8rem 2.4rem 1.8rem 3.4rem;
            margin-left: -28px;
            position: relative; z-index: 1;
        }
        .hero-card h1 {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 2.1rem; font-weight: 700;
            color: #fff; margin-bottom: 0.4rem;
            letter-spacing: -0.01em;
        }
        .hero-card .hero-subtitle {
            color: rgba(255, 255, 255, 0.82);
            font-size: 1rem; line-height: 1.85;
        }
        .hero-subtitle-short { display: none; }
        .hero-icons {
            display: flex; gap: 1.6rem; margin-top: 1.6rem;
        }
        .hero-icons a {
            display: flex; flex-direction: column; align-items: center;
            color: rgba(255, 255, 255, 0.78);
            font-size: 0.72rem; font-weight: 500;
            letter-spacing: 0.02em;
            transition: color 0.3s, transform 0.3s;
        }
        .hero-icons a:hover { color: #fff; transform: translateY(-3px); }
        .hero-icons a i { font-size: 1.55rem; margin-bottom: 0.35rem; }
        .photo-caption {
            position: absolute; bottom: 1.2rem; right: 1.8rem;
            color: rgba(255, 255, 255, 0.80);
            font-size: 0.78rem; font-style: italic;
            z-index: 2; letter-spacing: 0.01em;
        }
        .scroll-hint {
            position: absolute; bottom: 2rem; left: 50%;
            transform: translateX(-50%);
            z-index: 2; animation: bounce 2s ease infinite;
        }
        .scroll-hint i {
            color: rgba(255, 255, 255, 0.45);
            font-size: 1.4rem;
        }
        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(8px); }
        }

        /* ========== Section Common ========== */
        .section {
            padding: 1.15rem 1rem;
        }
        .section-inner {
            max-width: 1100px; margin: 0 auto;
        }
        .section-title {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 2rem; font-weight: 600;
            color: #1a2744; margin-bottom: 0.28rem;
        }
        .section-divider {
            width: 100%; height: 1px;
            background: #e5e7eb;
            border-radius: 1px; margin-bottom: 0.62rem;
        }
        .section-alt {
            background: #f8fafc;
        }
        #about {
            padding-top: 0.62rem;
        }

        /* ========== About ========== */
        .about-text {
            font-size: 1.06rem;
            line-height: 1.46;
        }
        .about-text p {
            margin-bottom: 0.52rem;
            line-height: 1.46;
        }
        .about-text p:last-child { margin-bottom: 0; }

        /* ========== News ========== */
        .news-window {
            max-height: 142px;
            position: relative;
        }
        .news-list {
            list-style: none;
            max-height: 142px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 1.2rem;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .news-list::-webkit-scrollbar {
            display: none;
        }
        .news-scrollbar {
            position: absolute;
            top: 8px;
            right: 0.1rem;
            bottom: 8px;
            width: 4px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.16);
        }
        .news-scrollbar-thumb {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            min-height: 30px;
            border-radius: 999px;
            background: rgba(26, 58, 107, 0.48);
            cursor: grab;
            transition: background 0.2s ease, width 0.2s ease, left 0.2s ease;
        }
        .news-scrollbar-thumb:hover,
        .news-scrollbar-thumb.dragging {
            left: -1px;
            width: 6px;
            background: rgba(26, 58, 107, 0.70);
        }
        .news-scrollbar-thumb.dragging {
            cursor: grabbing;
        }
        .news-scrollbar.is-hidden {
            display: none;
        }
        .news-item {
            display: flex; gap: 1.2rem;
            padding: 0.34rem 0;
            border-bottom: 1px solid #e5e7eb;
            border-radius: 6px;
            line-height: 1.38;
            transition: transform 0.22s ease,
                        background 0.22s ease,
                        box-shadow 0.22s ease,
                        padding-left 0.22s ease;
        }
        .news-item:hover {
            transform: translateX(0px);
            padding-left: 0.32rem;
            background: rgba(37, 99, 235, 0.035);
            box-shadow: inset 2px 0 0 rgba(37, 99, 235, 0.55);
        }
        .news-item:last-child { border-bottom: none; }
        .news-date {
            font-weight: 600; color: #2563eb;
            min-width: 110px; white-space: nowrap;
            font-size: 0.9rem;
            font-style: normal;
        }
        .news-text { font-size: 0.94rem; }
        @media (prefers-reduced-motion: reduce) {
            .profile-photo,
            .news-item,
            .hero-icons a {
                transition: none;
            }
        }

        /* ========== Publications ========== */
        .pub-year {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 1.5rem; font-weight: 700;
            color: #1a3a6b; margin-bottom: 0.3rem;
        }
        .pub-year-line {
            width: 100%; height: 3px;
            background: #c0860e; border-radius: 1px;
            margin-bottom: 0.6rem;
        }
        .pub-card {
            display: flex; gap: 1.8rem;
            align-items: center;
            padding: 0.45rem 0;
            min-height: 168px;
            border-bottom: 1px solid #e5e7eb;
        }
        .pub-card:last-child { border-bottom: none; }
        .pub-cover {
            width: 260px; height: 146px; flex-shrink: 0;
            overflow: hidden;
            display: flex; align-items: center;
        }
        .pub-cover img {
            width: 100%; height: 100%;
            object-fit: contain; display: block;
        }
        .pub-cover-placeholder {
            width: 100%; min-height: 145px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex; align-items: center; justify-content: center;
            color: rgba(255, 255, 255, 0.82);
            font-size: 0.9rem; font-weight: 600;
            letter-spacing: 0.05em;
        }
        .pub-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .pub-title {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 1.15rem; font-weight: 700;
            color: #1a2744; margin-bottom: 0.5rem;
            line-height: 1.5;
        }
        .pub-venue-tag {
            display: inline-flex; align-items: center;
            margin-right: 0.45rem;
            padding: 0.08rem 0.45rem;
            border-radius: 4px;
            background: #dcfce7;
            color: #166534;
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1.4;
            vertical-align: 0.08rem;
            white-space: nowrap;
        }
        .pub-links {
            display: flex; gap: 0.6rem; margin-bottom: 0.55rem; flex-wrap: wrap;
        }
        .pub-links a {
            display: inline-flex; align-items: center; gap: 0.3rem;
            font-size: 0.82rem; font-weight: 500;
            padding: 0.2rem 0.6rem;
            border-radius: 4px; border: 1px solid #c0860e;
            color: #c0860e; transition: all 0.25s;
        }
        .pub-links a:hover { background: #c0860e; color: #fff; }
        .pub-links a i { font-size: 0.76rem; }
        .pub-meta-row {
            display: flex; align-items: flex-start; gap: 0.5rem;
            font-size: 0.92rem; color: #374151;
            margin-bottom: 0.3rem; line-height: 1.6;
        }
        .pub-meta-row i {
            color: #6b7280; margin-top: 0.28rem;
            font-size: 0.82rem; flex-shrink: 0;
        }
        .pub-meta-row strong { color: #111827; }
        .pub-meta-row em {
            color: #6b7280; font-style: italic;
        }

        /* ========== Awards ========== */
        .awards-list { list-style: none; }
        .award-item {
            display: flex; align-items: baseline; gap: 0.75rem;
            padding: 0.45rem 0;
            border-bottom: 1px solid #e5e7eb;
            font-size: 0.94rem;
            line-height: 1.36;
        }
        .award-item:last-child { border-bottom: none; }
        .award-detail { color: #6b7280; font-size: 0.84rem; }

        /* ========== Footer ========== */
        footer {
            padding: 2.5rem 1rem;
            text-align: center;
            color: #9ca3af; font-size: 0.82rem;
            border-top: 1px solid #f0f0f0;
            letter-spacing: 0.01em;
        }

        /* ========== Hero Expand State ========== */
        .hero {
            transition: height 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                        min-height 0.95s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .hero.expanded {
            height: 100vh; min-height: 100vh;
        }
        .hero.expanded .hero-bg {
            top: 0; height: 100%;
        }
        .hero.expanded .hero-bg img {
            width: 100%; height: 100%;
            object-fit: cover;
            top: 0 !important;
            transform: translateY(0) scale(1);
        }
        .hero.expanded .hero-overlay {
            background: rgba(0, 0, 0, 0.15);
            transition: background 0.75s ease;
        }
        .hero.expanded .hero-content {
            opacity: 0;
            transform: translateY(-12px);
            pointer-events: none;
            transition: opacity 0.38s ease, transform 0.5s ease;
        }
        .hero-content {
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .hero.expanded .photo-caption,
        .hero.expanded .scroll-hint {
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        .hero-bg {
            transition: top 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                        height 0.95s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .hero-bg img {
            transition: top 0.6s ease;
        }
        .hero.expanded .hero-bg img {
            transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                        top 0.6s ease;
        }
        .hero-expand-hint {
            position: absolute; bottom: 1.5rem; left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.5); font-size: 0.82rem;
            z-index: 3;
            opacity: 0; pointer-events: none;
            transition: opacity 0.4s ease;
        }
        .hero.expanded .hero-expand-hint {
            opacity: 1;
        }

        /* ========== Animations ========== */
        .fade-up {
            opacity: 1; transform: translateY(0);
        }

        

/* ========== Responsive (Fixed) ========== */
        @media (max-width: 768px) {
            .hero { display: block; height: auto; min-height: 0; padding: 0; position: relative; overflow: visible; }
            .hero-bg { position: relative; top: 0; height: auto; overflow: visible; width: 100%; }
            .hero-bg img { position: static !important; top: auto !important; transform: none !important; width: 100%; height: auto; display: block; }

            .hero-content {
                position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
                width: 92%; z-index: 2; 
                display: flex; flex-direction: row; 
                align-items: center; 
                justify-content: center; /* 居中内容 */
            }
            .profile-photo { width: 110px; height: 119px; border-radius: 10px; flex-shrink: 0; }
            
            /* 修复2：缩减个人名片长度，去掉 flex: 1 */
            .hero-card {
                margin-left: -12px; margin-top: 0; border-radius: 0 10px 10px 10px;
                padding: 0.4rem 0.8rem 0.4rem 1.2rem; text-align: left; 
                flex: 0 1 auto; /* 不再强制撑满剩余空间 */
                background: rgba(40, 40, 40, 0.55); 
                backdrop-filter: blur(4px);         
                -webkit-backdrop-filter: blur(4px);
                border: 1px solid rgba(255,255,255,0.15);
            }

            .hero-card h1 { font-size: 1.1rem; margin-bottom: 0.1rem; white-space: nowrap; }
            .hero-subtitle-full { display: none !important; }
            .hero-subtitle-short { display: block !important; }
            .hero-card .hero-subtitle { font-size: 0.75rem; line-height: 1.4; }
            .hero-icons { justify-content: flex-start; gap: 0.8rem; margin-top: 0.35rem; }
            .hero-icons a { font-size: 0.6rem; }
            .hero-icons a i { font-size: 1rem; margin-bottom: 0.15rem; }
            .hero-cv-link { display: none !important; }
            .scroll-hint { display: none; }
            .photo-caption { font-size: 0.7rem; right: 1rem; bottom: 0.8rem; }

            /* ---- Compact dropdown nav popover ---- */
            .nav-links {
                position: absolute;
                top: 52px; right: 1rem;
                width: auto; min-width: 180px;
                flex-direction: column;
                gap: 0;
                padding: 0.6rem 0;
                background: rgba(255, 255, 255, 0.96);
                backdrop-filter: blur(20px) saturate(1.3);
                -webkit-backdrop-filter: blur(20px) saturate(1.3);
                border: 1px solid rgba(0, 0, 0, 0.06);
                border-radius: 12px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                            0 2px 8px rgba(0, 0, 0, 0.06);
                z-index: 1060;
                list-style: none;
                /* hidden by default */
                opacity: 0;
                transform: translateY(-8px) scale(0.96);
                transform-origin: top right;
                pointer-events: none;
                visibility: hidden;
                transition: opacity 0.3s ease,
                            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                            visibility 0s 0.3s;
                display: flex;
            }
            .nav-links.open {
                opacity: 1;
                transform: translateY(0) scale(1);
                pointer-events: auto;
                visibility: visible;
                transition: opacity 0.3s ease,
                            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                            visibility 0s 0s;
            }
            .nav-links li {
                width: 100%;
                opacity: 0;
                transform: translateY(10px);
                transition: opacity 0.28s ease, transform 0.28s ease;
            }
            .nav-links.open li {
                opacity: 1;
                transform: translateY(0);
            }
            /* Staggered animation delays */
            .nav-links.open li:nth-child(1) { transition-delay: 0.04s; }
            .nav-links.open li:nth-child(2) { transition-delay: 0.08s; }
            .nav-links.open li:nth-child(3) { transition-delay: 0.12s; }
            .nav-links.open li:nth-child(4) { transition-delay: 0.16s; }
            .nav-links.open li:nth-child(5) { transition-delay: 0.20s; }
            .nav-links.open li:nth-child(6) { transition-delay: 0.24s; }

            .nav-links a {
                color: #374151 !important;
                text-shadow: none !important;
                padding: 0.55rem 1.2rem;
                font-size: 0.92rem !important;
                font-weight: 500;
                display: block;
                letter-spacing: 0.01em;
                transition: background 0.2s, color 0.2s;
                white-space: nowrap;
            }
            .nav-links a:hover { background: rgba(37, 99, 235, 0.08); color: #2563eb !important; }
            .nav-links a.active { color: #111827 !important; font-weight: 700; }
            .nav-links a::after { display: none !important; }

            .nav-toggle { display: flex; }

            /* Mobile hero bottom shadow */
            .hero::after {
                content: '';
                position: absolute;
                bottom: -15px; left: 0; right: 0;
                height: 15px;
                background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
                z-index: 1;
                pointer-events: none;
            }
            .pub-card { flex-direction: column; align-items: stretch; min-height: 0; height: auto; }
            .pub-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; }
            .section { padding: 1.75rem 1rem; }
            .section-title { font-size: 1.52rem; }
            .section-divider { margin-bottom: 0.52rem; }
            .about-text { font-size: 1rem; line-height: 1.52; }
            .about-text p { margin-bottom: 0.52rem; line-height: 1.82; }
            .news-window,
            .news-list { max-height: 210px; }
            .news-item { flex-direction: column; gap: 0.18rem; padding: 0.42rem 0; line-height: 1.42; }
            .news-date { min-width: auto; }
            .award-item { flex-direction: column; gap: 0.16rem; padding: 0.48rem 0; line-height: 1.42; }
        }
        @media (max-width: 480px) {
            .hero-card h1 { font-size: 1rem; }
            .hero-card .hero-subtitle { font-size: 0.7rem; }
            .hero-card { padding: 0.3rem 0.6rem 0.3rem 1rem; }
            .profile-photo { width: 85px; height: 92px; }
            .hero-icons { margin-top: 0.2rem; gap: 0.6rem; }
        }
