/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* 主标题区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* 摘要部分 */
.abstract {
    padding: 80px 0;
    background: #f8fafc;
}

/* 整体框架部分 */
.framework {
    padding: 80px 0;
    background: #f8fafc;
}

.framework h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.framework-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.framework-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.framework-img:hover {
    transform: scale(1.02);
}

.framework-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.framework-description p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
}

.component-text {
    color: #2563eb;
    font-weight: 600;
    background-color: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #2563eb;
}

.core-component-text {
    color: #ea580c;
    font-weight: 700;
    background-color: #fff7ed;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #ea580c;
    text-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
}

.core-method-text {
    color: #059669;
    font-weight: 700;
    background-color: #f0fdf4;
    padding: 3px 8px;
    border-radius: 6px;
    border-left: 4px solid #059669;
    text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

.framework-pipeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.pipeline-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2563eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 600;
}

.step-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 方法介绍部分 */
.method-intro {
    padding: 80px 0;
    background: white;
}

.method-intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.intro-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.intro-image:hover {
    transform: scale(1.02);
}

.intro-pdf {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
}

.pdf-fallback {
    margin-top: 15px;
    text-align: center;
}

.pdf-fallback p {
    color: #64748b;
    font-size: 0.9rem;
}

.pdf-fallback a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.pdf-fallback a:hover {
    text-decoration: underline;
}

.method-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.4;
}

.method-description p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0;
}

.problem-text {
    color: #dc2626;
    font-weight: 600;
    background-color: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #dc2626;
}

.solution-text {
    color: #059669;
    font-weight: 600;
    background-color: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #059669;
}

.advantage-text {
    color: #7c3aed;
    font-weight: 600;
    background-color: #faf5ff;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid #7c3aed;
}

.abstract h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.abstract-content {
    max-width: 800px;
    margin: 0 auto;
}

.abstract-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.8;
}

/* 结果展示 */
.results {
    padding: 80px 0;
}

.results h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.result-item {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

/* .result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
} */
.result-image {
    width: 100%;
    height: auto;       /* 高度自适应 */
    border-radius: 8px;
    margin-bottom: 20px;
}


.result-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.result-item p {
    color: #64748b;
}

/* 方法对比 */
.comparison {
    padding: 80px 0;
    background: #f8fafc;
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.comparison-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.comparison-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e293b;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.results-table th,
.results-table td {
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #e5e5e5;
    white-space: nowrap;
}

.results-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

.results-table .our-method {
    background: #eff6ff;
    font-weight: 600;
}

.results-table .our-method td {
    color: #2563eb;
}

.results-table .section-header {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.results-table .section-header td {
    padding: 12px;
    font-size: 0.9rem;
}

.table-legend {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.table-legend p {
    margin: 0;
}

/* 视频展示 */
.video {
    padding: 80px 0;
}

.video h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

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

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

.video-item h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1e293b;
}

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

/* 论文信息 */
.paper {
    padding: 80px 0;
    background: #f8fafc;
}

.paper h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.paper-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.paper-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.authors {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 10px;
}

.venue {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.paper-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.paper-abstract h4 {
    margin-bottom: 15px;
    color: #1e293b;
}

.paper-abstract pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    
    .paper-info {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .method-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .method-description h3 {
        font-size: 1.3rem;
    }
    
    .framework-content {
        gap: 30px;
    }
    
    .framework-description h3 {
        font-size: 1.5rem;
    }
    
    .pipeline-step {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 1.2rem;
    }
    
    .framework-img {
        max-width: 100%;
    }
    
    .results-table {
        font-size: 0.8rem;
        min-width: 1000px;
    }
    
    .results-table th,
    .results-table td {
        padding: 6px 4px;
    }
    
    .table-legend {
        font-size: 0.8rem;
        padding: 12px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.frame-by-frame-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列 */
    gap: 20px; /* 图片之间的间距 */
    max-width: 1000px; /* 你可以改成自己需要的宽度 */
    margin: 0 auto; /* 居中 */
}

.video-item {
    text-align: center; /* 让标题居中 */
}

.frame {
    width: 100%;      /* 图片自动适应容器宽度 */
    height: auto;     /* 保持宽高比 */
    object-fit: contain; /* 确保完整显示，不裁剪 */
    display: block;
}



.video-item img.frame {
    width: 100%;   /* 图片填满容器 */
    max-width: 400px; /* 可根据需要调整最大宽度 */
    height: auto; /* 保持比例 */
    border-radius: 8px;
}

.slider-container {
    display: flex;
    justify-content: center; /* 居中显示滑动条 */
    align-items: center;
    margin-top: 20px;
    gap: 10px; /* 滑动条和数字间距 */
    width: 100%;
}

.slider-tip {
    text-align: center;      /* 居中 */
    margin-top: 8px;         /* 与滑动条间距 */
    font-size: 14px;         /* 字体大小，可调整 */
    color: #555;             /* 字体颜色，可调整 */
}
