:root {
  --primary-color: #386ab6;
  --primary-dark: #214e99;
  --primary-light: #6b94ca;
  --secondary-color: #e86c5a;
  --accent-color: #f7c84d;
  --bg-color: #faf9f5;
  --text-color: #202b38;
  --text-light: #526273;
  --border-color: #dce5e5;
  --white: #fffefa;
  --shadow: 0 10px 26px rgba(35, 73, 107, .07);
  --shadow-lg: 0 18px 38px rgba(35, 73, 107, .12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   全局样式 - 个人网站
   主色调：蓝色系
   ======================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

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

/* ========================================
   标题样式
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   卡片样式
   ======================================== */

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   论文卡片样式
   ======================================== */

.paper-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* ========================================
   个人简介样式
   ======================================== */

.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.album-cover {
    width: 100%;
    max-width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    margin: 0 auto 1rem;
    display: block;
}

/* ========================================
   按钮样式
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   列表样式
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 列表样式调整 */
ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem 0;
    list-style-position: outside;
}

.timeline-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Timeline Photos */
.timeline-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.travel-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.travel-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Badminton Athletes Grid */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.athlete-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.athlete-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.athlete-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
}

.athlete-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.athlete-card:hover .athlete-image img {
    transform: scale(1.08);
}

.athlete-info {
    padding: 1.5rem;
    text-align: center;
}

.athlete-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.athlete-info h4 {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 1rem;
}

.athlete-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

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

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* 博客详情页 */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
}

/* For very long display equations */
/* ========================================
   荣誉/奖项样式
   ======================================== */

.award-card {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.award-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.award-content {
    flex: 1;
}

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

.award-org {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

/* ========================================
   兴趣爱好样式
   ======================================== */

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.interest-card {
    text-align: center;
    padding: 2rem;
}

.interest-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition);
}

.interest-card:hover .interest-icon {
    transform: rotate(360deg) scale(1.1);
}

.interest-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   照片墙样式
   ======================================== */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 照片项目基础样式 */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* 不同尺寸的照片项目 */
.photo-item-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-item-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-item-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-item-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

/* 照片悬停效果 */
.photo-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.photo-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* 照片叠加层 */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-overlay p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* ========================================
   页脚样式
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ========================================
   加载动画
   ======================================== */

.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .hero-section {
        gap: 2rem;
    }
    
    .card-grid,
    .interest-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 移动设备 (最大 768px) */
@media (max-width: 768px) {
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 主页英雄区域 */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* 按钮组 */
    .btn-group {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* 卡片网格 */
    .card-grid,
    .interest-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 照片墙响应式 */
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 1rem;
    }
    
    .photo-item-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .photo-item-2x1 {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    /* 标题 */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* 容器 */
    .container {
        padding: 1rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    /* 时间线 */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -2rem;
    }
    
    /* 奖项卡片 */
    .award-card {
        flex-direction: column;
        text-align: center;
    }
    
    .award-icon {
        margin: 0 auto 1rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 1.5rem 1rem;
    }
}

/* 小屏手机 (最大 480px) */
@media (max-width: 480px) {
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .interest-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* 照片墙小屏优化 */
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        grid-auto-rows: 120px;
        gap: 0.75rem;
    }
    
    .photo-item-2x2,
    .photo-item-2x1 {
        grid-column: span 1;
    }
    
    .award-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .section {
        margin-bottom: 2rem;
    }
}

/* ========================================
   滚动条样式
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   实用工具类
   ======================================== */

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

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   音乐播放器样式
   ======================================== */

.music-player-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.music-player-container:hover {
    box-shadow: var(--shadow-lg);
}

/* 左侧：控制区域 */
.music-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.music-select {
    width: 100%;
    color: var(--text-color);
    background: rgba(37, 99, 235, 0.05);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}

.music-select:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-dark);
}

.music-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-dark);
}

.random-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.random-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.random-button:active {
    transform: translateY(0);
}

/* 中间：专辑封面 */
.music-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-cover-link {
    position: relative;
    display: block;
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.music-cover-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.music-cover-link:hover::after,
.music-cover-link:focus-visible::after {
    opacity: 1;
}

.music-cover-link--inactive {
    cursor: default;
}

.music-cover-link--inactive:hover::after,
.music-cover-link--inactive:focus-visible::after {
    opacity: 1;
}

.music-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: 1;
}

.music-cover-link:hover .music-cover-overlay,
.music-cover-link:focus-visible .music-cover-overlay {
    opacity: 1;
}

.music-cover-overlay span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.music-cover-link--inactive .music-cover-overlay span {
    background: rgba(15, 23, 42, 0.6);
}

.music-cover img {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-cover img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

/* 右侧：歌曲信息 */
.music-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.music-info h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.music-info h4 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.music-artist {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.music-artist span {
    color: var(--primary-dark);
    font-weight: 600;
}

.music-lyrics {
    background: rgba(37, 99, 235, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 0.5rem;
}

.music-lyrics p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .music-player-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .music-cover {
        order: -1;
    }

    .music-cover-link {
        max-width: 240px;
    }

    .music-cover img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .music-cover-link {
        max-width: 200px;
    }

    .music-cover img {
        height: 200px;
    }

    .music-info h3 {
        font-size: 1.35rem;
    }

    .music-info h4 {
        font-size: 1rem;
    }
}


html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-color); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3, h4, .site-brand, .path-card strong { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h2::after { display: none; }
h3 { color: var(--text-color); }
a { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b46c44; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 3000; padding: .7rem 1rem; background: var(--text-color); color: white; }
.skip-link:focus { top: .7rem; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(248,245,238,.96); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(16px); }
.site-header-inner { max-width: 1200px; min-height: 76px; margin: auto; padding: .6rem 2rem; display: flex; align-items: center; gap: 1.5rem; }
.site-brand { flex: 0 0 auto; color: var(--text-color); text-decoration: none; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.site-brand span { color: #a96044; }
.site-brand small { display: block; margin-top: .3rem; font: 500 .58rem -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; letter-spacing: .18em; color: var(--text-light); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; list-style: none; align-items: center; gap: .15rem; }
.site-nav a { display: block; padding: .55rem .72rem; border-radius: 4px; color: var(--text-color); font-size: .9rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #a45839; background: #efe8dc; }
.language-link { padding: .55rem .7rem; border: 1px solid var(--border-color); border-radius: 4px; text-decoration: none; font-size: .85rem; font-weight: 700; }
.language-link:hover { background: #efe8dc; }
.nav-toggle { display: none; border: 0; background: transparent; }
.site-main { min-height: calc(100vh - 180px); }
.container { max-width: 1200px; padding: 2.5rem 2rem; }
.legacy-content > .section { max-width: 100%; }
.section { margin: 2rem 0 5.5rem; animation: none; }
.section > h2 { padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.eyebrow { color: #a4593d; font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.page-intro { margin: 2rem 0 4.5rem; }
.hero-section { min-height: 610px; padding: 2.2rem 0 3rem; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.7fr); align-items: center; gap: 4rem; background: transparent; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin: .5rem 0 1.3rem; }
.hero-name-secondary { display: block; margin-top: .4rem; color: var(--text-light); font: 500 clamp(1.2rem,2.6vw,2rem) -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; letter-spacing: 0; }
.hero-lede { max-width: 670px; font-size: clamp(1.05rem,1.7vw,1.25rem); line-height: 1.8; }
.hero-email { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.35rem 0 2.5rem; color: var(--text-light); font-size: .9rem; }
.hero-email a { text-decoration-color: #bba788; text-underline-offset: 4px; overflow-wrap: anywhere; }
.hero-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.path-card { min-height: 120px; padding: 1rem; border: 1px solid var(--border-color); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: var(--text-color); text-decoration: none; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card strong { font-size: 1.2rem; }
.path-card > span:last-child { align-self: flex-end; color: #a4593d; }
.path-number { color: #a4593d; font-size: .75rem; font-weight: 700; }
.card, .timeline-content, .award-card, .athlete-card { background: var(--white); border: 1px solid var(--border-color); box-shadow: none; border-radius: 6px; }
.card:hover { transform: none; box-shadow: var(--shadow); }
.card-grid { gap: 1rem; }
.timeline { border-left-color: #c9b79c; }
.timeline-item::before { background: #aa674b; }
.timeline-content { padding: 1.7rem 2rem; }
.timeline-content li { margin-bottom: .65rem; }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}
.research-anchor { scroll-margin-top: 6rem; }
.timeline-title, .award-title { color: var(--text-color); }
.timeline-date, .award-date { color: #a4593d; font-weight: 700; }
.award-card { align-items: flex-start; }
.award-icon { background: #f3ece0; }
.paper-card { width: 100%; max-width: none; }
.paper-card h3 { margin: .6rem 0; }
.paper-card p { margin-bottom: .7rem; }
.paper-card .paper-original { margin-top: -.35rem; color: var(--text-light); font-size: .85rem; overflow-wrap: anywhere; }
.paper-card .text-link { align-self: flex-start; }
.update-row { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; max-width: 900px; padding: 1.3rem 0; border-bottom: 1px solid var(--border-color); }
.update-row time { color: #a4593d; font-size: .82rem; font-weight: 700; }
.update-row h3 { font-size: 1.2rem; }
.text-link { color: #9c5439; font-weight: 700; text-decoration: none; border-bottom: 1px solid #b4785e; }
.text-link:hover { color: #74361f; }
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border-color); background: #f1ebdf; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--text-light); font-size: .85rem; }
.footer-inner > div { display: flex; gap: 1.4rem; }
.footer-inner a { text-decoration: none; }
.blog-tools { display: grid; grid-template-columns: minmax(190px,2fr) repeat(3,minmax(110px,1fr)); gap: .8rem; padding: 1rem; border: 1px solid var(--border-color); background: var(--white); border-radius: 6px; }
.blog-tools label { display: flex; flex-direction: column; gap: .35rem; color: var(--text-light); font-size: .78rem; font-weight: 700; }
.blog-tools input, .blog-tools select { width: 100%; min-height: 42px; padding: .55rem .65rem; border: 1px solid #cfc9bd; border-radius: 4px; background: #fffdfa; color: var(--text-color); font: inherit; font-size: .9rem; }
.result-count { margin: 1.2rem 0; color: var(--text-light); font-size: .85rem; }
.blog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.blog-card { min-height: 230px; padding: 0; border: 1px solid var(--border-color); border-radius: 6px; background: var(--white); box-shadow: none; }
.blog-card[hidden] { display: none; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; color: var(--text-color); text-decoration: none; }
.blog-card h2 { margin: .8rem 0; font-size: 1.45rem; }
.blog-card p { color: var(--text-light); }
.blog-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 1rem; }
.article-layout { max-width: 940px; }
.article { margin-top: 2rem; padding: clamp(1.3rem,4vw,3.5rem); border: 1px solid var(--border-color); border-radius: 6px; background: var(--white); }
.article-header { padding-bottom: 1.8rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.article-header h1 { font-size: clamp(2rem,4vw,3.4rem); }
.article-header > p:last-child { color: var(--text-light); font-size: 1.08rem; }
.markdown-content { overflow-wrap: anywhere; }
.markdown-content h2 { margin-top: 2.3rem; }
.markdown-content h3 { margin-top: 1.8rem; }
.markdown-content img { max-width: 100%; height: auto; }
.markdown-content pre { max-width: 100%; overflow-x: auto; background: #263238; color: #f6f1e8; padding: 1rem; border-radius: 4px; }
.markdown-content table { display: block; max-width: 100%; overflow-x: auto; }
.markdown-content mjx-assistive-mml { width: 1px !important; max-width: 1px !important; height: 1px !important; overflow: hidden !important; }
.md-alert { margin: 1.3rem 0; padding: 1rem 1.2rem; border-left: 4px solid #aa674b; background: #f5eee2; }
.md-alert strong { display: block; margin-bottom: .4rem; }
.travel-photo, .photo-gallery img, .athlete-image img { height: auto; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.music-player-container { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; }
@media (max-width: 850px) {
  .site-header-inner { flex-wrap: wrap; gap: .8rem; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; margin-left: auto; padding: .5rem; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-color); }
  .site-nav { display: block; order: 4; width: 100%; margin-left: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 0; }
  .language-link { order: 3; }
  .hero-section { min-height: 0; grid-template-columns: 1fr; gap: 2rem; }
  .hero-paths { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .blog-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
html:not(.js) .blog-tools, html:not(.js) .music-controls { display: none; }
@media (max-width: 600px) {
  .container { padding: 1.5rem 1rem; }
  .site-header-inner { min-height: 66px; padding: .5rem 1rem; }
  .hero-section { padding-top: 1rem; }
  .hero-paths { grid-template-columns: 1fr; }
  .path-card { min-height: 72px; flex-direction: row; align-items: center; }
  .path-card > span:last-child { align-self: center; }
  .blog-tools, .blog-grid { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .interest-card { min-height: 145px; padding: 1rem .6rem; }
  .interest-icon { width: 52px; height: 52px; font-size: 1.7rem; }
  .interest-title { font-size: 1.15rem; }
  .update-row { grid-template-columns: 1fr; gap: .2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .section { margin-bottom: 3.5rem; }
  .timeline-content { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Playful illustration layer: bright accents, while the reading surfaces stay calm. */
.site-header { background: rgba(255, 254, 250, .96); }
.site-brand span { color: #386ab6; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #214e99; background: #e9f2ff; }
.language-link:hover { background: #e9f2ff; }
.eyebrow, .path-number, .timeline-date, .award-date, .update-row time { color: #2f69bb; }
.text-link { color: #245ba7; border-bottom-color: #8bb2e1; }
.text-link:hover { color: #153b77; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline-color: #e46a50; }
.section > h2 { border-bottom-color: #d5e5ed; }
.hero-section {
  min-height: 590px;
  padding: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #dbe8ed;
  border-radius: 28px;
  background: linear-gradient(140deg, #f5faff 0%, #f6fbf7 58%, #fff7eb 100%);
}
.hero-section::before, .hero-section::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero-section::before { width: 210px; height: 210px; background: rgba(255, 204, 70, .25); top: -110px; left: 33%; }
.hero-section::after { width: 200px; height: 200px; background: rgba(88, 184, 144, .18); right: -95px; bottom: -110px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(3.1rem, 5vw, 5rem); }
.hero-name-secondary { color: #4b719e; }
.hero-lede { color: #35475b; }
.hero-email a { text-decoration-color: #8aade0; }
.hero-art { align-self: center; margin: 0 -1rem 0 -1.5rem; }
.hero-art img { display: block; width: 105%; height: auto; max-width: none; filter: drop-shadow(0 12px 18px rgba(32, 70, 100, .07)); }
.hero-paths { gap: .75rem; }
.path-card { min-height: 112px; border-radius: 12px; box-shadow: 0 5px 14px rgba(37, 79, 118, .05); }
.path-card:nth-child(1) { border-top: 4px solid #4a86dd; background: #f9fcff; }
.path-card:nth-child(2) { border-top: 4px solid #ed7868; background: #fffaf7; }
.path-card:nth-child(3) { border-top: 4px solid #67bd98; background: #f9fffb; }
.path-card > span:last-child { color: #386ab6; }
.card, .timeline-content, .award-card, .athlete-card, .blog-card, .article, .music-player-container { border-radius: 12px; }
.timeline-item::before { background: #4a86dd; }
.award-icon { background: #edf5ff; }
.site-footer { background: #eef5f5; }
.blog-card:hover { border-color: #9dbde5; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(210px, .65fr); gap: 1rem; align-items: stretch; }
.about-layout > .card { margin: 0; }
.about-photo { margin: 0; padding: .65rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--white); }
.about-photo img { width: 100%; height: calc(100% - 2rem); min-height: 240px; object-fit: cover; border-radius: 8px; }
.about-photo figcaption { padding: .55rem .25rem .15rem; color: var(--text-light); font-size: .78rem; }
.caption-trigger { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; padding: .2rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.caption-trigger > span:first-child { text-decoration: underline dotted #9bada7; text-underline-offset: .25em; }
.caption-trigger:hover { color: #326951; }
.caption-info { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1rem; height: 1rem; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: .7rem; font-style: italic; line-height: 1; }
.caption-story { position: fixed; inset: 0; width: min(480px, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); margin: auto; padding: clamp(1.35rem, 4vw, 2rem); overflow-y: auto; border: 1px solid #d4e2d8; border-radius: 20px; background: linear-gradient(145deg, #f5faf4, #fffefa 65%); color: var(--text-color); box-shadow: 0 24px 80px rgba(30, 58, 47, .2); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.caption-story:popover-open { opacity: 1; transform: translateY(0) scale(1); }
.caption-story::backdrop { background: rgba(28, 48, 39, .12); }
.caption-story-close { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.caption-story-close:hover { background: #e8f0e8; color: #326951; }
.caption-story .caption-story-eyebrow { margin: 0 1.5rem .7rem 0; color: #52745d; font-size: .72rem; letter-spacing: .04em; }
.caption-story h2 { margin: 0 0 1.3rem; font-size: clamp(1.2rem, 4.8vw, 1.55rem); border: 0; }
.caption-story h2::after { content: none; }
.caption-story dt { margin-top: 1rem; color: #326951; font-size: .88rem; font-weight: 650; }
.caption-story dd { margin: .3rem 0 0; color: var(--text-light); font-size: .85rem; line-height: 1.8; }
.caption-story .caption-story-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid #dce6da; color: #627164; font-size: .78rem; line-height: 1.7; }
@starting-style {
  .caption-story:popover-open { opacity: 0; transform: translateY(12px) scale(.98); }
}
.legacy-content > .section:first-child:not(.hero-section), .page-intro {
  padding: clamp(2.2rem, 5vw, 3.5rem);
  border: 1px solid #dce9ed;
  border-radius: 24px;
  background: radial-gradient(circle at 95% 15%, rgba(113, 204, 159, .25), transparent 23%), radial-gradient(circle at 6% 84%, rgba(95, 150, 232, .2), transparent 26%), #f6fbfc;
}
.legacy-content > .section:first-child:not(.hero-section) { margin-top: 2rem; margin-bottom: 4.5rem; }

@media (max-width: 850px) {
  .hero-section { min-height: 0; grid-template-columns: 1fr; }
  .hero-art { grid-row: auto; width: min(100%, 620px); margin: -1.5rem auto -2.5rem; }
  .hero-art img { width: 100%; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo img { height: 280px; min-height: 0; }
}
@media (max-width: 600px) {
  .hero-section { padding: 1.5rem 1.1rem 1rem; border-radius: 18px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 12vw, 3.5rem); }
  .hero-email { margin-bottom: 1.5rem; }
  .hero-paths { gap: .5rem; }
  .path-card { min-height: 70px; }
  .hero-art { margin: -.5rem auto -1.5rem; }
  .legacy-content > .section:first-child:not(.hero-section), .page-intro { padding: 2rem 1.25rem; border-radius: 18px; }
  .about-photo img { height: 210px; }
}

/* Interests: coherent photo crops, visible captions, and full-size viewing. */
.timeline-photos {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: .75rem;
}
.travel-photo-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #e9f1f4;
  box-shadow: var(--shadow);
}
.travel-photo-link .travel-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}
.travel-photo-link:hover .travel-photo, .travel-photo-link:focus-visible .travel-photo { transform: scale(1.04); box-shadow: none; }
.photo-index {
  position: absolute;
  right: .6rem;
  bottom: .55rem;
  padding: .2rem .45rem;
  border-radius: 5px;
  background: rgba(22, 37, 54, .78);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.athletes-grid { gap: 1rem; }
.athlete-image { height: auto; aspect-ratio: 4 / 3; background: #e9f1f4; }
.athlete-photo-link { display: block; width: 100%; height: 100%; overflow: hidden; }
.athlete-image .athlete-photo-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.athlete-photo-link:hover img, .athlete-photo-link:focus-visible img { transform: scale(1.04); }
.photo-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(145px, 15vw, 195px);
  gap: .85rem;
}
.photo-gallery .photo-item { display: block; min-width: 0; background: #e9f1f4; box-shadow: none; cursor: zoom-in; }
.photo-gallery .photo-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo-gallery .photo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-gallery .photo-item:hover img, .photo-gallery .photo-item:focus-visible img { transform: scale(1.035); filter: none; }
.photo-gallery .photo-overlay {
  top: auto;
  min-height: 4rem;
  padding: 1.2rem .8rem .65rem;
  background: linear-gradient(transparent, rgba(15, 29, 44, .78));
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 1;
  pointer-events: none;
}
.photo-gallery .photo-overlay p { margin: 0; padding: 0; text-align: left; font-size: .86rem; line-height: 1.35; color: white; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.photo-lightbox { width: min(94vw, 1100px); max-width: none; max-height: 92vh; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #151f2a; color: white; box-shadow: 0 25px 80px rgba(0, 0, 0, .4); overflow: hidden; }
.photo-lightbox::backdrop { background: rgba(10, 20, 31, .84); }
.lightbox-frame { position: relative; display: flex; flex-direction: column; align-items: stretch; max-height: 92vh; }
.lightbox-image { display: block; width: 100%; max-height: calc(92vh - 72px); height: auto; min-height: 0; object-fit: contain; }
.lightbox-close { position: absolute; top: .75rem; right: .75rem; z-index: 1; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(17, 30, 43, .84); color: white; font-size: 1.7rem; cursor: pointer; }
.lightbox-footer { min-height: 70px; padding: .7rem 1rem; display: flex; align-items: center; gap: .85rem; }
.lightbox-footer button { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 1px solid #8a9aaa; border-radius: 50%; background: transparent; color: white; font-size: 1.25rem; cursor: pointer; }
.lightbox-footer button:disabled { opacity: .35; cursor: default; }
.lightbox-caption { flex: 1; margin: 0; min-width: 0; font-size: .9rem; }
.lightbox-count { color: #cad7df; font-size: .78rem; white-space: nowrap; }
.photo-lightbox button:focus-visible { outline-color: #ffd36a; }
@media (max-width: 900px) {
  .photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 160px; }
}
@media (max-width: 600px) {
  .timeline-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 145px; gap: .6rem; }
  .photo-gallery .photo-overlay { min-height: 3.5rem; padding: 1rem .55rem .5rem; }
  .photo-gallery .photo-overlay p { font-size: .75rem; }
  .lightbox-footer { gap: .5rem; padding: .5rem; }
  .lightbox-caption { font-size: .78rem; }
  .lightbox-count { font-size: .68rem; }
}
