/* --- 全局样式 --- */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Source Serif Pro', serif;
    background-color: #121220;
    color: #ffffff;
    scroll-behavior: smooth;
    background-image: url('./assets/background_final_v3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

/* ====================================================== */
/* --- 英雄区域样式 --- */
/* ====================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 2rem 5rem 2rem; 
    box-sizing: border-box;
    position: relative; 
    background-image: 
        linear-gradient(to top, rgba(10, 10, 20, 1) 20%, rgba(10, 10, 20, 0.1) 60%),
        url('./assets/background_final_v3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

/* --- 英雄区域内的内容包装器 --- */
.hero-section .content-wrapper {
    position: relative;
    width: 100%;
    max-width: 950px;
    padding: 1rem;
    text-align: center;
}

/* --- 论文标题 --- */
.paper-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 2.5rem auto;
    max-width: 800px;
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(90deg, #a7cffd, #e19dff);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 
        0 0 5px rgba(200, 100, 255, 0.7),
        0 0 15px rgba(100, 180, 255, 0.5),
        0 0 30px rgba(18, 18, 32, 1);
}

/* --- 作者和机构 --- */
.author-section { margin-bottom: 1.5rem; }
.authors .author-line { display: flex; justify-content: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
.authors span, .affiliations p { text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 1); }
.authors span { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.affiliations { margin-top: 1.5rem; font-size: 1rem; color: #e0e0e0; }

/* --- 备注信息样式 --- */
.notes-section { font-size: 0.8rem; color: #b0b0b0; margin-bottom: 0.5rem; padding: 0 1rem; }
.notes-section p { margin: 0; text-shadow: 0 0 8px rgba(0, 0, 0, 1); }

/* --- 按钮样式 --- */
.button-container { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.action-button { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: #ffffff; text-decoration: none; padding: 12px 28px; border-radius: 50px; background: rgba(170, 70, 255, 0.5); border: 2px solid rgba(220, 180, 255, 0.7); transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.action-button:hover { background: rgba(200, 100, 255, 0.8); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(170, 70, 255, 0.6); }


/* ====================================================== */
/* --- 主内容滚动区域样式 --- */
/* ====================================================== */
.main-content {
    background-color: transparent; 
    position: relative;
    z-index: 5;
    padding: 0; 
    box-sizing: border-box;
}

.section {
    width: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}
.main-content .section:first-child { border-top: none; }

.main-content .content-wrapper {
    width: 100%;
    max-width: 950px;
    padding: 0 1rem;
    text-align: center;
}

.section-title { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; color: #e0e0e0; margin-bottom: 2rem; text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); }

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    text-align: left;
    background-color: rgba(18, 18, 32, 0.85);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.method-image { max-width: 100%; height: auto; border-radius: 12px; margin-top: 1.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }

/* --- Gallery 部分样式 --- */
.subsection-title { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: #c5c5c5; margin-top: 3rem; margin-bottom: 2rem; border-bottom: 2px solid rgba(170, 70, 255, 0.5); display: inline-block; padding-bottom: 0.5rem; }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

.comparison-pair {
    flex: 1 1 400px;
    max-width: 450px;
    background: rgba(18, 18, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}
.comparison-pair:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 40px rgba(170, 70, 255, 0.4); }
.comparison-content { display: flex; gap: 4px; }
.comparison-item { flex: 1; position: relative; overflow: hidden; cursor: pointer; }
.comparison-item img, .comparison-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.comparison-label { position: absolute; top: 8px; left: 8px; background-color: rgba(18, 18, 32, 0.8); color: #e0e0e0; padding: 4px 8px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; z-index: 10; }
.comparison-pair .caption { padding: 1rem 1.2rem; font-size: 0.9rem; color: #b0b0b0; margin: 0; background: rgba(0, 0, 0, 0.2); min-height: 50px; display: flex; align-items: center; justify-content: center; text-align: center; flex-grow: 1; }
.label-ours { background-color: rgba(170, 70, 255, 0.7); }

.gallery-grid-videos .comparison-pair {
    flex-basis: 100%;
    max-width: 800px; 
}

/* ====================================================== */
/* --- 视频控件样式 --- */
/* ====================================================== */
video::-webkit-media-controls { display: none !important; }
.comparison-item:hover video::-webkit-media-controls { display: block !important; }
video::-webkit-media-controls-panel {
    background-color: rgba(18, 18, 32, 0.7); 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 0 0 12px 12px;
}
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider {
    display: none !important;
}

/* ====================================================== */
/* --- Citation Section - Supplemental Styles (补充样式) --- */
/* ====================================================== */

/* 微调 BibTeX 容器内部，以容纳按钮 */
.bibtex-container-inner {
    position: relative;
    padding: 2rem;
    padding-top: 4rem; 
}

.bibtex-container-inner pre {
    color: #d0d0d0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    margin: 0;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(60, 60, 60, 0.7);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-btn:hover {
    background-color: rgba(80, 80, 80, 0.9);
    color: #fff;
}

.copy-btn.copied {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

