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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-alt: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --github-color: #333;
    --email-color: #D44638;
    --bilibili-color: #00a1d6;
    --wechat-color: #07c160;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 70px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: -2;
    background: #667eea;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-text {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.2rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary:hover i,
.btn-secondary:hover span {
    color: #667eea;
}

.btn-secondary i,
.btn-secondary span {
    color: #333;
}

/* Hero区域的btn-secondary特殊样式 */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.hero .btn-secondary i,
.hero .btn-secondary span {
    color: #667eea;
}

/* Hero区域的btn-secondary特殊样式 - 镂空效果 */
.hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 700; /* 改为加粗 */
}

.hero .btn-secondary:hover {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.hero .btn-secondary i,
.hero .btn-secondary span {
    color: white;
}

.hero .btn-secondary:hover i,
.hero .btn-secondary:hover span {
    color: #667eea;
}

/* Hero区域的btn-primary特殊样式 - 镂空效果，与btn-secondary一致 */
.hero .btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 700; /* 改为加粗 */
}

.hero .btn-primary:hover {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.hero .btn-primary i,
.hero .btn-primary span {
    color: white;
}

.hero .btn-primary:hover i,
.hero .btn-primary:hover span {
    color: #667eea;
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title i {
    margin-left: 10px;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.personal-photo {
    text-align: center;
    margin: 2rem 0;
}

.personal-photo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.personal-photo img:hover {
    transform: scale(1.05);
}

/* 生活照放大弹窗样式 */
.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修改：使图片在桌面端高度接近视口高度，并支持拖拽/缩放交互样式 */
.photo-modal img {
    max-width: 100%;
    width: auto; /* 以高度为优先保持纵向填满 */
    max-height: calc(100vh - 80px); /* 纵向高度等于视口高度（减去头部/边距） */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.08s linear;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none; /* 必需：禁用默认触摸行为以便自定义手势（拖拽/捏合） */
    cursor: grab;
    will-change: transform;
}

.photo-modal img.dragging {
    cursor: grabbing;
}

/* 在更小屏时仍然保留合理 max-height */
@media (max-width: 768px) {
    .photo-modal img {
        max-height: calc(100vh - 100px); /* 更小留白 */
        border-radius: 10px;
    }
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.research-focus {
    background: var(--gradient);
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.research-focus h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.research-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 45%;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: auto;
    margin-bottom: auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 120px;
    max-width: 220px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.skill-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    justify-content: center;
}

.skill-icon {
    font-size: 3.2rem;
    margin: 1rem;
    color: var(--primary-color);
}

.skill-label {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
}

/* 编程语言区块：每行两个技能项 */
.skill-category:first-child .skill-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

/* 深度学习和工具区块：每行一个技能项 */
.skill-category:nth-child(2) .skill-tags,
.skill-category:nth-child(3) .skill-tags {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-start;
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.award-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.award-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.award-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.award-card p {
    color: var(--text-light);
}

/* GitHub Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-card img {
    max-width: 100%;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contact */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 16px;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
    outline: none;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-link i {
    font-size: 1.2rem;
}

/* 品牌色应用于图标和文字 */
.contact-link.github i,
.contact-link.github span {
    color: var(--github-color);
}

.contact-link.email i,
.contact-link.email span {
    color: var(--email-color);
}

.contact-link.bilibili i,
.contact-link.bilibili span {
    color: var(--bilibili-color);
}

.contact-link.wechat i,
.contact-link.wechat span {
    color: var(--wechat-color);
}

/* Modal（微信二维码弹窗）样式 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal[aria-hidden="false"] {
    display: flex;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    text-align: center;
    z-index: 12001;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    margin-top: 8px;
}

#wechat-qr {
    max-width: 320px;
    width: 88%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 8px auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.modal-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 不蒜子统计样式 */
.site-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.site-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.site-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.site-stats .stat-value {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .skill-category h3 {
        font-size: 1.3rem !important;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .award-card h3 {
        font-size: 1.3rem !important;
        font-weight: 700;
        margin-bottom: 0.7rem;
    }
    
    .contact-info h3 {
        font-size: 1.6rem !important;
        font-weight: 700;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .contact-info p {
        font-size: 0.98rem;
        margin-bottom: 1.2rem;
    }

    .container, .hero-content, .skills-grid, .awards-grid, .stats-grid {
        max-width: 100%;
        width: 100%;
        padding: 0 2vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.7rem;
        font-weight: 700;
        margin-bottom: 0.7rem;
    }

    .hero-subtitle {
        font-size: 1.08rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        gap: 0.7rem;
        width: 100%;
        justify-content: center;
    }

    .btn {
        font-size: 0.98rem;
        padding: 10px 18px;
        border-radius: 30px;
        min-width: 90px;
        width: auto;
        margin-right: 0.3rem;
    }

    /* 优化 about-text 内容 */
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        color: var(--text-light);
        padding: 0 0.5rem;
    }

    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* 优化研究方向区块 */
    .research-focus {
        background: var(--gradient);
        padding: 1.2rem 1.5rem;
        border-radius: 12px;
        color: white;
        margin-top: 0.8rem;
    }

    .research-focus h3 {
        margin-bottom: 0.6rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .research-tag {
        background: rgba(255, 255, 255, 0.2);
        padding: 6px 16px;
        border-radius: 20px;
        font-weight: 500;
        font-size: 0.95rem;
        display: inline-block;
    }

    .skills-grid, .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .skill-category, .award-card {
        width: 100%;
        border-radius: 10px;
        margin: 0 auto;
        padding: 1.2rem 1.5rem;
        font-size: 0.98rem;
    }

    .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        width: 100%;
        justify-items: center;
        align-items: start;
    }

    .skill-item {
        min-width: 80px;
        width: 100%;
        padding: 0.3rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-icon, .award-icon {
        font-size: 1.4rem !important;
        margin: 0.2rem !important;
    }

    .skill-label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-top: 0.2rem;
    }

    .timeline {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }

    .timeline-content {
        width: 100%;
        border-radius: 8px;
        padding: 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .contact-info p {
        font-size: 0.98rem;
        margin-bottom: 0.7rem;
    }

    .contact-links {
        gap: 0.8rem;
    }

    .contact-link {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        border-radius: 20px;
        font-weight: 600;
    }

    .lottie-footer-row {
        flex-direction: row;
        gap: 8px;
        margin-top: 8px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .lottie-footer-row > div {
        width: 45vw !important;
        height: 45vw !important;
        min-width: 100px;
        min-height: 100px;
        max-width: 160px;
        max-height: 160px;
    }

    .stat-card img {
        max-width: 88vw;
        width: 88vw;
        height: auto;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
        z-index: 1100;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
        border-radius: 0 0 12px 12px;
        /* 保证触摸滚动行为在移动设备上良好 */
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: auto;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 70px); /* 视口高度减去 header，高度自适应 */
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        animation: navMenuFadeIn 0.3s;
        /* 可垂直滚动，启用 iOS 弹性滚动优化，防止滚动穿透到页面 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
        font-weight: 900;
        margin-bottom: 1.2rem;
        letter-spacing: 0.02em;
        text-shadow: 0 2px 8px rgba(102,126,234,0.08);
    }

    .hero-title {
        font-size: 2.2rem;
        font-weight: 900;
        margin-bottom: 1rem;
        line-height: 1.1;
        letter-spacing: 0.01em;
        text-shadow: 0 4px 16px rgba(102,126,234,0.18);
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        text-align: center;
        word-break: break-all;
    }

    .section {
        padding: 24px 0;
    }

    /* 进一步优化 about-text */
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        padding: 0 0.2rem;
    }

    .about-content {
        padding: 0 0.5rem;
    }

    /* 进一步优化研究方向区块 */
    .research-focus {
        margin-top: 0.6rem;
        padding: 1rem 1.2rem;
        border-radius: 10px;
    }

    .research-focus h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .research-tag {
        font-size: 0.9rem;
        padding: 5px 14px;
        border-radius: 16px;
        margin-top: 0.4rem;
        display: inline-block;
    }

    .timeline {
        padding-left: 8px;
    }

    .timeline::before {
        left: 16px;
        transform: none;
        width: 3px;
        background: var(--gradient);
    }

    .timeline-item {
        flex-direction: row !important;
        align-items: flex-start;
        margin-bottom: 1.8rem;
        position: relative;
    }

    .timeline-marker {
        left: 8px;
        transform: none;
        position: absolute;
        top: 50%;
        margin-top: 0;
        transform: translateY(-50%);
    }

    .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 32px;
        border-radius: 8px;
        padding: 0.8rem;
        font-size: 1rem;
        text-align: left;
        position: relative;
        max-width: calc(100% - 60px);
    }

    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        padding: 0;
        margin: 0 auto;
    }

    .skill-category {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-bottom: 0;
        width: 100%;
    }

    .skill-category h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
    }

    .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        width: 100%;
        justify-items: center;
        align-items: start;
        margin-top: 0.8rem;
    }

    .skill-item {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 0.4rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-icon, .award-icon {
        font-size: 2rem !important;
        margin: 0.1rem !important;
    }

    .skill-label {
        font-size: 1rem;
        font-weight: 600;
        margin-top: 0.2rem;
        text-align: center;
        width: 100%;
    }

    .award-card {
        padding: 1rem;
        margin-bottom: 0;
    }

    .award-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }

    .award-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        padding: 0;
        justify-items: center;
        align-items: center;
        margin: 0 auto;
    }

    .stat-card {
        max-width: 94vw !important;
        margin: 0 auto !important;
        border-radius: 12px;
        padding: 2px 0;
        min-height: 0;
        box-shadow: none;
        background: none;
    }

    .stat-card img {
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        margin: 0 auto;
        display: block;
        border-radius: 8px;
    }

    .contact-info h3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .contact-info p {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }

    .contact-links {
        gap: 0.6rem;
    }

    .contact-link {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
        border-radius: 18px;
    }

    .lottie-footer-row {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 6px !important;
        overflow: hidden;
        margin-top: 6px;
    }

    .lottie-footer-row > div {
        flex: 0 0 calc((100% - 12px) / 3) !important;
        width: calc((100% - 12px) / 3) !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: calc((100% - 12px) / 3) !important;
        max-height: none !important;
    }

    .modal-content {
        max-width: 96%;
        padding: 12px;
        border-radius: 8px;
    }

    #wechat-qr {
        width: 86%;
    }

    /* 优化页脚统计区域 */
    .site-stats {
        gap: 1rem;
        margin-bottom: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-stats .stat-item {
        flex-direction: column;
        gap: 0.2rem;
        min-width: 80px;
    }
    
    .site-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .site-stats .stat-value {
        font-size: 0.95rem;
    }

    .footer p {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .site-stats {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .site-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .site-stats .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .site-stats .stat-item {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* LikeBtn wrapper */
.likebtn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* 微信号复制 Toast */
#wechat-copy-toast {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translate(-50%, 10px);
    background: rgba(0,0,0,0.72);
    color: #fff;
    padding: 10px 18px;
    border-radius: 32px;
    font-size: 0.95rem;
    line-height: 1.2;
    z-index: 16000;
    opacity: 0;
    backdrop-filter: blur(6px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

#wechat-copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 链接样式重置 */
a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
}

/* 媒体不超出容器宽度 */
img, video {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navMenuFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-text > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1280px) {
    .container, .hero-content, .skills-grid, .awards-grid, .stats-grid {
        max-width: 98vw;
        padding: 0 12px;
    }
}

@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
    }
    .nav-menu {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .container, .hero-content, .skills-grid, .awards-grid, .stats-grid {
        max-width: 98vw;
        padding: 0 8px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .btn {
        font-size: 1rem;
        padding: 12px 28px;
    }
    .lottie-footer-row > div {
        width: 120px;
        height: 120px;
    }
    .skill-category, .award-card, .stat-card {
        padding: 1.5rem;
        font-size: 1rem;
    }
    .timeline-content {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .skill-category h3 {
        font-size: 1.5rem !important;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .award-card h3 {
        font-size: 1.5rem !important;
        font-weight: 700;
        margin-bottom: 0.7rem;
    }
    
    .contact-info h3 {
        font-size: 1.8rem !important;
        font-weight: 700;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .contact-info p {
        font-size: 0.98rem;
        margin-bottom: 1.2rem;
    }

    .container, .hero-content, .skills-grid, .awards-grid, .stats-grid {
        max-width: 100%;
        width: 100%;
        padding: 0 2vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.7rem;
        font-weight: 700;
        margin-bottom: 0.7rem;
    }

    .hero-subtitle {
        font-size: 1.08rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        gap: 0.7rem;
        width: 100%;
        justify-content: center;
    }

    .btn {
        font-size: 0.98rem;
        padding: 10px 18px;
        border-radius: 30px;
        min-width: 90px;
        width: auto;
        margin-right: 0.3rem;
    }

    .skills-grid, .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .skill-category, .award-card {
        width: 100%;
        border-radius: 10px;
        margin: 0 auto;
        padding: 1.5rem 2vw;
        font-size: 0.98rem;
    }

    .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100%;
        justify-items: center;
        align-items: start;
    }

    .skill-item {
        min-width: 80px;
        width: 100%;
        padding: 0.5rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-icon, .award-icon {
        font-size: 1.5rem !important;
        margin: 0.2rem !important;
    }

    .skill-label {
        font-size: 0.98rem;
        font-weight: 600;
        margin-top: 0.2rem;
    }

    .timeline {
        max-width: 100%;
        width: 100%;
        padding: 0 2vw;
    }

    .timeline-content {
        width: 100%;
        border-radius: 8px;
        padding: 0.8rem 1vw;
        font-size: 0.98rem;
        margin-bottom: 0.8rem;
    }

    .contact-info p {
        font-size: 0.98rem;
        margin-bottom: 0.7rem;
    }

    .contact-links {
        gap: 0.9rem;
    }

    .contact-link {
        font-size: 0.98rem;
        padding: 0.9rem 1.1rem;
        border-radius: 20px;
        font-weight: 600;
    }

    .lottie-footer-row {
        flex-direction: row;
        gap: 10px;
        margin-top: 12px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .lottie-footer-row > div {
        width: 55vw !important;
        height: 55vw !important;
        min-width: 120px;
        min-height: 120px;
        max-width: 200px;
        max-height: 200px;
    }

    .stat-card img {
        max-width: 88vw;
        width: 88vw;
        height: auto;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }

    .hamburger {
        display: flex;
        z-index: 1101;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
        z-index: 1100;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
        border-radius: 0 0 12px 12px;
        /* 保证触摸滚动行为在移动设备上良好 */
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: auto;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 70px); /* 视口高度减去 header，高度自适应 */
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        animation: navMenuFadeIn 0.3s;
        /* 可垂直滚动，启用 iOS 弹性滚动优化，防止滚动穿透到页面 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-menu li a {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        transition: background 0.2s;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:hover {
        background: var(--gradient-alt);
        color: white;
    }

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

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hamburger span {
        transition: all 0.3s;
    }

    .skills-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: stretch !important;
    }

    .skills-grid > .skill-category {
        width: 100% !important;
        max-width: 640px !important;
        margin: 0 auto !important;
    }

    /* 确保每个技能类别内的技能项以2列网格布局显示 */
    .skill-category .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        justify-items: center;
        align-items: start;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.4rem;
        font-weight: 900;
        margin-bottom: 1.5rem;
        letter-spacing: 0.02em;
        text-shadow: 0 2px 8px rgba(102,126,234,0.08);
    }

    .hero-title {
        font-size: 2.4rem;
        font-weight: 900;
        margin-bottom: 1.2rem;
        line-height: 1.1;
        letter-spacing: 0.01em;
        text-shadow: 0 4px 16px rgba(102,126,234,0.18);
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        text-align: center;
        word-break: break-all;
    }

    .research-focus {
        margin-bottom: 1.5rem;
        padding-bottom: 1.2rem;
    }

    .research-tag {
        font-size: 1rem;
        padding: 6px 16px;
        border-radius: 16px;
        margin-top: 0.7rem;
        display: inline-block;
    }

    .timeline {
        padding-left: 10px;
    }

    .timeline::before {
        left: 18px;
        transform: none;
        width: 3px;
        background: var(--gradient);
    }

    .timeline-item {
        flex-direction: row !important;
        align-items: flex-start;
        margin-bottom: 2.2rem;
        position: relative;
    }

    .timeline-marker {
        left: 10px;
        transform: none;
        position: absolute;
        top: 50%;
        margin-top: 0;
        transform: translateY(-50%);
    }

    .timeline-content {
        width: calc(100% - 70px) !important;
        margin-left: 38px;
        border-radius: 10px;
        padding: 1rem 1vw;
        font-size: 1.08rem;
        text-align: left;
        position: relative;
        max-width: calc(100% - 70px);
    }

    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 0;
        margin: 0 auto;
    }

    .skill-category {
        padding: 1.2rem 1vw;
        font-size: 1.05rem;
        border-radius: 8px;
        margin-bottom: 0;
        width: 100%;
    }

    .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100%;
        justify-items: center;
        align-items: start;
        margin-top: 1rem;
    }

    .skill-item {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 0.5rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-icon, .award-icon {
        font-size: 2.3rem !important;
        margin: 0.2rem !important;
    }

    .skill-label {
        font-size: 1.08rem;
        font-weight: 600;
        margin-top: 0.2rem;
        text-align: center;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 0;
        justify-items: center;
        align-items: center;
        margin: 0 auto;
    }

    .stat-card {
        max-width: 92vw !important;
        margin: 0 auto !important;
        border-radius: 15px;
        padding: 4px 0;
        min-height: 0;
        box-shadow: none;
        background: none;
    }

    .stat-card img {
        max-width: calc(100% - 32px) !important;
        width: calc(100% - 32px) !important;
        margin: 0 auto;
        display: block;
        border-radius: 10px;
    }

    .contact-info h3 {
        font-size: 1.6rem !important;
        margin-bottom: 0.6rem !important;
    }

    .contact-info p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-links {
        gap: 0.7rem;
    }

    .contact-link {
        font-size: 0.95rem;
        padding: 0.75rem 0.9rem;
        border-radius: 20px;
    }

    .lottie-footer-row {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0 8px !important;
        overflow: hidden;
    }

    .lottie-footer-row > div {
        flex: 0 0 calc((100% - 16px) / 3) !important;
        width: calc((100% - 16px) / 3) !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: calc((100% - 16px) / 3) !important;
        max-height: none !important;
    }

    .modal-content {
        max-width: 96%;
        padding: 14px;
        border-radius: 10px;
    }

    #wechat-qr {
        width: 86%;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .section-title {
        font-size: 2.2rem;
        font-weight: 900;
    }

    .hero-title {
        font-size: 3.2rem;
        font-weight: 900;
    }

    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .skill-category .skill-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        justify-items: center;
        align-items: start;
        margin-top: 1rem;
    }

    .skill-icon, .award-icon {
        font-size: 2.7rem !important;
    }

    .lottie-footer-row > div {
        width: 28vw !important;
        height: 28vw !important;
        min-width: 80px;
        min-height: 80px;
        max-width: 160px;
        max-height: 160px;
    }
}

/* 动图样式 */
.lottie-footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
    margin-bottom: 0;
}

.lottie-footer-row > div {
    width: 160px;
    height: 160px;
}

/* 生活照样式 */
.personal-photo {
    text-align: center;
    margin: 2rem 0;
}

.personal-photo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.personal-photo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .personal-photo img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .personal-photo img {
        max-width: 200px;
        border-radius: 10px;
    }
}

