/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f111a; /* 深色背景 */
    color: #a0a0a0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace; /* 代码字体 */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 布局容器 --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- 头部区域 --- */
header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #2f334d;
    padding-bottom: 1rem;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64ffda; 
    font-size: 1rem;
}

/* --- 主要内容区 --- */
main section {
    margin-bottom: 3.5rem; 
}

h2 {
    color: #ccd6f6;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

h2::before {
    content: ">";
    color: #64ffda;
    margin-right: 10px;
    font-weight: normal;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* --- 个人简介布局 --- */
.intro-lead {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
    border-left: 4px solid #64ffda;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(100,255,218,0.05) 0%, transparent 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.info-columns {
    column-count: 2; 
    column-gap: 4rem; 
}

.info-item {
    font-size: 0.95rem;
    display: flex;
    align-items: baseline; 
    color: #b0b0b0;
    margin-bottom: 0.8rem; 
    break-inside: avoid; 
    page-break-inside: avoid;
}

.info-icon {
    margin-right: 12px;
    min-width: 20px; 
    text-align: center;
}

.highlight {
    color: #dcdcdc; 
    font-weight: bold;
}

/* --- 时间轴组件 --- */
.timeline {
    position: relative;
    margin: 1rem 0;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: #2f334d;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #171c28;
    border: 2px solid #64ffda;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover::before {
    background: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

.timeline-item:first-child::before {
    border-color: #fff; 
}

.timeline-date {
    font-size: 0.9rem;
    color: #64ffda;
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-family: 'Courier New', monospace;
}

.timeline-content {
    font-size: 0.95rem;
    color: #a0a0a0;
}

.timeline-content strong {
    color: #dcdcdc;
    font-size: 1.1rem;
}

/* --- JSON 动态渲染内容专属样式 --- */

/* 角色/职责文本 */
.timeline-role {
    color: #64ffda;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* 履历描述列表容器 */
.timeline-desc {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    color: #a0a0a0;
    list-style-type: disc; /* 圆点列表 */
}

/* 履历描述单行 */
.timeline-desc li {
    margin-bottom: 0.4rem;
}

/* 媒体图片容器 (并排显示) */
.timeline-media {
    margin-top: 1rem;
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 15px; 
}

/* 媒体图片样式 (高度限制) */
.timeline-media img {
    height: 160px; 
    width: auto; 
    max-width: 100%; 
    object-fit: cover; 
    border-radius: 6px;
    border: 1px solid #2f334d;
    transition: border-color 0.3s ease;
    cursor: zoom-in; /* [新增] 提示用户图片可点击放大 */
}

.timeline-media img:hover {
    border-color: #64ffda; 
}

/* --- [新增] 图片放大模态窗 (Lightbox) --- */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 半透明纯黑背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 保证在页面最上层 */
    opacity: 0; /* 默认完全透明 */
    pointer-events: none; /* 默认不可点击，避免遮挡网页 */
    transition: opacity 0.3s ease; /* 丝滑的淡入淡出 */
}

/* 激活状态 */
#image-modal.active {
    opacity: 1;
    pointer-events: auto; /* 激活后恢复可点击状态 */
    cursor: zoom-out; /* 提示点击任意处可缩小关闭 */
}

/* 模态窗里面的大图 */
#modal-img {
    max-width: 90%; /* 限制宽度不超出屏幕 */
    max-height: 90%; /* 限制高度不超出屏幕 */
    object-fit: contain; /* 保证完整显示不被裁剪 */
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95); /* 初始稍微缩小一点 */
    transition: transform 0.3s ease; /* 弹出时的缩放动画 */
}

/* 激活状态下大图恢复正常大小，形成弹性视效 */
#image-modal.active #modal-img {
    transform: scale(1);
}

/* --- 底部 --- */
footer {
    text-align: center;
    padding: 3rem 0; 
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #1f2233;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
}

a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

.icp-link {
    color: #666; 
}
.icp-link:hover {
    color: #888;
    text-decoration: none;
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .container { padding: 1.5rem; max-width: 100%; } 
    .info-columns { column-count: 1; }
    
    /* 手机端稍微缩小图片高度，避免占用太多空间 */
    .timeline-media img {
        height: 120px;
    }
}