/* research.css - 科研经历页面专用样式 */

/* === 基础全局 === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px 80px 20px;
    /* 隐藏 body 滚动条 */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }

#layout-content {
    max-width: 1000px; /* 比主页稍宽以容纳更多内容 */
    margin: 0 auto;
    padding-top: 20px;
}

/* === 标题区域 === */
.research-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.research-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.back-link {
    padding: 8px 16px;
    background-color: #f5f7fa;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #e4e7eb;
    text-decoration: none;
}
/* === 高冷简练科技感卡片 === */
.project-overview-card {
    background: linear-gradient(135deg, 
        #fafcff 0%, 
        #f8fbff 45%,
        #f5f9ff 55%,
        #f8fbff 100%);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224, 232, 255, 0.8);
    box-shadow: 
        0 12px 30px rgba(0, 60, 120, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* 极简几何装饰 */
.tech-decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

.tech-decoration:nth-child(1) {
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: 1.5px solid #4a5b7a;
    transform: rotate(15deg);
}

.tech-decoration:nth-child(2) {
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border: 1px solid #4a5b7a;
    border-radius: 50%;
}

.tech-decoration:nth-child(3) {
    top: 50%;
    left: 20px;
    width: 25px;
    height: 25px;
    border: 1px solid #4a5b7a;
    transform: rotate(45deg);
}

.project-overview-card h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a2b4c;
    margin: 0 0 25px 0;
    padding-bottom: 25px;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    animation: titleFloat 6s ease-in-out infinite;
}

/* 字体浮动动画 */
@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 简洁的标题装饰线 */
.project-overview-card h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #3a6fb5, 
        transparent);
}

.project-overview-card p {
    font-size: 17px;
    color: #4a5b7a;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-weight: 400;
    opacity: 0.9;
    animation: textFloat 6s ease-in-out infinite 0.3s;
}

/* 文字浮动动画（轻微延迟） */
@keyframes textFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* 微妙的悬停效果 */
.project-overview-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 18px 35px rgba(0, 60, 120, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(200, 215, 255, 0.9);
}

/* 悬停时暂停动画 */
.project-overview-card:hover h1,
.project-overview-card:hover p {
    animation-play-state: paused;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .project-overview-card {
        padding: 40px 25px;
        margin-bottom: 40px;
        border-radius: 14px;
    }
    
    .project-overview-card h1 {
        font-size: 28px;
        letter-spacing: 0.8px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        animation: titleFloatMobile 6s ease-in-out infinite;
    }
    
    /* 移动端减少浮动幅度 */
    @keyframes titleFloatMobile {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-2px);
        }
    }
    
    .project-overview-card p {
        font-size: 16px;
        line-height: 1.6;
        animation: textFloatMobile 6s ease-in-out infinite 0.3s;
    }
    
    @keyframes textFloatMobile {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-1px);
        }
    }
    
    .tech-decoration {
        opacity: 0.05;
    }
    
    .tech-decoration:nth-child(1) {
        width: 50px;
        height: 50px;
        right: 20px;
        top: 20px;
    }
    
    .tech-decoration:nth-child(2) {
        width: 35px;
        height: 35px;
        left: 20px;
        bottom: 20px;
    }
    
    .tech-decoration:nth-child(3) {
        width: 20px;
        height: 20px;
        left: 15px;
    }
}

/* === 项目卡片 === */
.project-card {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.project-card:last-child {
    border-bottom: none;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #0066cc;
    border-radius: 3px;
}

.project-meta {
    font-size: 15px;
    color: #888;
    margin-bottom: 20px;
    font-weight: 500;
}

.project-description {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

/* === 技术标签 === */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    display: inline-block;
    background: #eef6fc;
    color: #2b6cb0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(43, 108, 176, 0.1);
}

/* === 贡献亮点 === */
.contribution-highlight {
    background: #fff9e6;
    padding: 18px 22px;
    border-radius: 10px;
    border-left: 4px solid #ffcc00;
    margin: 25px 0;
}

.contribution-highlight strong {
    color: #333;
}

.contribution-highlight span {
    color: #666;
}

/* === 项目影响网格 === */
.project-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.impact-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.impact-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px 0;
}

.impact-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* === 图片展示区 === */
.image-showcase {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.image-showcase h3 {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 0 0 20px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

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

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 12px;
    background: #fff;
    font-size: 13px;
    color: #666;
    text-align: center;
    border-top: 1px solid #f5f5f5;
}

/* === 时间线指示器（可选）=== */
.timeline-indicator {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.timeline-indicator:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0066cc;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0066cc;
}

/* === 页脚 === */
#footer {
    margin-top: 80px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    body {
        padding: 0 15px 60px 15px;
    }
    
    .research-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-impact {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 20px;
    }
}

/* 滑动容器基础样式 */
.slide-container {
    position: relative;
    margin: 30px 0;
    padding: 0 40px; /* 给导航按钮留空间 */
}

/* 滑动内容区域 */
.slide-content {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 10px 0;
    
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.slide-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 滑动项 */
.slide-item {
    flex: 0 0 300px; /* 固定宽度，不压缩 */
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.slide-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef6fc;
}

.slide-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 图片滑动项 */
.image-slide-item {
    flex: 0 0 280px;
    height: 320px;
    padding: 0;
    overflow: hidden;
}

.image-slide-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.image-slide-item .slide-caption {
    padding: 18px;
    font-size: 14px;
    color: #555;
    text-align: center;
    background: #fff;
}

/* 滑动导航按钮 */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    z-index: 10;
}

.slide-nav:hover {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.slide-nav.prev {
    left: 0;
}

.slide-nav.next {
    right: 0;
}

/* 滑动指示器 */
.slide-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.slide-dot.active {
    background: #0066cc;
    width: 24px;
    border-radius: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .slide-container {
        padding: 0 30px;
    }
    
    .slide-item {
        flex: 0 0 280px;
    }
    
    .image-slide-item {
        flex: 0 0 260px;
        height: 300px;
    }
    
    .slide-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
/* 滑动容器样式 - 添加到页面内 */
        .slide-container {
            position: relative;
            margin: 30px 0;
            padding: 0 40px;
        }
        
        .slide-content {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            scroll-behavior: smooth;
            padding: 10px 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        
        .slide-content::-webkit-scrollbar {
            display: none;
        }
        
        .slide-item {
            flex: 0 0 300px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #eee;
            padding: 25px;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        
        .slide-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        }
        
        .slide-item h3 {
            font-size: 18px;
            font-weight: 600;
            color: #111;
            margin: 0 0 15px 0;
            padding-bottom: 12px;
            border-bottom: 2px solid #eef6fc;
        }
        
        .slide-item p {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
            margin: 0 0 10px 0;
        }
        
        .image-slide-item {
            flex: 0 0 280px;
            height: 320px;
            padding: 0;
            overflow: hidden;
        }
        
        .image-slide-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px 8px 0 0;
        }
        
        .image-slide-item .slide-caption {
            padding: 18px;
            font-size: 14px;
            color: #555;
            text-align: center;
            background: #fff;
        }
        
        .slide-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: white;
            border: 1px solid #eee;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            color: #666;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.2s;
            z-index: 10;
        }
        
        .slide-nav:hover {
            background: #f8f9fa;
            color: #333;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }
        
        .slide-nav.prev {
            left: 0;
        }
        
        .slide-nav.next {
            right: 0;
        }
        
        @media (max-width: 768px) {
            .slide-container {
                padding: 0 30px;
            }
            
            .slide-item {
                flex: 0 0 280px;
            }
            
            .image-slide-item {
                flex: 0 0 260px;
                height: 300px;
            }
            
            .slide-nav {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }
        }
/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}