:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --background-color: #ffffff;
    --accent-color: #3498db;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --gray-bg: #f8f9fa;
}

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

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

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

header {
    text-align: center;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.paper-id {
    color: var(--secondary-color);
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.abstract {
    background: var(--gray-bg);
    padding: 1.5rem 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
}

/* .abstract:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
} */

.pipeline {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.pipeline h2, .results h2, .abstract h2 {
    margin-left: 0rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.abstract h2 {
    margin-left: 0;
}

figure {
    margin: 0;
    width: 100%;
}

.pipeline-image {
    display: block;
    margin: 1.5rem auto;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.video-caption, figcaption {
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    text-align: left;
    padding: 0;
}

.results {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* video:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
} */

h1, h2 {
    position: relative;
    display: inline-block;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

h1:hover::after, h2:hover::after {
    transform: scaleX(1);
}

@media (min-width: 1024px) {
    .container {
        padding: 5rem;
    }

    .abstract {
        padding: 1.8rem 2rem;
    }
}

.video-caption {
    margin-top: 0;
    margin-bottom: 0rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    text-align: left;
    padding: 0;
}

.blue {
    color: #ABD6DE;
    font-weight: bold;
}

.red {
    color: #FD3744;
    font-weight: bold;
}

.green {
    color: #A2F47A;
    font-weight: bold;
}

hr {
    border: none;
    border-top: 1px dashed #ccc; /* 使用虚线上边框，颜色稍深一些以便看到虚线效果 */
}

.citation {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.citation-container {
    width: 100%;
    margin-top: 1rem;
}

#bibtex {
    width: 100%;
    padding: 1.5rem;
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    box-shadow: var(--shadow);
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}