/* 引入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

/* 设置全局样式 */
body {
    font-family:  'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    font-size: 16px;
    line-height: 1.6;
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    position: fixed;
    height: 100vh;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #ddd;
}

.sidebar-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #007acc;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #fff;
    background-color: #007acc;
}

.content {
    margin-left: 240px;
    padding: 20px;
    flex: 1;
}

.paper-info,
.paper-citation,
.contact-us {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.8em;
    font-family: 'Montserrat', sans-serif;
}

.paper-info h1{
    font-size: 2.5em;
    font-family: 'Montserrat', sans-serif;
}
.paper-citation h2,
.contact-us h2 {
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.authors {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.authors .author a, .authors .author {
    color: #007acc;
    text-decoration: none;
    font-weight: normal;
}

.authors .author a:hover {
    text-decoration: underline;
}

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

.links p {
    margin: 0;
}

.paper-info a {
    color: #007acc;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2em;
}

.paper-info a:hover {
    text-decoration: underline;
}
.affiliations {
    font-size: 1em;
    color: #555;
    
}

.comparison-section {
    margin-bottom: 40px;
    margin-top: 40px;
}

.comparison-section h2 {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.comparison-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
}

.comparison-note {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
    gap: 40px;
    padding: 30px;
    justify-items: center;
}

.comparison-item {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Academic Three-Line Table Styles */
.quantitative-results {
    margin-bottom: 40px;
}

.quantitative-results h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 100%;
    padding: 10px 0;
}

table {
    border-collapse: collapse;
    width: 70%;
    min-width: 800px;
    max-width: 1000px;
    font-size: 0.85em;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.2;
    margin: 0 auto;
}

/* Three-line table styling */
table {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

th, td {
    padding: 2px 4px;
    text-align: center;
    border: none;
    vertical-align: middle;
}

/* Header row styling */
thead tr {
    border-bottom: 1px solid #333;
}

th {
    font-weight: 600;
    color: #333;
    background-color: transparent;
}

/* Benchmark column styling */
.benchmark-col {
    text-align: left;
    font-weight: 600;
    vertical-align: middle;
}

/* Metric column styling */
.metric-col {
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
}

/* Method column styling */
.method-col {
    font-family: 'Times New Roman', Times, serif;
}

/* Best result highlighting */
.best-result {
    font-weight: bold;
}

/* Row separators for different benchmarks */
thead tr:first-child {
    border-bottom: 1px solid #333;
}

thead tr:last-child {
    border-bottom: 1px solid #333;
}

/* Separator between RealSR and RealLQ250 benchmarks */
.benchmark-separator {
    border-top: 1px solid #333;
    border-bottom: none;
}

/* Remove row hover effects for academic look */
tbody tr:hover {
    background-color: transparent;
}

/* Caption styling */
.table-caption {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Table number styling */
.table-number {
    font-weight: bold;
    margin-right: 5px;
}

/* Comparison grid layout for qualitative results */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
    gap: 40px;
    padding: 30px;
    justify-items: center;
}

.comparison-grid .comparison-item {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.comparison-grid .comparison-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.comparison-grid .comparison-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
}

.framework-section {
    margin-bottom: 40px;
    margin-top: 40px;
}

.framework-section h2 {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

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

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

.gallery-section {
    margin-bottom: 40px; /* 增加底部间距 */
    margin-top: 40px; /* 增加顶部间距 */
}


.gallery-section h2 {
    font-size: 1.5em; /* 调整标题字体大小 */
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    
    text-align: center; /* 文字居中 */
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
}

.gallery-item {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 400px;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* 图片对比滑动效果 */
.image-comparison {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: col-resize;
}

.image-comparison .before-image,
.image-comparison .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-comparison .after-image {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #007acc;
    cursor: col-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #007acc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    pointer-events: none;
    user-select: none;
}

.image-comparison:hover .slider-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-slider:hover {
    width: 6px;
}

.resolution {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    font-size: 0.9em;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(211, 211, 211, 0.5);
    color: #333;
    padding: 5px 10px;
    font-size: 1.2em;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: calc(100% - 100px); /* 留出空间给缩略图 */
    overflow: auto;
    position: relative;
}

.modal-content {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease; /* 添加平滑的缩放动画 */
    cursor: grab; /* 添加抓手光标 */
    width: auto; /* 确保初始宽度 */
    height: auto; /* 确保初始高度 */
    max-width: 100%;
    max-height: 100%;
}

.modal-content:active {
    cursor: grabbing; /* 添加拖动光标 */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.thumbnails {
    position: fixed;
    top: 50%;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80%;
    overflow-y: auto;
    transform: translateY(-50%);
    z-index: 2;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.thumbnails img:hover {
    transform: scale(1.1);
}

.thumbnail-active {
    border: 2px solid #007acc;
}