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

:root {
    --text-primary: #333333;
    --text-secondary: #666666;
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
    --border-color: #dddddd;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: #ffffff;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px; /* 跳转时留出一些顶部空间 */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Authors Section */
.authors {
    text-align: center;
    margin-bottom: 30px;
}

.author-list {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.author {
    display: inline;
    margin-right: 8px;
}

.author:not(:last-child)::after {
    content: ", ";
}

.author-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.author-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.author-list sup {
    font-size: 0.75em;
    margin-left: 2px;
}

.anonymous {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.affiliations {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.affiliation {
    margin: 5px 0;
}

.affiliations sup {
    font-size: 0.75em;
    margin-right: 3px;
}

.author-notes {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.author-notes .note {
    margin: 0 8px;
}

/* Links Section */
.links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.link-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 120px;
}

.link-button:hover {
    background-color: #f0f0f0;
    border-color: var(--link-color);
    transform: translateY(-2px);
}

.link-button i {
    font-size: 2rem;
    color: var(--link-color);
}

.link-button span {
    font-size: 1rem;
    font-weight: 500;
}

/* Abstract Section */
.abstract {
    margin-bottom: 50px;
    text-align: justify;
}

.abstract h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.abstract p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

/* Pipeline Section */
.pipeline {
    margin-bottom: 50px;
}

.pipeline h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.pipeline-content {
    text-align: center;
    padding: 20px 0;
}

.pipeline-image {
    max-width: 85%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Experiments Section */
.experiments {
    margin-bottom: 50px;
}

.experiments h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.experiments-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.experiment {
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.experiment-header {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 25px;
    margin: 0;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.experiment-header:hover {
    background-color: #f0f0f0;
}

.experiment-header i {
    color: var(--link-color);
    transition: transform 0.3s ease;
}

.experiment h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.experiment-content {
    padding: 0 25px 25px 25px;
    transition: all 0.3s ease;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.video-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.video-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-badge.agps {
    background-color: #dbeafe;
    color: #1e40af;
}

.method-badge.hil {
    background-color: #fce7f3;
    color: #9f1239;
}

.video-container {
    margin-bottom: 20px;
}

.video-container:last-child {
    margin-bottom: 0;
}

.video-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-label i {
    color: var(--link-color);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

/* Evaluation Videos Grid */
.eval-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Comparison Layout */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-grid,
    .eval-videos {
        grid-template-columns: 1fr;
    }
    
    .video-section {
        padding: 15px;
    }
    
    .video-section h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .experiment-header {
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    .experiment-content {
        padding: 0 20px 20px 20px;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .title {
        font-size: 1.8rem;
    }

    .author-list {
        font-size: 1rem;
    }

    .links {
        gap: 15px;
    }

    .link-button {
        padding: 15px 20px;
        min-width: 100px;
    }

    .link-button i {
        font-size: 1.5rem;
    }

    .link-button span {
        font-size: 0.9rem;
    }

    .abstract h2,
    .pipeline h2,
    .experiments h2 {
        font-size: 1.5rem;
    }

    .experiment {
        padding: 20px;
    }

    .experiment h3 {
        font-size: 1.2rem;
    }

    .pipeline-image {
        max-width: 100%;
    }
}
