:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --secondary-color: #888888;
    --glow-color: rgba(255, 255, 255, 0.6);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header & Nav */
header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Note: I need to wrap header content in container in HTML or just use padding here. 
   Existing structure is header > nav > ... 
   I will just add padding to nav in header.
*/

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none; /* Cleaner look */
}

.links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.85rem;
    transition: color 0.3s;
    font-family: var(--font-primary); /* Cleaner font */
    font-weight: 500;
}

.links a:hover {
    color: var(--accent-color);
    text-shadow: none;
}

/* Sections */
section {
    padding: 80px 0;
    margin-bottom: 0;
}

h3 {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: none;
    font-weight: 600;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack content and orbits */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2; /* Above orbits */
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    color: var(--accent-color);
    text-transform: none; /* Remove uppercase for cleaner look */
    letter-spacing: -2px;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content .tagline {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
    line-height: 1.8;
}

/* Hero Contact Section */
.hero-contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

/* Avatar Container */
.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

#avatar-canvas {
    width: 100%;
    height: 100%;
}

/* Diffusion Contact Canvas */
.diffusion-canvas-container {
    position: relative;
    width: 340px;
    height: 140px;
}

#diffusion-canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: 'Image Placeholder';
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Education Timeline */
.education-list {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.education-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.education-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--glow-color);
}

.education-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.education-item .institution {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Vision Section */
#vision {
    padding: 60px 0;
}

.vision-content {
    text-align: center;
    padding: 40px 20px;
}

.vision-statement {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 1.6;
}

.vision-statement .highlight {
    color: #5eead4;
    font-weight: 500;
}

/* Research Interests Pill Layout */
.research-interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.interest-pill {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: default;
    font-family: var(--font-primary);
}

.interest-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Featured Research Section */
.research-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Make DLLM animation span full width */
#dllm-animation,
#dfusion-animation,
#taxonomy-animation {
    grid-column: 1 / -1;
    padding: 0;
    margin-bottom: 40px;
}

.research-item {
    margin-bottom: 0; /* Reset margin for grid */
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.research-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.research-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.research-item .meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.research-item p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Projects */
.project-item {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.project-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-item .meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.project-item p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Two Column Layout (About) */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Timeline Simplified */
.timeline {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--bg-color);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
}

.timeline-item .year {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.timeline-item span {
    font-size: 0.9rem;
    color: #888;
}

.timeline-item .supervisor {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 8px;
    font-style: italic;
}

/* Medal Wall */
.medal-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.medal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.medal-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.medal-title {
    font-size: 0.9rem;
    color: #ccc;
}


.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--glow-color);
    font-weight: 600;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(32px, 9999px, 12px, 0); transform: skew(0.5deg); }
    5% { clip: rect(65px, 9999px, 89px, 0); transform: skew(0.5deg); }
    10% { clip: rect(12px, 9999px, 45px, 0); transform: skew(0.5deg); }
    15% { clip: rect(98px, 9999px, 12px, 0); transform: skew(0.5deg); }
    20% { clip: rect(3px, 9999px, 67px, 0); transform: skew(0.5deg); }
    100% { clip: rect(89px, 9999px, 23px, 0); transform: skew(0.5deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.5deg); }
    5% { clip: rect(12px, 9999px, 3px, 0); transform: skew(0.5deg); }
    10% { clip: rect(98px, 9999px, 45px, 0); transform: skew(0.5deg); }
    15% { clip: rect(3px, 9999px, 89px, 0); transform: skew(0.5deg); }
    20% { clip: rect(45px, 9999px, 12px, 0); transform: skew(0.5deg); }
    100% { clip: rect(23px, 9999px, 65px, 0); transform: skew(0.5deg); }
}

/* Contact Buttons */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
}

.btn:hover::before {
    transform: translateX(100%);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-top: 1px solid #222;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* =========================================
   DLLM Animation Styles (CoRefusion)
   ========================================= */
.dllm-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.02); /* Dark background matching site theme */
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.dllm-content-wrapper {
    display: flex;
    gap: 40px;
    padding: 30px 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.dllm-left-panel {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.research-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    width: fit-content;
}

.dllm-right-panel {
    flex: 1;
    min-width: 0;
}

.dllm-header {
    text-align: left;
}

.dllm-header h4 {
    font-size: 2rem;
    color: #f0f0f0;
    margin-bottom: 5px;
    font-weight: 600;
}

.dllm-subtitle {
    font-size: 1rem;
    color: #888888;
    font-style: italic;
}

.step-indicator {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #5eead4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.code-window {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.control-dot.red { background: #ef4444; }
.control-dot.yellow { background: #f59e0b; }
.control-dot.green { background: #22c55e; }

.filename {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #888888;
    font-weight: 500;
    margin-right: 42px;
}

.code-content {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 400px; /* Prevent jumpiness */
    background: #0a0a0a;
}

.code-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 24px;
}

.indent-1 { margin-left: 24px; }
.indent-2 { margin-left: 48px; }

.tok {
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    text-align: center;
    min-width: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    white-space: pre;
    color: #f0f0f0; /* Light text for dark mode */
}

/* Token Styles */
.tok-normal { background: transparent; border-color: transparent; }
.tok-keyword { color: #c084fc; font-weight: bold; }
.tok-func { color: #60a5fa; }
.tok-class { color: #fbbf24; }
.tok-eos {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 11px;
    font-weight: bold;
}
.tok-masked {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    border-style: dashed;
    color: #888888;
    font-size: 12px;
    min-width: 24px;
}
.tok-confident {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    border-style: solid;
    color: #c084fc;
    font-weight: 500;
}
.tok-fixed {
    background: rgba(45, 212, 191, 0.15);
    border-color: #2dd4bf;
    border-style: solid;
    color: #5eead4;
    font-weight: 500;
}
.tok-blur { filter: blur(2px); opacity: 0.5; transform: scale(0.95); }
.tok-hidden { opacity: 0; pointer-events: none; width: 0; min-width: 0; padding: 0; margin: 0; border: none; }

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #2dd4bf);
    width: 0%;
    transition: width 0.1s ease;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ccc;
}

.legend-tok {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 0.5px solid;
    font-family: monospace;
}

.scroll-hint {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888888;
    font-size: 12px;
    opacity: 0.7;
}

.mouse-icon {
    width: 18px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

.mouse-wheel {
    width: 4px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* =========================================
   Dfusion CVPR Workshop Visualization
   ========================================= */
.dfusion-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dfusion-image-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
}

#dfusion-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.dfusion-hint {
    font-size: 0.75rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.workshop-tag {
    background: rgba(45, 212, 191, 0.15);
    border-color: #2dd4bf;
    color: #5eead4;
}

.dfusion-rank {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rank-number {
    font-size: 4rem;
    font-weight: 700;
    color: #5eead4;
    line-height: 1;
    letter-spacing: -2px;
}

.rank-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dfusion-slogan {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slogan-cn {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 2px;
}

.slogan-en {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* =========================================
   Taxonomy Visualization (Promise2025)
   ========================================= */
.taxonomy-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.taxonomy-right-panel::-webkit-scrollbar {
    display: none;
}

.taxonomy-tree {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    padding: 5px 0;
}

.taxonomy-category {
    margin-bottom: 16px;
}

.taxonomy-category-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid;
}

.taxonomy-category-name {
    flex: 1;
    font-weight: 600;
    color: #f0f0f0;
}

.taxonomy-category-value {
    font-weight: 700;
    font-size: 15px;
}

.taxonomy-category-percent {
    font-size: 11px;
    color: #888;
    margin-left: 8px;
    min-width: 45px;
    text-align: right;
}

.taxonomy-children {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 6px;
}

.taxonomy-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}

.taxonomy-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.taxonomy-item-code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    width: 65px;
    flex-shrink: 0;
}

.taxonomy-item-name {
    flex: 1;
    color: #aaa;
    font-size: 12px;
}

.taxonomy-item-value {
    font-weight: 500;
    font-size: 12px;
    min-width: 45px;
    text-align: right;
}

.taxonomy-item-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-left: 10px;
    overflow: hidden;
}

.taxonomy-item-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.taxonomy-subchildren {
    padding-left: 20px;
}

.taxonomy-subitem {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
}

.taxonomy-subitem .taxonomy-item-code {
    font-size: 10px;
    width: 60px;
    color: #555;
}

.taxonomy-subitem .taxonomy-item-name {
    font-size: 11px;
    color: #777;
}

.taxonomy-subitem .taxonomy-item-value {
    font-size: 11px;
    color: #888;
}

.publication-tag {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.taxonomy-stats {
    display: flex;
    gap: 30px;
}

.taxonomy-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.taxonomy-language-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.taxonomy-lang-item {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.taxonomy-lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

.taxonomy-lang-item.active {
    background: rgba(94, 234, 212, 0.12);
    border-color: rgba(94, 234, 212, 0.4);
    color: #5eead4;
}

.taxonomy-category-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.summary-name {
    flex: 1;
    font-size: 0.8rem;
    color: #888;
}

.summary-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    min-width: 50px;
    text-align: right;
}

.summary-percent {
    font-size: 0.75rem;
    color: #666;
    min-width: 40px;
    text-align: right;
}

/* =========================================
   Animation Thumbnail Cards
   ========================================= */
.animation-thumbnail {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
}

.animation-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.animation-thumbnail:hover .thumbnail-hint {
    opacity: 1;
}

.thumbnail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.thumbnail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.98) 40%);
    z-index: 1;
}

.thumbnail-info .research-tag {
    background: rgba(168, 85, 247, 0.9);
    border: none;
    color: #fff;
    font-weight: 600;
}

.thumbnail-info .workshop-tag {
    background: rgba(45, 212, 191, 0.9);
    color: #0a0a0a;
}

.thumbnail-info .publication-tag {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.thumbnail-info .thesis-tag {
    background: rgba(96, 165, 250, 0.9);
    color: #fff;
}

.thumbnail-info h4 {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin: 10px 0 4px;
    font-weight: 600;
}

.thumbnail-info p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.thumbnail-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #f0f0f0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* =========================================
   Animation Modal Overlay
   ========================================= */
.animation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.animation-modal.active {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #888;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.modal-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.modal-animation {
    display: flex;
    gap: 60px;
    min-height: calc(100vh - 160px);
    align-items: flex-start;
}

.modal-left {
    flex: 0 0 380px;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-right {
    flex: 1;
    min-width: 0;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: #f0f0f0;
    margin: 12px 0 8px;
    font-weight: 600;
    letter-spacing: -1px;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

.modal-abstract {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid rgba(94, 234, 212, 0.5);
}

.modal-abstract p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.7;
    margin: 0;
}

/* Modal Dfusion specific */
.modal-animation .dfusion-image-container {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
}

.modal-animation .dfusion-hint {
    text-align: center;
    margin-top: 15px;
}

/* Modal Taxonomy specific */
.modal-right.taxonomy-right-panel {
    max-height: calc(100vh - 200px);
}

/* =========================================
   Babel Visualization (LLM of Babel)
   ========================================= */
.thesis-tag {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    color: #93c5fd;
}

.babel-stats {
    display: flex;
    gap: 40px;
}

.babel-stat {
    display: flex;
    flex-direction: column;
}

.babel-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
}

.babel-stat .stat-desc {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.babel-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.babel-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.babel-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.babel-visualization {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

#babel-canvas {
    width: 100%;
    height: 100%;
}

.babel-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* =========================================
   Coverage Visualization (Honor Program)
   ========================================= */
.honor-tag {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #c084fc;
}

.thumbnail-info .honor-tag {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #c084fc;
}

.coverage-stats {
    display: flex;
    gap: 40px;
}

.coverage-stat {
    display: flex;
    flex-direction: column;
}

.coverage-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #a855f7;
    line-height: 1;
}

.coverage-stat .stat-desc {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.coverage-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.coverage-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.coverage-visualization {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

#coverage-canvas {
    width: 100%;
    height: 100%;
}

.coverage-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.7;
}
