/* ===== Global Futuristic / AI Theme ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #0a0d14;
    color: #e3e8f0;
    line-height: 1.7;
}

/* Containers */
.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    padding-top: 40px;
}

/* Navigation */
nav {
    background: #0e121b;
    border-bottom: 1px solid #1f2a3a;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    justify-content: center;
    gap: 40px;
}

nav a {
    color: #9bbcff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #6ea8ff;
    text-shadow: 0 0 8px #6ea8ff;
}

/* Section titles */
h2 {
    font-size: 1.8rem;
    border-left: 5px solid #508CFF;
    padding-left: 12px;
    margin-top: 50px;
}

/* Welcome page layout */
.welcome {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

/* Left column */
.profile-box {
    width: 280px;
    text-align: center;
}

.profile-box img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid #304b85;
    box-shadow: 0 0 12px #304b85;
}

.social-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links a {
    color: #9bbcff;
    text-decoration: none;
    font-weight: 500;
}

.social-links a:hover {
    color: #6ea8ff;
}

/* Right column intro */
.intro-text {
    flex: 1;
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Publication Cards */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.pub-card {
    background: #111722;
    padding: 18px;
    border-radius: 15px;
    border: 1px solid #1e2a3d;
    transition: 0.35s;
}

.pub-card:hover {
    box-shadow: 0 0 18px #2f4fa8;
    transform: translateY(-4px);
}

.pub-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b5ccff;
}

.pub-venue {
    font-size: 0.95rem;
    color: #6ea8ff;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    color: #607094;
    font-size: 0.9rem;
}
/* ============================= */
/* 1. Info Block (Education etc) */
/* ============================= */
.info-block {
    background: #111722;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #1e2a3d;
    margin-bottom: 22px;
    transition: 0.3s;
}

.info-block:hover {
    box-shadow: 0 0 12px #2f4fa8;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #b5ccff;
}

.info-sub {
    margin-top: 4px;
    color: #6ea8ff;
    font-size: 1rem;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 固定两列 */
    gap: 22px;
}


.exp-row {
    display: flex;
    gap: 22px;
    background: #111722;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #1e2a3d;
    margin-bottom: 22px;
    align-items: center;
    transition: 0.3s;
}

.exp-row:hover {
    box-shadow: 0 0 14px #2f4fa8;
}

.exp-row img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 8px;
    background: #0a0f18;
    padding: 8px;
    border: 1px solid #1e2a3d;
}

.exp-text {
    flex: 1;
}

.exp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b5ccff;
}

.exp-time {
    font-size: 0.95rem;
    color: #6ea8ff;
    margin: 4px 0 8px;
}

.exp-text p {
    margin: 0;
    opacity: 0.9;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, #1a2440, #080b12 70%);
    z-index: -3;
}

/* holographic grid */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(80,130,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(80,130,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* floating particles */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(100,150,255,0.7);
    border-radius: 50%;
    animation: float 12s infinite linear;
}

@keyframes float {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-120vh); opacity: 0; }
}


/* ======================== */
/* 🌐 Futuristic SVG Logos  */
/* ======================== */

.svg-logo {
    width: 95px;
    height: 95px;
    padding: 10px;
    background: rgba(20,25,40,0.7);
    border: 1px solid #1e2a3d;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links .icon {
    width: 18px;
    height: 18px;
    fill: #9bbcff;
    opacity: 0.9;
    transition: 0.25s;
}

.social-links a:hover .icon {
    fill: #6ea8ff;
    filter: drop-shadow(0 0 6px #6ea8ff);
}

.exp-title a {
    color: inherit;      /* 继承父元素颜色 */
    text-decoration: none; /* 去掉下划线 */
}

.pub-links {
    margin-top: 6px;
}

.pub-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 10px;
    font-size: 0.6em;
    color: #6ea8ff;
    border: 1px solid #6ea8ff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pub-btn:hover {
    background: #6ea8ff;
    color: #fff;
}

.link-btn {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 8px;
    background-color: #6ea8ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.link-btn:hover {
    background-color: #89b4ff;
}

.other-exp-grid {
    display: grid;
    gap: 22px;
    margin-top: 16px;
}

.other-exp-card {
    background: #111722;
    border: 1px solid #1e2a3d;
    border-radius: 12px;
    padding: 20px;
}

.other-exp-card:hover {
    box-shadow: 0 0 14px #2f4fa8;
}
.other-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.other-exp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b5ccff;
}

.other-exp-time {
    color: #6ea8ff;
    font-size: 0.95rem;
    margin-top: 4px;
}

.advisor-block {
    margin: 6px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.advisor-badge {
    background: transparent; 
    color: #6ea8ff; 
    padding: 3px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #6ea8ff; 
    border-radius: 8px; 
    text-decoration: none;
    transition: 0.25s;
}

.advisor-badge:hover {
    background: rgba(110,168,255,0.2); 
    box-shadow: 0 0 6px rgba(110,168,255,0.4); 
    color: #fff;
}

.advisor-remote {
    font-size: 0.85rem;
    color: #6ea8ff;
}


.other-exp-links a {
    display: inline-block;
    color: #6ea8ff;
    text-decoration: none;
    border: 1px solid #6ea8ff;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 6px;
    font-size: 0.6rem;
}

.other-exp-links a:hover {
    background: #6ea8ff;
    color: #111722;
}

.other-exp-card ul {
    margin: 0;
    padding-left: 0px;
    color: #ddd;
    line-height: 1.5;
}

.info-card {
    background: #111722;
    border: 1px solid #1e2a3d;
    border-radius: 12px;
    padding: 16px 20px;
    color: #b5ccff;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.info-card b {
    color: #6ea8ff;
}

.highlight {
    color: #6ea8ff;
    font-weight: 700;
}
.intro-text ul {
    padding-left: 20px;
    margin-top: 8px;
}
.intro-text li {
    margin-bottom: 6px;
}

.cv-btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6ea8ff, #89b4ff);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9faff;
}

.project-title {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #6ea8ff;
}

.project-desc {
    margin-bottom: 12px;
    font-size: 0.95em;
    color: #333;
}

.project-links a.pub-btn {
    margin-right: 10px;
}

.research-carousel {
    max-width: 900px;
    margin: 50px auto;
    position: relative;
}

.slides {
    position: relative;
}

.slide {
    display: none;
    flex-direction: column;
    background: #111722;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.caption {
    font-weight: bold;
    color: #6ea8ff;;
    margin-bottom: 8px;
}

.description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: left;
}

.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}


#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.pub-card.first-author {
    border: 1px solid #6ea8ff;  
    background: #121830;         
}
.pub-card.first-author .pub-title::after {
    color: #6ea8ff;
    font-weight: 600;
    font-size: 0.75em;
    margin-left: 6px;
}

/* --- Horizontal Parallel Timeline --- */

.cyber-timeline-section {
    padding: 10px 0;
    position: relative;
}

/* 进度条指示 */
.scroll-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    border-radius: 2px;
}
.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6ea8ff, #a064ff);
    box-shadow: 0 0 10px #6ea8ff;
    transition: width 0.1s ease-out;
}

/* 滚动容器 */
.timeline-scroll-viewer {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    padding: 60px 0 20px 0;
    scrollbar-width: thin;
}
.timeline-scroll-viewer:active { cursor: grabbing; }

/* 自定义发光滚动条 */
.timeline-scroll-viewer::-webkit-scrollbar { height: 6px; }
.timeline-scroll-viewer::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); margin: 0 10%; }
.timeline-scroll-viewer::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #6ea8ff, #a064ff);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(110, 168, 255, 0.3);
}

/* 画布 */
.timeline-canvas {
    position: relative;
    width: 1600px; /* 保证时间轴展开的精度 */
    height: 420px;
}

/* 年份刻度 */
.year-markers {
    display: flex;
    justify-content: space-between;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid rgba(110, 168, 255, 0.1);
}
.year-mark {
    flex: 1;
    border-left: 1px dashed rgba(110, 168, 255, 0.1);
    padding-left: 10px;
}
.year-mark span { color: #4a5568; font-size: 0.85rem; font-family: 'Courier New', monospace; }

/* 今天标记线 (动态更新) */
.today-line {
    position: absolute;
    top: -20px;
    bottom: 0;
    width: 2px;
    background: #6ea8ff;
    box-shadow: 0 0 15px #6ea8ff;
    z-index: 10;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.today-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #6ea8ff;
    color: #0a0d14;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* 经历条轨道 */
.experience-tracks {
    position: absolute;
    top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.track-row { position: relative; height: 65px; width: 100%; }

/* 经历条基础样式 */
.exp-bar {
    position: absolute;
    height: 60px;
    background: rgba(17, 23, 34, 0.8);
    border: 1px solid rgba(110, 168, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.exp-bar:hover {
    z-index: 20;
    border-color: #6ea8ff;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* 进行中项目 (Ongoing) 样式 */
.exp-bar.ongoing {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(90deg, rgba(17, 23, 34, 0.8), rgba(110, 168, 255, 0.15));
}
.exp-bar.auto-width { transition: width 1s ease, left 1s ease; }

/* 当前任务发光效果 (Stepfun) */
.current-task { border-color: #6ea8ff; box-shadow: 0 0 15px rgba(110, 168, 255, 0.2); }

.bar-content { display: flex; flex-direction: column; }
.bar-title { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; }
.bar-tag { font-size: 0.72rem; color: #6ea8ff; white-space: nowrap; margin-top: 3px; }

.scroll-hint { text-align: center; color: #4a5568; font-size: 0.75rem; margin-top: 15px; }
/* --- 赛博风格自定义滚动条 --- */

/* 1. 滚动条整体高度（横向滚动条看 height） */
#timelineViewer::-webkit-scrollbar {
    height: 8px; /* 建议不要太粗，保持精致感 */
    background-color: rgba(10, 13, 20, 0.4); /* 轨道背景，半透明深色 */
}

/* 2. 滚动条轨道（滑块跑动的底座） */
#timelineViewer::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02); /* 极其微弱的底色 */
    margin: 0 40px; /* 两端留空，让滚动条不顶格，更高级 */
}

/* 3. 滚动条滑块（用户拖拽的部分） */
#timelineViewer::-webkit-scrollbar-thumb {
    border-radius: 10px;
    /* 使用和你网页一致的蓝紫渐变色 */
    background: linear-gradient(90deg, #6ea8ff, #a064ff);
    /* 核心：添加发光效果 */
    box-shadow: 0 0 10px rgba(110, 168, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* 4. 鼠标悬停在滑块上时变亮 */
#timelineViewer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #89b4ff, #b78cff);
    box-shadow: 0 0 15px rgba(110, 168, 255, 0.8);
    cursor: grab;
}

/* 5. 针对 Firefox 浏览器的兼容性设置 */
#timelineViewer {
    scrollbar-width: thin; /* 变细 */
    scrollbar-color: #6ea8ff rgba(10, 13, 20, 0.5); /* 滑块颜色 轨道颜色 */
}

/* 6. 交互手势优化 */
#timelineViewer:active {
    cursor: grabbing; /* 拖拽时的抓取手势 */
}

/* 7. 布局微调：防止最后一条轨道离滚动条太近 */
.timeline-canvas {
    padding-bottom: 30px; /* 增加底部间距，让内容和滚动条有呼吸感 */
}

.other-exp-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 14px 0 10px 0;
}

.other-exp-images img {
    width: 100%;
    height: 90px;               /* 固定高度 */
    object-fit: cover;          /* 不拉伸 */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 可选：轻微 hover，显得高级但不浮夸 */
.other-exp-images img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
