/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #5b9bd5;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

/* Global link styles - no underline, only color change */
a {
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none !important;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.nav-profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-brand {
    line-height: 1.2;
}

.nav-brand a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
}

.nav-social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.nav-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.75rem;
}

.nav-social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-social-links a svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.nav-social-links a i {
    font-size: 0.75rem;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    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(--primary-color);
    transition: var(--transition);
}

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

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

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

/* Left Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    background: #FAFAFA;
    border-right: 1px solid rgba(212, 165, 165, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar-nav.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(212, 165, 165, 0.1);
    color: var(--primary-color);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-menu-link:hover {
    background: rgba(232, 180, 184, 0.1);
    color: var(--primary-color);
    border-left-color: #E8B4B8;
}

.sidebar-menu-link.active {
    background: linear-gradient(90deg, rgba(232, 180, 184, 0.15) 0%, rgba(232, 180, 184, 0.05) 100%);
    color: #B85C6B;
    border-left-color: #E8B4B8;
    font-weight: 500;
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(187, 222, 251, 0.2);
}

.sidebar-submenu.expanded {
    max-height: 1000px;
}

.sidebar-submenu-item {
    padding-left: 2rem;
}

.sidebar-submenu-link {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.sidebar-submenu-link:hover {
    background: rgba(184, 169, 201, 0.1);
    color: #6B5B95;
    border-left-color: #B8A9C9;
}

.sidebar-submenu-link.active {
    background: rgba(184, 169, 201, 0.15);
    color: #6B5B95;
    border-left-color: #B8A9C9;
    font-weight: 500;
}

.sidebar-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu-toggle:hover {
    background: rgba(232, 180, 184, 0.1);
    color: var(--primary-color);
    border-left-color: #E8B4B8;
}

.sidebar-menu-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-menu-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}

/* Sidebar Expand Button (shown when collapsed) */
.sidebar-expand-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E8B4B8 0%, #F4C2C2 100%);
    border: none;
    border-radius: 0 12px 12px 0;
    color: #B85C6B;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 2px 0 8px rgba(232, 180, 184, 0.3);
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sidebar-expand-btn:hover {
    background: linear-gradient(135deg, #D4A5A5 0%, #E8B4B8 100%);
    color: #8B4A5A;
    box-shadow: 2px 0 12px rgba(232, 180, 184, 0.4);
    transform: translateY(-50%) translateX(5px);
}

.sidebar-nav.collapsed ~ .sidebar-expand-btn,
.sidebar-nav.collapsed + .sidebar-expand-btn {
    display: flex;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Hero Section */
.hero {
    padding: 2rem 0 1rem;
    background: var(--bg-color);
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.hero-text {
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-research {
    flex: 1;
}

.hero-research .section-title {
    margin-top: 0;
    font-size: 2.5rem;
}

.hero-research .markdown-content {
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    padding: 1.5rem 0;
    background: var(--bg-color);
}

/* Blog Section - Light Mystical Theme */
#blog.content-section {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 50%, #F0F0F0 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

#blog.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(200, 220, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 200, 220, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(200, 220, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 220, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    pointer-events: none;
    opacity: 0.6;
}

#blog .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Projects Section Title - Cyberpunk Style */
#projects .section-title {
    background: linear-gradient(90deg, #00FFFF 0%, #FF00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#projects .section-title::after {
    background: linear-gradient(90deg, #00FFFF 0%, #FF00FF 100%);
    width: 100px;
    height: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.content-wrapper {
    max-width: 900px;
}

/* Markdown Content Styling - Applied to all markdown content */
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.hero-research .markdown-content h1,
.hero-research .markdown-content h2,
.hero-research .markdown-content h3,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.content-wrapper h1,
.hero-research .markdown-content h1,
.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-wrapper h2,
.hero-research .markdown-content h2,
.markdown-content h2 {
    font-size: 1.75rem;
}

.content-wrapper h3,
.hero-research .markdown-content h3,
.markdown-content h3 {
    font-size: 1.5rem;
}

.content-wrapper p,
.hero-research .markdown-content p,
.markdown-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.content-wrapper ul,
.content-wrapper ol,
.hero-research .markdown-content ul,
.hero-research .markdown-content ol,
.markdown-content ul,
.markdown-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper li,
.hero-research .markdown-content li,
.markdown-content li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.content-wrapper a,
.hero-research .markdown-content a,
.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.content-wrapper a:hover,
.hero-research .markdown-content a:hover,
.markdown-content a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.content-wrapper strong,
.hero-research .markdown-content strong,
.markdown-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.content-wrapper code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.content-wrapper pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.content-wrapper pre code {
    background: none;
    padding: 0;
}

/* Publications Header Link Blocks - Grand Budapest Hotel Colors */
.publications-header-wrapper {
    margin-bottom: 2rem;
}

.publications-header-intro {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.publications-link-blocks {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.publication-link-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.publication-link-block svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Google Scholar block - Soft Pink */
.pub-block-scholar {
    background: linear-gradient(135deg, #E8B4B8 0%, #F4C2C2 100%);
    color: #B85C6B;
    border: 1px solid rgba(232, 180, 184, 0.4);
}

.pub-block-scholar:hover {
    background: linear-gradient(135deg, #D4A5A5 0%, #E8B4B8 100%);
    color: #8B4A5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 180, 184, 0.3);
}

/* OpenReview block - Lavender */
.pub-block-openreview {
    background: linear-gradient(135deg, #B8A9C9 0%, #D4C4E8 100%);
    color: #6B5B95;
    border: 1px solid rgba(184, 169, 201, 0.4);
}

.pub-block-openreview:hover {
    background: linear-gradient(135deg, #9B8BA9 0%, #B8A9C9 100%);
    color: #5B4B85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 169, 201, 0.3);
}

/* DBLP block - Powder Blue */
.pub-block-dblp {
    background: linear-gradient(135deg, #A5C9D4 0%, #B4D8E8 100%);
    color: #5A8FA3;
    border: 1px solid rgba(165, 201, 212, 0.4);
}

.pub-block-dblp:hover {
    background: linear-gradient(135deg, #85A9B4 0%, #A5C9D4 100%);
    color: #4A6F83;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 201, 212, 0.3);
}

/* Semantic Scholar block - Mint Green */
.pub-block-semantic {
    background: linear-gradient(135deg, #A5D4A5 0%, #B4E8B8 100%);
    color: #5A9A5A;
    border: 1px solid rgba(165, 212, 165, 0.4);
}

.pub-block-semantic:hover {
    background: linear-gradient(135deg, #8BC48B 0%, #A5D4A5 100%);
    color: #4A7A4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 212, 165, 0.3);
}

/* Hugging Face block - Soft Yellow */
.pub-block-huggingface {
    background: linear-gradient(135deg, #F4E4BC 0%, #F8E8C8 100%);
    color: #B89A5A;
    border: 1px solid rgba(244, 228, 188, 0.4);
}

.pub-block-huggingface:hover {
    background: linear-gradient(135deg, #E4D4AC 0%, #F4E4BC 100%);
    color: #A88A4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 228, 188, 0.3);
}

/* Inline Link Blocks (for markdown content) */
.inline-link-block {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    margin: 0 0.2rem;
}

.inline-link-block svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Bilibili inline link - Pink gradient */
.inline-link-bilibili {
    background: linear-gradient(135deg, #FB7299 0%, #FF9DB5 100%);
    color: #FFFFFF;
    border: 1px solid rgba(251, 114, 153, 0.4);
}

.inline-link-bilibili:hover {
    background: linear-gradient(135deg, #E86289 0%, #FB7299 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3);
}

/* Publication Blocks - Grand Budapest Hotel Color Palette */
.publication-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #FAFAFA;
    border: 1px solid rgba(212, 165, 165, 0.2);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(212, 165, 165, 0.08);
}

.publication-block:hover {
    box-shadow: 0 4px 16px rgba(212, 165, 165, 0.15);
    border-color: rgba(212, 165, 165, 0.4);
    transform: translateY(-2px);
}

.publication-content-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.publication-text-content {
    flex: 1;
    min-width: 0;
}

.publication-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--bg-light);
}

.publication-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer;
}

.publication-block:hover .publication-image {
    transform: scale(1.05);
    opacity: 0.9;
}

.publication-header {
    margin-bottom: 1rem;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.publication-title a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.publication-authors {
    color: var(--text-light);
    font-size: 0.95rem;
}

.publication-venue {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.venue-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Venue Badges - Grand Budapest Hotel Colors */
.venue-conference {
    background: linear-gradient(135deg, #B8A9C9 0%, #D4C4E8 100%);
    color: #6B5B95;
    border: 1px solid rgba(184, 169, 201, 0.4);
    box-shadow: 0 2px 4px rgba(184, 169, 201, 0.2);
}

.venue-workshop {
    background: linear-gradient(135deg, #A5C9D4 0%, #B4D8E8 100%);
    color: #5A8FA3;
    border: 1px solid rgba(165, 201, 212, 0.4);
    box-shadow: 0 2px 4px rgba(165, 201, 212, 0.2);
}

.venue-journal {
    background: linear-gradient(135deg, #A5D4A5 0%, #C2F4C2 100%);
    color: #5A9A5A;
    border: 1px solid rgba(165, 212, 165, 0.4);
    box-shadow: 0 2px 4px rgba(165, 212, 165, 0.2);
}

.publication-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Publication Links - Grand Budapest Hotel Colors */
.pub-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pub-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Paper link - Soft Pink */
.pub-paper {
    background: linear-gradient(135deg, #E8B4B8 0%, #F4C2C2 100%);
    color: #B85C6B;
    border-color: rgba(232, 180, 184, 0.4);
}

.pub-paper:hover {
    background: linear-gradient(135deg, #D4A5A5 0%, #E8B4B8 100%);
    color: #8B4A5A;
}

/* Code link - Mint Green */
.pub-code {
    background: linear-gradient(135deg, #A5D4A5 0%, #B4E8B8 100%);
    color: #5A9A5A;
    border-color: rgba(165, 212, 165, 0.4);
}

.pub-code:hover {
    background: linear-gradient(135deg, #8BC48B 0%, #A5D4A5 100%);
    color: #4A7A4A;
}

/* Poster link - Lavender */
.pub-poster {
    background: linear-gradient(135deg, #B8A9C9 0%, #D4C4E8 100%);
    color: #6B5B95;
    border-color: rgba(184, 169, 201, 0.4);
}

.pub-poster:hover {
    background: linear-gradient(135deg, #9B8BA9 0%, #B8A9C9 100%);
    color: #5B4B85;
}

/* ArXiv link - Powder Blue */
.pub-arxiv {
    background: linear-gradient(135deg, #A5C9D4 0%, #B4D8E8 100%);
    color: #5A8FA3;
    border-color: rgba(165, 201, 212, 0.4);
}

.pub-arxiv:hover {
    background: linear-gradient(135deg, #85A9B4 0%, #A5C9D4 100%);
    color: #4A6F83;
}

/* Project link - Soft Yellow */
.pub-project {
    background: linear-gradient(135deg, #F4E4BC 0%, #F8E8C8 100%);
    color: #B89A5A;
    border-color: rgba(244, 228, 188, 0.4);
}

.pub-project:hover {
    background: linear-gradient(135deg, #E4D4AC 0%, #F4E4BC 100%);
    color: #A88A4A;
}

/* Video link - Soft Pink variant */
.pub-video {
    background: linear-gradient(135deg, #F4C2C2 0%, #FFD4D4 100%);
    color: #C85C6B;
    border-color: rgba(244, 194, 194, 0.4);
}

.pub-video:hover {
    background: linear-gradient(135deg, #E4B2B2 0%, #F4C2C2 100%);
    color: #B84C5B;
}

/* Slides link - Lavender variant */
.pub-slides {
    background: linear-gradient(135deg, #C9B8D9 0%, #E4D4E8 100%);
    color: #7B6BA5;
    border-color: rgba(201, 184, 217, 0.4);
}

.pub-slides:hover {
    background: linear-gradient(135deg, #B9A8C9 0%, #C9B8D9 100%);
    color: #6B5B95;
}

/* Project Link Blocks - Cyberpunk Neon Style */
.project-link-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
}

.project-link-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-link-block:hover::before {
    left: 100%;
}

.project-link-block svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px currentColor);
}

/* GitHub link block - Cyan Neon */
.project-link-github {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 200, 255, 0.15) 100%);
    color: #00CCFF;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.project-link-github:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 200, 255, 0.25) 100%);
    color: #00FFFF;
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(0, 255, 255, 0.3);
}

/* Hugging Face link block - Magenta Neon */
.project-link-huggingface {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1) 0%, rgba(200, 0, 255, 0.15) 100%);
    color: #FF00CC;
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 2px 8px rgba(255, 0, 255, 0.2);
}

.project-link-huggingface:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2) 0%, rgba(200, 0, 255, 0.25) 100%);
    color: #FF00FF;
    border-color: rgba(255, 0, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(255, 0, 255, 0.4),
        0 0 20px rgba(255, 0, 255, 0.3);
}

/* Projects Styling - Light Cyberpunk Theme */
#projectsContent {
    position: relative;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1rem;
}

#projectsContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.5;
}

.project-section {
    margin-bottom: 3rem;
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-section:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 
        0 4px 20px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(255, 0, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
}

.project-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
    background: linear-gradient(90deg, #00FFFF 0%, #FF00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.project-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF 0%, #FF00FF 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-radius: 2px;
}

.project-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00FFFF 0%, #FF00FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.project-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.15),
        0 0 20px rgba(255, 0, 255, 0.1);
    transform: translateX(5px);
    border-left-color: transparent;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item a {
    font-weight: 600;
    color: #0066CC;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF 0%, #FF00FF 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.project-item a:hover {
    color: #00FFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.project-item a:hover::after {
    width: 100%;
}

.project-item p {
    margin-top: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.project-item ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.project-item ul li {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.project-item ul li::marker {
    color: #00FFFF;
}

/* Blog Styling - 司辰之书 (Book of Hours) & 密教模拟器 (Cultist Simulator) Theme */
/* Light Theme with Mystical Elements and Aspect Icons */
#blogContent {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 50%, #F5F5F5 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 0 30px rgba(200, 220, 255, 0.03);
}

#blogContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(200, 220, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 200, 220, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(200, 220, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 220, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.blog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.98) 100%);
    border: 2px solid rgba(200, 220, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(200, 220, 255, 0.05),
        0 0 0 1px rgba(200, 220, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Book cover inspired border - Light theme */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(200, 220, 255, 0.4) 0%, 
        rgba(255, 200, 220, 0.5) 25%, 
        rgba(200, 255, 220, 0.4) 50%,
        rgba(255, 220, 200, 0.5) 75%,
        rgba(220, 200, 255, 0.4) 100%);
    opacity: 0.6;
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(200, 220, 255, 0.2);
}

/* Aspect icon in corner - will be set via JS */
.blog-card::after {
    content: '❄'; /* Default: Winter */
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    opacity: 0.4;
    color: rgba(150, 180, 220, 0.8);
    transition: var(--transition);
    filter: drop-shadow(0 0 3px rgba(150, 180, 220, 0.3));
    line-height: 1;
}

.blog-card:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 0 30px rgba(200, 220, 255, 0.1),
        0 0 30px rgba(200, 220, 255, 0.2),
        0 0 50px rgba(150, 180, 220, 0.15);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(200, 220, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 255, 1) 100%);
}

.blog-card:hover::before {
    opacity: 0.9;
    height: 5px;
    box-shadow: 0 0 12px rgba(200, 220, 255, 0.4);
}

.blog-card:hover::after {
    opacity: 0.7;
    transform: rotate(15deg) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(150, 180, 220, 0.5));
}

/* Aspect-themed left borders and icons - Light theme */
/* 冬 Winter - Pale Blue */
.blog-card[data-aspect="winter"],
.blog-card:nth-child(1) {
    border-left: 4px solid rgba(150, 180, 220, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(150, 180, 220, 0.05),
        0 0 0 1px rgba(150, 180, 220, 0.2),
        -4px 0 0 rgba(150, 180, 220, 0.3);
}

.blog-card[data-aspect="winter"]::after,
.blog-card:nth-child(1)::after {
    content: '❄'; /* Winter */
    color: rgba(150, 180, 220, 0.7);
}

/* 心 Heart - Rose */
.blog-card[data-aspect="heart"],
.blog-card:nth-child(2) {
    border-left: 4px solid rgba(255, 150, 180, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 150, 180, 0.05),
        0 0 0 1px rgba(255, 150, 180, 0.2),
        -4px 0 0 rgba(255, 150, 180, 0.3);
}

.blog-card[data-aspect="heart"]::after,
.blog-card:nth-child(2)::after {
    content: '❤'; /* Heart */
    color: rgba(255, 150, 180, 0.7);
}

/* 杯 Cup - Crimson */
.blog-card[data-aspect="cup"],
.blog-card:nth-child(3) {
    border-left: 4px solid rgba(255, 100, 150, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 100, 150, 0.05),
        0 0 0 1px rgba(255, 100, 150, 0.2),
        -4px 0 0 rgba(255, 100, 150, 0.3);
}

.blog-card[data-aspect="cup"]::after,
.blog-card:nth-child(3)::after {
    content: '🍷'; /* Cup */
    color: rgba(255, 100, 150, 0.7);
}

/* 铸 Forge - Orange */
.blog-card[data-aspect="forge"],
.blog-card:nth-child(4) {
    border-left: 4px solid rgba(255, 180, 100, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 180, 100, 0.05),
        0 0 0 1px rgba(255, 180, 100, 0.2),
        -4px 0 0 rgba(255, 180, 100, 0.3);
}

.blog-card[data-aspect="forge"]::after,
.blog-card:nth-child(4)::after {
    content: '🔥'; /* Forge */
    color: rgba(255, 180, 100, 0.7);
}

/* 灯 Lantern - Bright Blue */
.blog-card[data-aspect="lantern"],
.blog-card:nth-child(5) {
    border-left: 4px solid rgba(150, 200, 255, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(150, 200, 255, 0.05),
        0 0 0 1px rgba(150, 200, 255, 0.2),
        -4px 0 0 rgba(150, 200, 255, 0.3);
}

.blog-card[data-aspect="lantern"]::after,
.blog-card:nth-child(5)::after {
    content: '🕯'; /* Lantern */
    color: rgba(150, 200, 255, 0.7);
}

/* 刃 Edge - Red */
.blog-card[data-aspect="edge"],
.blog-card:nth-child(6) {
    border-left: 4px solid rgba(255, 120, 120, 0.6);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 120, 120, 0.05),
        0 0 0 1px rgba(255, 120, 120, 0.2),
        -4px 0 0 rgba(255, 120, 120, 0.3);
}

.blog-card[data-aspect="edge"]::after,
.blog-card:nth-child(6)::after {
    content: '⚔'; /* Edge */
    color: rgba(255, 120, 120, 0.7);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 1.5rem;
}

/* Aspect symbol before title */
.blog-card h3::before {
    content: '❄'; /* Default, will be overridden by aspect */
    position: absolute;
    left: 0;
    opacity: 0.4;
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(150, 180, 220, 0.3));
}

.blog-card[data-aspect="heart"] h3::before,
.blog-card:nth-child(2) h3::before {
    content: '❤';
    filter: drop-shadow(0 0 3px rgba(255, 150, 180, 0.3));
}

.blog-card[data-aspect="cup"] h3::before,
.blog-card:nth-child(3) h3::before {
    content: '🍷';
    filter: drop-shadow(0 0 3px rgba(255, 100, 150, 0.3));
}

.blog-card[data-aspect="forge"] h3::before,
.blog-card:nth-child(4) h3::before {
    content: '🔥';
    filter: drop-shadow(0 0 3px rgba(255, 180, 100, 0.3));
}

.blog-card[data-aspect="lantern"] h3::before,
.blog-card:nth-child(5) h3::before {
    content: '🕯';
    filter: drop-shadow(0 0 3px rgba(150, 200, 255, 0.3));
}

.blog-card[data-aspect="edge"] h3::before,
.blog-card:nth-child(6) h3::before {
    content: '⚔';
    filter: drop-shadow(0 0 3px rgba(255, 120, 120, 0.3));
}

.blog-card .blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    opacity: 0.7;
}

.blog-card .blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Blog Section Title - Light Mystical Theme */
#blog .section-title {
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

#blog .section-title::after {
    background: linear-gradient(90deg, 
        rgba(150, 180, 220, 0.6) 0%, 
        rgba(255, 150, 180, 0.7) 50%,
        rgba(150, 180, 220, 0.6) 100%);
    width: 100px;
    height: 3px;
    box-shadow: 0 0 10px rgba(150, 180, 220, 0.4);
}

/* Mystical decorative elements - Light theme */
#blog .section-title::before {
    content: '❄';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
    color: rgba(150, 180, 220, 0.6);
    filter: drop-shadow(0 0 5px rgba(150, 180, 220, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .publication-content-wrapper {
        flex-direction: column;
    }
    
    .publication-image-wrapper {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .publications-link-blocks {
        flex-direction: column;
    }
    
    .publication-link-block {
        width: 100%;
        justify-content: center;
    }
    
    .nav-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-profile-img {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 1.3rem;
    }

    .hero-research {
        text-align: left;
    }

    .container {
        padding: 0 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        transform: translateX(-100%);
    }
    
    .sidebar-nav.show-mobile {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-title {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    padding: 0 2rem;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pets Section - Light Theme */
#pets.content-section {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 50%, #F0F0F0 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

#pets.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 220, 200, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(200, 255, 220, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(255, 220, 200, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 220, 200, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    pointer-events: none;
    opacity: 0.6;
}

#pets .container {
    position: relative;
    z-index: 1;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .pets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.pet-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.98) 100%);
    border: 2px solid rgba(255, 220, 200, 0.3);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 220, 200, 0.05),
        0 0 0 1px rgba(255, 220, 200, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 200, 180, 0.4) 0%, 
        rgba(255, 220, 200, 0.5) 25%, 
        rgba(255, 240, 220, 0.4) 50%,
        rgba(255, 220, 200, 0.5) 75%,
        rgba(255, 200, 180, 0.4) 100%);
    opacity: 0.6;
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(255, 220, 200, 0.2);
}

.pet-card:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 0 30px rgba(255, 220, 200, 0.1),
        0 0 30px rgba(255, 220, 200, 0.2),
        0 0 50px rgba(255, 200, 180, 0.15);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 220, 200, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 255, 1) 100%);
}

.pet-card:hover::before {
    opacity: 0.9;
    height: 5px;
    box-shadow: 0 0 12px rgba(255, 220, 200, 0.4);
}

.pet-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

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

.pet-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-top: 0.5rem;
}

/* Pet Modal - 动物迷城 Style (Card Collection Game Style) */
.image-modal.pet-modal {
    background-color: rgba(0, 0, 0, 0.85);
}

.image-modal.pet-modal .image-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 1) 100%);
    border: 4px solid rgba(255, 220, 200, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 0 50px rgba(255, 220, 200, 0.4),
        inset 0 0 30px rgba(255, 240, 220, 0.3),
        0 0 100px rgba(255, 200, 180, 0.2);
    position: relative;
    max-width: 80%;
    max-height: 85vh;
}

.image-modal.pet-modal .image-modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 200, 180, 0.6) 0%, 
        rgba(255, 220, 200, 0.6) 25%,
        rgba(255, 240, 220, 0.6) 50%,
        rgba(255, 220, 200, 0.6) 75%,
        rgba(255, 200, 180, 0.6) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.8;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.image-modal.pet-modal .image-modal-img {
    border-radius: 16px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 240, 220, 0.2);
    border: 3px solid rgba(255, 220, 200, 0.4);
    max-height: 70vh;
}

.image-modal.pet-modal .image-modal-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 220, 200, 0.2) 0%, rgba(255, 240, 220, 0.3) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 220, 200, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-modal.pet-modal .image-modal-close {
    background: rgba(255, 220, 200, 0.3);
    color: var(--text-color);
    border: 2px solid rgba(255, 220, 200, 0.5);
}

.image-modal.pet-modal .image-modal-close:hover {
    background: rgba(255, 200, 180, 0.5);
    border-color: rgba(255, 220, 200, 0.7);
}

/* Sponsor Section with Chiikawa */
.sponsor-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(212, 165, 165, 0.2);
    position: relative;
}

.chiikawa-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.chiikawa-left,
.chiikawa-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
}

.chiikawa-left img,
.chiikawa-right img {
    background: transparent !important;
    background-color: transparent !important;
}

.chiikawa-char {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
    display: block;
}

.chiikawa-char:nth-child(1) {
    animation-delay: 0s;
}

.chiikawa-char:nth-child(2) {
    animation-delay: 0.5s;
}

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

.sponsor-content {
    flex: 0 0 auto;
    min-width: 300px;
}

.sponsor-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.sponsor-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.sponsor-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sponsor-github {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #FFFFFF;
}

.sponsor-github:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.sponsor-heart {
    background: linear-gradient(135deg, #FB7299 0%, #FF9DB5 100%);
    color: #FFFFFF;
    padding: 0.75rem;
    width: 48px;
    justify-content: center;
}

.sponsor-heart:hover {
    background: linear-gradient(135deg, #E86289 0%, #FB7299 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 114, 153, 0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Collapsible Sections */
.collapsible-heading {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 2rem;
}

.section-title.collapsible-heading {
    padding-left: 2rem;
}

.collapsible-arrow {
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 0.5rem;
}

.collapsible-heading.collapsed .collapsible-arrow {
    transform: rotate(-90deg);
}


.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, margin 0.3s ease-out;
    max-height: 5000px;
}

.collapsible-content.collapsed {
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

