/* =================== StyleAlign 原始样式 =================== */
@import url('https://fonts.googleapis.com/css?family=Google+Sans|Noto+Sans|Castoro');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 主内容容器 - StyleAlign 卡片风格 */
.content {
    width: 1000px;
    padding: 25px 50px;
    margin: 25px auto;
    background-color: white;
    box-shadow: 0px 0px 10px #999;
    border-radius: 15px;
}

.container {
    width: 1000px;
    padding: 25px 50px;
    margin: 25px auto;
    background-color: white;
    box-shadow: 0px 0px 10px #999;
    border-radius: 15px;
}

.container.narrow {
    max-width: 900px;
}

/* =================== 移除导航栏 =================== */
.navbar {
    display: none;
}

/* =================== Header - StyleAlign 风格 =================== */
.header {
    background: white;
    padding: 50px 0 25px;
    text-align: center;
}

h1 {
    text-align: center;
    font-size: 35px;
    font-weight: 300;
    margin-bottom: 10px;
}

.title {
    font-size: 35px;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #000;
    text-align: center;
}

.title .highlight {
    font-weight: 600;
}

#authors {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

#authors a {
    text-decoration: none;
    color: black;
    margin: 0 10px;
}



.links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #e8e8e8;
    border-color: #999;
}

.btn svg {
    vertical-align: middle;
    margin-right: 5px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =================== Section Styles - StyleAlign 风格 =================== */
.section {
    padding: 0;
    background: transparent;
    margin-bottom: 25px;
}

.section.light {
    background: transparent;
}

h2 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center;
}

h4 {
    font-size: 24px;
    font-weight: 300;
}

p {
    line-height: 25px;
    text-align: justify;
}

.highlight-text {
    font-weight: 600;
}

/* =================== 图片和占位符 =================== */
.teaser-gif,
.teaser-img {
    width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
}

.summary-img {
    width: 100%;
    display: block;
    margin: 20px auto;
}

.teaser-placeholder,
.framework-placeholder,
.method-placeholder,
.comparison-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.teaser-placeholder p,
.framework-placeholder p,
.method-placeholder p,
.comparison-placeholder p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #666;
}

.teaser-placeholder span,
.framework-placeholder span,
.method-placeholder span,
.comparison-placeholder span {
    font-size: 14px;
    color: #999;
}

.caption {
    text-align: center;
    font-size: 15px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* =================== Video Results - 保留滑动对比功能 =================== */
.results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    margin-bottom: 0;
}

.result-title {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.result-title s {
    color: #999;
    font-weight: 300;
}

.result-title strong {
    font-weight: 300;
}

/* 自定义视频对比容器 */
.video-compare-container {
    position: relative;
    width: 100%;
    aspect-ratio: 832/480;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.video-background,
.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-foreground-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.video-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    margin-top: -20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    z-index: 10;
    cursor: ew-resize;
}

.video-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 100vh;
    background: #fff;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-slider::-moz-range-thumb {
    width: 4px;
    height: 100vh;
    background: #fff;
    cursor: ew-resize;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-labels {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 5;
}

.label-left,
.label-right {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Juxtapose 滑动对比容器 */
.juxtapose-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.juxtapose {
    width: 100%;
    aspect-ratio: 832/480;
}

.juxtapose video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.juxtapose img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 自定义 Juxtapose 样式 - 简洁黑色 */
.jx-controller {
    background: #333 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.jx-arrow {
    border-color: #fff !important;
}

.jx-handle {
    background: #333 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* =================== BibTeX =================== */
.bibtex-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bibtex-box:hover {
    border-color: #999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bibtex-box pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bibtex-box code {
    display: block;
    padding: 0;
    margin: 0;
}

.note {
    text-align: center;
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

/* =================== Footer =================== */
.footer {
    background: transparent;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* =================== 响应式设计 =================== */
@media (max-width: 1100px) {

    .content,
    .container {
        width: 90%;
        padding: 20px 30px;
    }

    .results-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .content,
    .container {
        width: 95%;
        padding: 20px;
    }

    h1,
    .title {
        font-size: 30px;
    }

    h2,
    .section-title {
        font-size: 26px;
    }

    h3 {
        font-size: 18px;
    }

    #authors,
    .authors {
        font-size: 18px;
    }

    p,
    .description,
    .content-text {
        font-size: 16px;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
    }

    .results-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    h1,
    .title {
        font-size: 26px;
    }

    h2,
    .section-title {
        font-size: 22px;
    }

    h3 {
        font-size: 16px;
    }

    p,
    .description,
    .content-text {
        font-size: 15px;
    }
}