@font-face {
    font-family: 'ByteSans';
    src: url('seed/ByteSans-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ByteSans';
    src: url('seed/ByteSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'ByteSans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header Styles */
header {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #16213e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    /* animation: float 20s ease-in-out infinite; -- Removed to fix rising/falling blue bar */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 2;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.bytedance-seed-logo {
    width: 300px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    display: block;
}

.title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.authors {
    margin-bottom: 20px;
}

.author-row {
    margin-bottom: 10px;
}

.author {
    display: inline-block;
    margin: 0 15px;
    font-size: 1.1rem;
}

.author sup {
    font-size: 0.8rem;
}

.author a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.author a:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.affiliations {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.notes {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 20px 0;
}

.contributions-compact {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contribution-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 320px;
}

.contribution-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.contribution-compact .contribution-text h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: white;
    font-weight: 600;
}

.contribution-compact .contribution-text p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.contribution-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.contribution-link:hover {
    transform: translateY(-3px);
}

.contribution-link:hover .contribution-compact {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

/* Invisible bridge to prevent hover loss between button and dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 10px;
    z-index: 9998;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 10px;
    overflow: visible;
    top: calc(100% + 2px);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear;
    pointer-events: auto;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-btn {
    cursor: pointer;
    position: relative;
    padding-right: 40px !important;
}

.dropdown-btn::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-btn::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Before-After Slider Styles */
.bal-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.bal-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bal-after {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bal-before-inset {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.bal-handle {
    position: absolute;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 20;
}

.bal-handle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* Abstract Section */
.abstract {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 0;
    position: relative;
}

.abstract .container {
    max-width: 1100px;
}

.abstract h2 {
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* text-transform: uppercase; */
}

.teaser-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.teaser-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.abstract p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify;
    color: #4a5568;
    background: white;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.abstract strong {
    color: #2d3748;
    font-weight: 600;
}

/* Video Section */
.video {
    padding: 40px 0;
    background: white;
}

.video h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #444;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 870px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Method Section */
.method {
    background: linear-gradient(135deg, #f0f2f5 0%, #f8f9fa 50%, #f0f2f5 100%);
    padding: 40px 0;
    position: relative;
}

.method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(26, 26, 46, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(22, 33, 62, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.method h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #444;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.method-item {
    text-align: center;
    position: relative;
}

.method-item img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.08),
        0 8px 24px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fafbfc, #f6f7f9);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.method-item img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.12),
        0 12px 32px rgba(0,0,0,0.18),
        inset 0 0 0 1px rgba(0,0,0,0.06);
}

.scene-depth-img {
    max-width: 500px !important;
    margin-top: 30px;
}

.method-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #555;
}

.method-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Section Header with Inline Button */
.section-header-with-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
    position: relative;
}

.section-header-with-button h2 {
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.btn-inline-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 18px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(26, 26, 46, 0.2);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

.btn-inline-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 46, 0.3);
    background: linear-gradient(135deg, #16213e 0%, #1a5490 100%);
}

.btn-inline-download i {
    font-size: 1.rem;
    line-height: 1;
}

.btn-inline-download span {
    font-size: 1.rem;
    line-height: 1;
}

/* Old Method Download Button (keeping for compatibility) */
.method-download {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.btn-cdm-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-cdm-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-cdm-download:hover::before {
    left: 100%;
}

.btn-cdm-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 26, 46, 0.4);
    background: linear-gradient(135deg, #16213e 0%, #1a5490 100%);
}

.btn-cdm-download i.fas.fa-download {
    font-size: 1.4rem;
}

.btn-cdm-download .download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-cdm-download .download-text strong {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.btn-cdm-download .download-text small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-cdm-download .arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-cdm-download:hover .arrow-icon {
    transform: translateY(3px);
}

/* Results Section */
.results {
    padding: 40px 0;
    background: white;
}

.results h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #444;
}

.result-section {
    margin-bottom: 60px;
}

.result-section h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
    color: #555;
}

.comparison-row {
    margin-bottom: 40px;
}

.comparison-row h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-row-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.comparison-full h4 {
    font-size: 1.2rem;
    margin: 30px 0 20px 0;
    color: #666;
    text-align: center;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.image-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.performance-item {
    text-align: center;
}

.performance-item img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.performance-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.performance-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.performance-item p {
    color: #666;
}

.pcd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pcd-item {
    text-align: center;
}

.pcd-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pcd-item p {
    margin-top: 15px;
    font-size: 1rem;
    color: #666;
}

.pcd-gif {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pcd-gif:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

.pcd-viewer-optimized {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.pcd-viewer-optimized:active {
    cursor: grabbing;
}

.pcd-viewer-optimized canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Point Cloud Selector Styles */
.pcd-selector-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.selector-buttons {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selector-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'ByteSans', 'Roboto', sans-serif;
    min-width: 70px;
}

.selector-btn:hover {
    background: rgba(26, 26, 46, 0.05);
}

.selector-btn.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.3);
}

.selector-btn:active {
    transform: scale(0.98);
}

.pcd-scene-camera-group {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy Loading Styles */
.pcd-lazy-container {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pcd-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.pcd-placeholder:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.load-interactive-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 33, 62, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: ByteSans, Roboto, sans-serif;
}

.load-interactive-btn:hover {
    background: rgba(22, 33, 62, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.load-interactive-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.pcd-controls {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pcd-controls label {
    font-weight: 600;
    margin-right: 8px;
}

.pcd-controls select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.pcd-controls select:hover {
    border-color: #aaa;
}

#fps-counter, #point-count {
    font-family: monospace;
    font-size: 14px;
    color: #666;
}

.pcd-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Dataset Section */
.dataset {
    background: #f8f9fa;
    padding: 40px 0;
}

/* Dataset Selector Styles */
.dataset-selector-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 1200px;
}

.dataset-selector-container .selector-group {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.dataset-selector-container .selector-buttons {
    display: flex;
    gap: 6px;
    background: white;
    padding: 4px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: nowrap;
}

.rgb-depth-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.rgb-depth-item {
    text-align: center;
}

.rgb-depth-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rgb-depth-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.rgb-depth-item p {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

/* Colormap Styles */
.colormap-container {
    max-width: 800px;
    margin: 20px auto 30px;
    padding: 0 20px;
}

.colormap-bar {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.colormap-bar canvas {
    width: 100%;
    height: 40px;
    display: block;
}

.colormap-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.colormap-label {
    padding: 0 5px;
}

.dataset h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
}

.dataset > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.dataset-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
}

/* Global image hover effects for any images not covered by specific selectors */
img:not(.bytedance-seed-logo):not(.pcd-placeholder) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:not(.bytedance-seed-logo):not(.pcd-placeholder):hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* Removed old static dataset-images img styling - now using rgb-depth-pair */

.dataset-download {
    text-align: center;
    margin-top: 40px;
}

.btn-dataset-download {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-dataset-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-dataset-download:hover::before {
    left: 100%;
}

.btn-dataset-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 26, 46, 0.4);
    background: linear-gradient(135deg, #16213e 0%, #1a5490 100%);
}

.btn-dataset-download i.fas.fa-download {
    font-size: 1.5rem;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-text strong {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.download-text small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-dataset-download:hover .arrow-icon {
    transform: translateX(5px);
}

/* Models Section */
.models {
    padding: 40px 0;
    background: white;
}

.models h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
}

.models > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.model-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #555;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 52, 96, 0.4);
    background: linear-gradient(135deg, #16213e 0%, #1a5490 100%);
}

/* Depth Accuracy Section */
.depth-accuracy {
    background: #f8f9fa;
    padding: 40px 0;
}

/* Accuracy Selector Styles */
.accuracy-selector-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.accuracy-dataset-group {
    animation: fadeIn 0.3s ease;
}

.depth-accuracy h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
}

.depth-accuracy > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accuracy-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accuracy-charts .chart-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.accuracy-charts .chart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-container canvas {
    max-width: 100%;
    height: 100%;
}

@media (max-width: 968px) {
    .accuracy-charts {
        grid-template-columns: 1fr;
    }
}

.chart-item img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.chart-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.chart-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}

.chart-item p {
    color: #666;
    line-height: 1.6;
}

.accuracy-insights {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.accuracy-insights h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #555;
}

.accuracy-insights ul {
    list-style-position: inside;
    color: #666;
    line-height: 1.8;
}

.accuracy-insights li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Quantitative Results Section */
.quantitative-results {
    background: white;
    padding: 40px 0;
}

.quantitative-results h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #444;
}

.table-section {
    margin-bottom: 50px;
}

.table-section h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #555;
    text-align: center;
}

.table-section p {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
}

.results-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.results-table .header-row td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.results-table .best-result {
    background: #e8f5e8;
}

.results-table .best-result td {
    background: #e8f5e8;
}

.figure-section {
    margin-top: 40px;
}

.figure-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #555;
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.figure-item {
    text-align: center;
}

.figure-item img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.figure-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.figure-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.figure-item p {
    color: #666;
    line-height: 1.6;
}

.imitation-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.table-item {
    text-align: center;
}

.table-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.table-item p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.imitation-table-container {
    overflow-x: auto;
}

.imitation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.imitation-table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
    font-size: 0.8rem;
}

.imitation-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.imitation-table .best-result {
    background: #e8f5e8;
}

.imitation-table .best-result td {
    background: #e8f5e8;
}

/* Setup Section */
.setup {
    background: white;
    padding: 40px 0;
}

.setup-subsection {
    margin-bottom: 60px;
}

.setup-subsection:last-child {
    margin-bottom: 0;
}

.setup-subtitle {
    font-size: 1.6rem;
    color: #444;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.setup-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 2px;
}

.setup h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
}

.setup-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.setup-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.setup-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.setup-item-exp {
    text-align: center;
}

.setup-item-exp img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.setup-item-exp img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.setup-item-exp h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.setup-item-exp p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.setup-item-large {
    text-align: center;
}

.setup-item-large img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    margin: 0 auto 15px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.setup-item-large img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.setup-item-large h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #444;
    font-weight: 600;
}

.setup-item-large p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Legacy setup styles for backwards compatibility */
.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.setup-item {
    text-align: center;
}

.setup-item img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.setup-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #555;
}

.setup-item p {
    color: #666;
}

/* Contributions Section */
.contributions {
    padding: 40px 0;
    background: white;
}

.contributions h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #444;
}

.contribution-list {
    max-width: 800px;
    margin: 0 auto;
}

.contribution-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contribution-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 25px;
    min-width: 50px;
    text-align: center;
}

.contribution-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #555;
}

.contribution-text p {
    color: #666;
    line-height: 1.6;
}

/* Citation Section */
.citation {
    background: #f8f9fa;
    padding: 40px 0;
}

.citation h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #444;
}

.citation pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
}

.citation code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Debug Panel Styles */
.debug-panel {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-panel h4 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.debug-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.debug-viewer-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
}

.debug-viewer-info h5 {
    color: #00bcd4;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: normal;
}

.debug-params {
    font-size: 0.85rem;
    line-height: 1.6;
}

.debug-params div {
    margin: 5px 0;
}

.debug-params span {
    color: #ffd700;
    font-weight: bold;
}

.debug-scene-info {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.debug-scene-info span {
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .debug-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #6ba3f5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Video Grid Responsive Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Video Grid Mobile Styles */
    .video-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }
    
    .video-item {
        width: 100%;
    }
    
    .demo-video {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* ByteCameraDepth Grid Mobile Styles - only affect dataset section */
    #bytecam-pcd-grid,
    #bytecam-images-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }
    
    .pcd-item {
        width: 100%;
    }
    
    .logo-container {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .bytedance-seed-logo {
        width: 200px;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .author {
        display: block;
        margin: 5px 0;
    }
    
    .affiliations {
        flex-direction: column;
        gap: 10px;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .contributions-compact {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .contribution-link {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 320px;
    }
    
    .contribution-compact {
        width: 100%;
        max-width: none;
    }
    
    .image-row {
        grid-template-columns: 1fr;
    }
    
    .image-row-6 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-row-6 > div {
        grid-column: 1 !important;
    }
    
    .image-row-6 > div > div {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .dataset-stats {
        grid-template-columns: 1fr;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .pcd-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .setup-row-2col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .imitation-results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pcd-selector-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .selector-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .selector-buttons {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        width: 100%;
    }
    
    .selector-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: auto;
        flex: 0 1 auto;
    }
    
    .accuracy-selector-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .dataset-selector-container {
        gap: 15px;
        padding: 15px;
    }
    
    .dataset-selector-container .selector-group {
        width: 100%;
        justify-content: center;
    }
    
    .dataset-selector-container .selector-buttons {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .rgb-depth-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .colormap-container {
        padding: 0 10px;
    }
    
    .colormap-bar canvas {
        height: 30px;
    }
    
    .abstract-content {
        padding: 25px;
    }
    
    .abstract h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .abstract p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .section-header-with-button {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-inline-download {
        width: auto;
        justify-content: center;
    }
}