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

:root {
    /* Enhanced Academic Color Palette */
    --primary: #2563eb;        /* Modern blue */
    --primary-light: #3b82f6;  /* Lighter blue */
    --primary-dark: #1d4ed8;   /* Darker blue */
    --accent: #64748b;         /* Slate gray */
    --accent-light: #94a3b8;   /* Light slate */
    --text-primary: #0f172a;   /* Rich black */
    --text-secondary: #475569; /* Dark slate */
    --text-muted: #64748b;     /* Slate */
    --bg-primary: #ffffff;     /* Pure white */
    --bg-secondary: #f8fafc;   /* Subtle gray */
    --bg-tertiary: #f1f5f9;    /* Light gray */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border: #e2e8f0;         /* Clean border */
    --border-light: #f1f5f9;   /* Very light border */
    --success: #059669;        /* Modern green */
    --warning: #d97706;        /* Modern orange */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { 
    font-size: 3rem; 
    font-weight: 800;
    letter-spacing: -0.05em;
}
h2 { 
    font-size: 2.25rem; 
    font-weight: 700;
}
h3 { 
    font-size: 1.5rem; 
    font-weight: 600;
}
h4 { 
    font-size: 1.25rem; 
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

code {
    font-family: 'JetBrains Mono', Monaco, Consolas, monospace;
    font-size: 0.875rem;
    background: #f8fafc;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
}

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

.section {
    padding: 5rem 0;
}

.section.bg-light {
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.nav-logo i {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.github-link {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.github-link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #64748b;
    transition: all 0.3s ease;
}

/* Hero Section - ReEvo Style */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-primary {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1em;
}

.title-separator {
    font-size: 0.8em;
    color: var(--primary);
    font-weight: 300;
    margin: 0 1rem;
}

.title-secondary {
    font-size: 0.75em;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.authors {
    margin-bottom: 2rem;
}

.author {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 2.5rem;
    display: inline-block;
    position: relative;
}

.author:last-child {
    margin-right: 0;
}

.author-links {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
    align-items: center;
}

.author-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.author-links a:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.affiliations {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.affiliation {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-weight: 450;
}

.conference-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-paper {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-paper:hover {
    background: #b91c1c;
    color: white;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-arxiv {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-arxiv:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-code:hover {
    background: #374151;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gallery {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-gallery:hover {
    background: #047857;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-diagram {
    max-width: 600px;
    margin: 0 auto;
}

.hero-diagram .diagram-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-diagram .diagram-placeholder:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.hero-diagram .diagram-placeholder i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    display: block;
}

.hero-diagram .diagram-placeholder p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.badge:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero-stats {
    display: none;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

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

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

/* Algorithm Section */
.algorithm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.algorithm-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
}

.algorithm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid var(--border-light);
}

.algorithm-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.algorithm-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Workflow */
.algorithm-workflow {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.algorithm-workflow h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 600;
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    flex-shrink: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.workflow-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
}

/* Diagram Placeholders */
.framework-diagram-section,
.example-case-section,
.results-visualization-section {
    margin-bottom: 4rem;
}

.framework-diagram-section h3,
.example-case-section h3,
.results-visualization-section h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.diagram-placeholder,
.case-placeholder,
.results-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.diagram-placeholder:hover,
.case-placeholder:hover,
.results-placeholder:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.placeholder-content i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.placeholder-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.result-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.result-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* MCTS Analysis */
.mcts-analysis {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.mcts-analysis h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mcts-analysis > p {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.feature {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

.feature h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.feature h4 i {
    color: var(--primary);
}

.feature p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Gallery Section */
.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gallery-nav-btn {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.gallery-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: transparent;
    box-shadow: none;
    border: none;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    padding: 1rem;
}

.slide-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
}

.gallery-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.slide-counter {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    min-width: 60px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

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

/* Abstract Section */
.abstract-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
}

.abstract-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
}

.abstract-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Usage Section */
.usage-content {
    max-width: 900px;
    margin: 0 auto;
}

.usage-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.usage-content h3:first-child {
    margin-top: 0;
}

.usage-content h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.problem-list,
.llm-list {
    margin-bottom: 2rem;
    padding-left: 0;
}

.problem-list li,
.llm-list li {
    list-style: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    line-height: 1.5;
}

.problem-list li:last-child,
.llm-list li:last-child {
    border-bottom: none;
}

.problem-list strong,
.llm-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.problem-list code,
.llm-list code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary);
    border: 1px solid var(--border-light);
}

/* Citation Section */
.citation-content {
    max-width: 900px;
    margin: 0 auto;
}

.citation-content .code-block {
    text-align: left;
}

.citation-content .code-block pre {
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Quick Start Section */
.quickstart-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active,
.tab-button:hover {
    color: #2563eb;
    background: white;
    border-bottom-color: #2563eb;
}

.tab-content {
    padding: 3rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.tab-panel p {
    margin-bottom: 1.5rem;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-block.small {
    font-size: 0.8rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #334155;
    border-bottom: 1px solid #475569;
}

.code-header span {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0;
}

/* Paper Section */
.paper-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.paper-main h3 {
    color: #1e293b;
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.paper-authors {
    margin-bottom: 1.5rem;
}

.author {
    display: inline-block;
    margin-right: 2rem;
    font-weight: 600;
    color: #2563eb;
}

.paper-affiliations {
    margin-bottom: 2rem;
}

.affiliation {
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.paper-abstract {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.paper-abstract h4 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.paper-abstract p {
    line-height: 1.7;
    font-size: 1rem;
}

.paper-sidebar {
    position: sticky;
    top: 100px;
}

.paper-links {
    margin-bottom: 2rem;
}

.paper-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    color: inherit;
}

.paper-link:hover {
    border-color: #2563eb;
    transform: translateX(5px);
}

.paper-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.paper-link.arxiv i { color: #b31b1b; }
.paper-link.github i { color: #333; }
.paper-link.dataset i { color: #059669; }

.link-title {
    font-weight: 600;
    color: #1e293b;
}

.link-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.citation-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.citation-box h4 {
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.team-member {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.member-info h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-affiliations {
    margin-bottom: 2rem;
}

.member-affiliations p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.2s ease;
}

.member-link:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.acknowledgments {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
    text-align: center;
}

.acknowledgments h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-main {
    max-width: 500px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #2563eb;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #2563eb;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
}

.footer-badges img {
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .paper-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .paper-sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    .workflow-diagram {
        flex-direction: column;
        align-items: stretch;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
        gap: 0.25rem;
    }
    
    .title-primary {
        font-size: 0.9em;
    }
    
    .title-separator {
        font-size: 0.7em;
        margin: 0 0.5rem;
    }
    
    .title-secondary {
        font-size: 0.65em;
    }
    
    .author {
        font-size: 1.125rem;
        margin-right: 1.5rem;
        margin-bottom: 0.75rem;
        display: block;
        text-align: center;
    }
    
    .author-links {
        margin-left: 0;
        margin-top: 0.25rem;
        justify-content: center;
    }
    
    .affiliation {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .gallery-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    .gallery-wrapper {
        width: 100%;
        order: -1;
    }
    
    .gallery-slide {
        padding: 1rem;
    }
    
    .gallery-image {
        max-height: 400px;
    }
    
    .gallery-bottom {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .algorithm-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .code-block pre {
        padding: 1rem;
    }
    
    .algorithm-card,
    .result-card,
    .team-member {
        padding: 1.5rem;
    }
}
