        :root {
            --primary-color: #2563eb;
            --ours-color: #e11d48;
            --text-main: #1f2937;
            --text-secondary: #64748b;
            --bg-color: #ffffff;
            --bg-alt: #f8fafc;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-main);
            margin: 0;
            background-color: var(--bg-color);
            overflow-x: hidden;
        }

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

        /* --- Header --- */
        header {
            text-align: center;
            padding: 80px 0 60px;
            border-bottom: 1px solid var(--border-color);
            background: #fff;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            color: #0f172a;
            letter-spacing: -0.02em;
        }

        .authors {
            font-size: 1.3rem;
            color: var(--text-main);
            font-weight: 500;
            margin-top: 20px;
        }

        .authors a {
            color: var(--text-main);
            text-decoration: none;
            position: relative;
        }

        .authors a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        .affiliations {
            font-size: 1.1rem;
            color: var(--text-secondary);
            font-weight: 400;
            margin-top: 10px;
        }

        .link-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
            margin-bottom: 10px;
        }

        /* --- 按钮主体 --- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 22px;
            background-color: #1f2937;
            color: #fff;
            text-decoration: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .btn:hover {
            background-color: #374151;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .icon {
            width: 18px;
            height: 18px;
            margin-right: 8px;
        }

        /* --- Section Styling --- */
        section {
            padding: 60px 0;
        }

        #abstract {
            background: #f8fafc;
        }

        #method {
            background: #fff;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        #comparisons {
            background: #f8fafc;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        h2 {
            font-size: 2rem;
            text-align: center;
            margin-bottom: 40px;
            font-weight: 800;
            color: #1e293b;
        }

        h3 {
            font-size: 1.5rem;
            text-align: left;
            margin-bottom: 25px;
            font-weight: 600;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h3::before {
            content: '';
            display: block;
            width: 6px;
            height: 24px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        h4 {
            font-size: 1.15rem;
            color: #475569;
            margin: 32px 0 20px;
            font-weight: 700;
        }

        .subsection-description {
            margin-bottom: 30px;
            color: var(--text-secondary);
            font-size: 1rem;
        }

        .zoom-tip {
            display: inline-block;
            margin-top: 10px;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid #f59e0b;
            background: #fffbeb;
            color: #b45309;
            font-weight: 700;
            font-size: 0.95rem;
        }

        .subsection-divider {
            border: 0;
            height: 1px;
            background: #cbd5e1;
            margin: 60px 0;
            opacity: 0.5;
        }

        .abstract-content {
            max-width: 820px;
            margin: 0 auto;
            text-align: justify;
            font-size: 1.05rem;
            color: #475569;
        }

        .method-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .method-item {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            padding: 16px;
        }

        .method-item img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: #fff;
        }

        .method-caption {
            margin-top: 14px;
            font-size: 1rem;
            color: #475569;
            text-align: justify;
        }

        .method-caption-stack {
            max-width: 1100px;
            margin: 22px auto 0;
            display: grid;
            gap: 14px;
        }

        .method-caption-item {
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            padding: 16px 18px;
            font-size: 1rem;
            color: #475569;
            text-align: justify;
        }

        .method-caption-title {
            margin: 0 0 10px 0;
            font-size: 1.08rem;
            font-weight: 700;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .method-caption-title::before {
            content: '';
            width: 4px;
            height: 18px;
            border-radius: 2px;
            background: var(--primary-color);
        }

        .method-section {
            max-width: 1050px;
            margin: 0 auto;
            padding: 30px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .method-section:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .method-section h3 {
            margin-top: 0;
            margin-bottom: 18px;
        }

        .method-text {
            color: #475569;
            font-size: 1.02rem;
            line-height: 1.7;
            text-align: justify;
        }

        .method-text strong {
            color: #334155;
        }

        .method-text ul {
            margin: 16px 0 0;
            padding-left: 0;
            list-style: none;
        }

        .method-text li {
            position: relative;
            padding-left: 18px;
            margin-bottom: 10px;
        }

        .method-text li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.72em;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--primary-color);
            transform: translateY(-50%);
        }

        .method-figure {
            margin: 24px auto 0;
            text-align: center;
        }

        .method-figure img {
            display: block;
            width: min(88%, 900px);
            height: auto;
            margin: 0 auto;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: #fff;
        }

        .method-figure figcaption {
            max-width: 900px;
            margin: 12px auto 0;
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.55;
            text-align: justify;
        }

        @media (max-width: 768px) {
            .method-figure img {
                width: 100%;
            }
        }

        /* --- Floating Navbar --- */
        .nav-container {
            position: fixed;
            left: 18px;
            top: 18px;
            z-index: 1200;
            width: 320px;
            max-width: calc(100vw - 36px);
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(255, 255, 255, 0.78);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
            transition: all 0.24s ease;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-8px);
        }

        .nav-container.visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .nav-container.collapsed .nav-list {
            display: none;
        }

        .nav-header {
            display: none;
        }

        .desktop-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 12px 12px 10px 12px;
            border-bottom: 1px solid rgba(203, 213, 225, 0.45);
        }

        .current-section {
            font-size: 12px;
            font-weight: 600;
            color: #334155;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            flex: 1;
        }

        .nav-collapse {
            border: 0;
            background: transparent;
            color: #334155;
            cursor: pointer;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            opacity: 0.8;
        }

        .nav-collapse:hover {
            background: rgba(148, 163, 184, 0.14);
            opacity: 1;
        }

        .expand-icon {
            display: none;
        }

        .nav-container.collapsed .expand-icon {
            display: inline;
        }

        .nav-container.collapsed .collapse-icon {
            display: none;
        }

        .nav-list {
            list-style: none;
            margin: 0;
            padding: 8px 8px 10px 8px;
            max-height: min(70vh, 620px);
            overflow-y: auto;
        }

        .nav-item {
            margin: 2px 0;
            padding: 8px 10px;
            border-radius: 8px;
            color: #475569;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            user-select: none;
        }

        .nav-item.h2 {
            padding-left: 22px;
            font-size: 12px;
            font-weight: 500;
            color: #64748b;
        }

        .nav-item:hover {
            background: rgba(219, 234, 254, 0.55);
            color: #1e3a8a;
        }

        .nav-item.active {
            background: #e0ecff;
            color: #1d4ed8;
            font-weight: 700;
        }

        .nav-close {
            cursor: pointer;
            color: #334155;
            opacity: 0.7;
        }

        .nav-close:hover {
            opacity: 1;
        }

        /* --- Scrolling Window Logic (Comparisons) --- */
        .comparison-block {
            margin-bottom: 26px;
            background: #fff;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        .instruction-label {
            text-align: center;
            margin-bottom: 12px;
            padding-right: 34px;
            padding-left: 34px;
        }

        .instruction-badge {
            background: #eff6ff;
            color: var(--primary-color);
            padding: 6px 16px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            display: inline-block;
            border: 1px solid #dbeafe;
        }

        .instruction-src {
            color: #0f766e;
            font-weight: 700;
        }

        .instruction-gt {
            color: #b91c1c;
            font-weight: 700;
        }

        .scroll-window {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 15px;
            width: 100%;
        }

        .scroll-window::-webkit-scrollbar {
            height: 8px;
        }

        .scroll-window::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 4px;
        }

        .scroll-window::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        /* All comparison scenarios use a responsive five-column layout. */
        .comparison-block .scroll-window,
        .comparison-block .scene-text-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            overflow: visible;
            padding-bottom: 4px;
            width: 90%;
            margin: 0 auto;
        }

        .comparison-block .video-card {
            width: auto;
            min-width: 0;
        }

        /* Scene-text comparisons wrap into responsive rows instead of scrolling horizontally. */
        .scene-text-grid {
            display: grid;
            width: 100%;
        }

        .video-card {
            flex: 0 0 auto;
            width: 220px;
            display: flex;
            flex-direction: column;
        }

        .video-card.ref-card {
            width: 180px;
        }

        .video-card video,
        .video-card img {
            width: 100%;
            border-radius: 8px;
            display: block;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            background: #000;
        }

        .video-card img {
            height: auto;
            aspect-ratio: 16/9;
            object-fit: cover;
        }

        .video-card img.ref-portrait {
            width: auto;
            max-width: 100%;
            height: 220px;
            background: #fff;
            object-fit: contain;
        }

        @media (max-width: 1200px) {
            .comparison-block .scroll-window,
            .comparison-block .scene-text-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
                width: 94%;
            }
        }

        @media (max-width: 992px) {
            .comparison-block .scroll-window,
            .comparison-block .scene-text-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
                width: 100%;
            }
        }

        .card-header {
            text-align: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: #64748b;
            margin-bottom: 5px;
            white-space: nowrap;
        }

        .is-ours .card-header {
            color: var(--ours-color);
            font-weight: 800;
        }

        .is-ours video {
            border: 3px solid var(--ours-color);
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
        }

        /* --- Video Control Button Styling --- */
        .video-control-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-main);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            z-index: 10;
        }

        .video-control-btn:hover {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        #dataset-visualization {
            background: #fff;
            border-top: 1px solid var(--border-color);
        }

        #citation {
            background: #f8fafc;
            border-top: 1px solid var(--border-color);
        }

        .bibtex-box {
            position: relative;
            max-width: 980px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            padding: 18px 18px 16px 18px;
        }

        .bibtex-box pre {
            margin: 0;
            white-space: pre-wrap;
            word-break: break-word;
            color: #334155;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 0.95rem;
            line-height: 1.55;
            padding: 2px 0;
        }

        .bibtex-box code {
            color: inherit;
            font-family: inherit;
        }

        .citation-copy-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #f8fafc;
            color: #334155;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 6px 10px;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .citation-copy-btn:hover {
            background: #e2e8f0;
            border-color: #94a3b8;
        }

        .dataset-stage {
            margin-top: 18px;
            margin-bottom: 50px;
        }

        .dataset-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .dataset-sample {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: var(--shadow-sm);
            padding: 14px;
            position: relative;
        }

        .dataset-media-row {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .dataset-media-item {
            min-width: 0;
        }

        .dataset-media-title {
            text-align: center;
            font-size: 0.82rem;
            font-weight: 700;
            color: #64748b;
            margin-bottom: 6px;
        }

        .dataset-media-item img,
        .dataset-media-item video {
            width: 100%;
            display: block;
            border-radius: 8px;
            border: 1px solid #dbe3ef;
            background: #000;
            object-fit: cover;
            aspect-ratio: 16 / 9;
        }

        .dataset-stage2 .dataset-media-item img,
        .dataset-stage2 .dataset-media-item video {
            aspect-ratio: 1 / 1;
        }

        /* --- Interactive Media Zoom --- */
        .zoomable-media {
            cursor: zoom-in;
            transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
            transform-origin: center center;
        }

        .zoomable-media:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
            filter: saturate(1.03);
        }

        .media-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.82);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 30px;
            z-index: 10000;
        }

        .media-lightbox.is-open {
            display: flex;
        }

        .media-lightbox-content {
            max-width: min(1200px, calc(100vw - 60px));
            max-height: calc(100vh - 90px);
            border-radius: 12px;
            border: 1px solid rgba(203, 213, 225, 0.45);
            box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
            background: #000;
            display: block;
        }

        .media-lightbox-close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(148, 163, 184, 0.5);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            color: #0f172a;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .media-lightbox-close:hover {
            background: #fff;
            transform: scale(1.05);
        }

        /* Mobile */
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }

            .method-grid {
                grid-template-columns: 1fr;
            }

            .video-card {
                width: 200px;
            }

            .comparison-block .scroll-window,
            .comparison-block .scene-text-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .dataset-grid {
                grid-template-columns: 1fr;
            }

            .video-control-btn {
                width: 32px;
                height: 32px;
                font-size: 0.8rem;
            }

            .media-lightbox {
                padding: 14px;
            }

            .media-lightbox-content {
                max-width: calc(100vw - 28px);
                max-height: calc(100vh - 56px);
            }

            .media-lightbox-close {
                top: 10px;
                right: 10px;
                width: 36px;
                height: 36px;
            }

            .nav-container {
                left: 10px;
                right: 10px;
                top: 10px;
                width: auto;
                max-width: none;
            }

            .desktop-header {
                display: none;
            }

            .nav-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                padding: 12px;
                border-bottom: 1px solid rgba(203, 213, 225, 0.45);
            }

            .nav-container.collapsed .nav-list {
                display: none;
            }

            .nav-container:not(.collapsed) .nav-list {
                display: block;
            }

            .nav-item {
                font-size: 14px;
            }

            .nav-item.h2 {
                font-size: 13px;
            }
        }
