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

/* 渐出动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 渐出动画类 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* 延迟渐出类 */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #7EC0EE;
    background-image: 
        linear-gradient(#7EC0EE 0%, #7EC0EE 80%, #8BAA36 80%, #8BAA36 100%),
        /* 云朵 */
        radial-gradient(circle at 10% 15%, #FFFFFF 20px, transparent 21px),
        radial-gradient(circle at 25% 12%, #FFFFFF 15px, transparent 16px),
        radial-gradient(circle at 15% 18%, #FFFFFF 10px, transparent 11px),
        radial-gradient(circle at 40% 10%, #FFFFFF 25px, transparent 26px),
        radial-gradient(circle at 60% 14%, #FFFFFF 18px, transparent 19px),
        radial-gradient(circle at 75% 12%, #FFFFFF 22px, transparent 23px),
        radial-gradient(circle at 90% 16%, #FFFFFF 16px, transparent 17px);
    background-attachment: fixed;
    scroll-behavior: smooth;
    position: relative;
}

/* 草地纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0vh;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 33.333%, #789626 33.333%, #789626 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, #789626 33.333%, #789626 66.667%, transparent 66.667%);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

/* 时间线部分样式 - Minecraft风格 */
.timeline-section {
    padding: 80px 0;
    background-color: #8BAA36;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

/* 时间线装饰元素 */
.timeline-decoration {
    height: 40px;
    background-color: #5D7031;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 #000;
    max-width: 300px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
}

.timeline-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #FF5555;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 时间线中轴线 - 蛇形虚线效果 */
.timeline::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    left: 50%;
    top: 0%;
    margin-left: -15px;
    /* 使用新的SVG背景:
      - d='M15,0 C-30,33 60,66 15,100'  (蛇形 S 曲线)
      - stroke-width='8'                  (线条粗细)
      - stroke-dasharray='15 10'        (虚线样式: 15长, 10空)
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 100' preserveAspectRatio='none'%3E%3Cpath d='M15,0 C-30,33 60,66 15,100' stroke='%235D7031' stroke-width='8' fill='none' stroke-linecap='round' stroke-dasharray='5 10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
}


/* 时间线项目 */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 左侧项目 */
.timeline-item.left {
    left: -50%;
}

/* 右侧项目 */
.timeline-item.right {
    left: 50%;
}

/* 时间线内容 */
.timeline-content {
    padding: 25px;
    background-color: #C6D39C;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 #000;
    position: relative;
}

/* 时间线内容链接 */
.timeline-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 链接悬停效果 */
.timeline-content-link:hover {
    transform: translateY(-3px);
}

.timeline-content-link:hover .timeline-content {
    box-shadow: 8px 8px 0 #000;
    background-color: #D6E3AC; /* 稍微变亮的背景色 */
    cursor: pointer; /* 显示指针光标 */
}

/* 左侧内容添加右侧箭头 */
.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #C6D39C;
    top: 30px;
    right: -20px;
    z-index: 1;
}

.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid #000;
    top: 26px;
    right: -24px;
    z-index: 0;
}

/* 右侧内容添加左侧箭头 */
.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 20px solid #C6D39C;
    top: 30px;
    left: -20px;
    z-index: 1;
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-right: 24px solid #000;
    top: 26px;
    left: -24px;
    z-index: 0;
}

/* 时间日期 */
.timeline-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFF;
    background-color: #5D7031;
    padding: 8px 12px;
    border: 3px solid #000;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0 #000;
}

/* 时间线标题 */
.timeline-title {
    font-size: 1.3rem;
    color: #FFFF55;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 15px;
    background-color: #8BAA36;
    padding: 10px;
    border: 3px solid #000;
    display: inline-block;
    box-shadow: 4px 4px 0 #000;
}

/* 时间线描述 */
.timeline-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #E8F5E8;
    padding: 15px;
    border: 2px solid #000;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
    }
    
    .timeline-item.left .timeline-content::after,
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::after,
    .timeline-item.right .timeline-content::before {
        display: none;
    }
}

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* 导航栏中的社交链接容器 */
header .social-links {
    display: flex;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

/* 导航栏样式 - Minecraft风格 */
header {
    background-color: rgba(60, 60, 60, 0.8);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 1000;
    border-bottom: 4px solid #666;
    transition: all 0.2s ease;
    /* 添加导航栏轨迹容器 */
    overflow: visible;
}

header.scrolled {
    background-color: #3C3C3C;
    padding: 10px 0;
    height: 50px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    color: #FFFF55;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.2s ease;
    text-shadow: 2px 2px 0 #000;
}

.logo a:hover {
    color: #FFFF00;
}

.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.menu ul li {
    margin-left: 15px;
    position: relative;
}

/* 导航栏轨迹效果 */
.menu ul::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    right: 0px;
    height: 4px;
    background-color: #5D5D5D;
    border: 2px solid #000;
    border-radius: 0;
    z-index: -1;
}

/* 导航项样式 */
.menu ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 5px 10px;
    background-color: #5D5D5D;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    position: relative;
    z-index: 1;
}

/* 导航项悬停效果 */
.menu ul li a:hover {
    background-color: #7B7B7B;
    top: -2px;
    left: -2px;
    box-shadow: 4px 4px 0 #000;
}

/* 导航项点击效果 */
.menu ul li a:active {
    top: 0;
    left: 0;
    box-shadow: 1px 1px 0 #000;
}

/* 导航项当前状态轨迹效果 */
.menu ul li.current a::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #FFFF55;
    border: 2px solid #000;
    border-radius: 0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

/* 主页英雄部分样式 - Minecraft风格 */
.hero {
    background-color: transparent;
    color: #FFFFFF;
    padding: 150px 0 120px;
    margin-top: 60px;
    position: relative;
    overflow: visible;
    min-height: 80vh;
}

/* 树木样式 - 简化版本 */
.tree-left {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 40px;
    height: 120px;
    background-color: #8B4513;
    border: 2px solid #000;
    z-index: 1;
}

.tree-left::before {
    content: '';
    position: absolute;
    bottom: 120px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-color: #228B22;
    border: 2px solid #000;
}

.tree-right {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 50px;
    height: 150px;
    background-color: #8B4513;
    border: 2px solid #000;
    z-index: 1;
}

.tree-right::before {
    content: '';
    position: absolute;
    bottom: 150px;
    left: -25px;
    width: 100px;
    height: 100px;
    background-color: #228B22;
    border: 2px solid #000;
}

.tree-small {
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 30px;
    height: 90px;
    background-color: #8B4513;
    border: 2px solid #000;
    z-index: 1;
}

.tree-small::before {
    content: '';
    position: absolute;
    bottom: 90px;
    left: -20px;
    width: 70px;
    height: 70px;
    background-color: #228B22;
    border: 2px solid #000;
}

/* 云朵样式 */
.cloud-1,
.cloud-2,
.cloud-3 {
    position: absolute;
    background-color: #FFFFFF;
    border: 2px solid #000;
    z-index: 1;
}

.cloud-1 {
    top: 30px;
    right: 15%;
    width: 80px;
    height: 40px;
}

.cloud-2 {
    top: 100px;
    left: 15%;
    width: 60px;
    height: 30px;
}

.cloud-3 {
    top: 50px;
    left: 40%;
    width: 70px;
    height: 35px;
}

/* 装饰物品 */
.grass-block {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 30px;
    height: 30px;
    background-color: #8BAA36;
    border: 2px solid #000;
    z-index: 1;
}

.grass-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #5D7031;
}

.grass-block-2 {
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 30px;
    height: 30px;
    background-color: #8BAA36;
    border: 2px solid #000;
    z-index: 1;
}

.grass-block-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #5D7031;
}

.flower {
    position: absolute;
    bottom: 0;
    left: 35%;
    width: 16px;
    height: 20px;
    z-index: 2;
}

.flower::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #FF5555;
    border: 1px solid #000;
    top: 0;
    left: 3px;
}

.flower::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 10px;
    background-color: #228B22;
    border: 1px solid #000;
    bottom: 0;
    left: 6px;
}

.mushroom {
    position: absolute;
    bottom: 0;
    right: 35%;
    width: 20px;
    height: 24px;
    z-index: 2;
}

.mushroom::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 12px;
    background-color: #FF5555;
    border: 2px solid #000;
    top: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.mushroom::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    background-color: #FFF;
    border: 1px solid #000;
    bottom: 0;
    left: 7px;
}

/* 确保内容区域在装饰元素之上 */
.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* 左侧部分 - 头像和名字 */
.left-section {
    width: 300px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* profile-picture: 头像的内层容器样式 */
.profile-picture {
    margin-bottom: 20px; /* 头像底部边距，与下方元素保持距离 */
    border: 4px solid #000; /* 4像素宽的黑色边框 */
    box-shadow: 4px 4px 0 #000; /* 向右下方偏移4像素的黑色阴影，增强立体感 */
    position: relative; /* 相对定位，允许后续使用绝对定位的子元素相对于此容器定位 */
    /* 移除left偏移，确保图片位置固定 */
}

/* avatar: 头像图片样式 */
.avatar {
    width: 320px; /* 头像宽度设置为300像素 */
    height: 460px; /* 头像高度设置为400像素 */
    border-radius: 0; /* 边框圆角设为0，符合Minecraft像素风格 */
    object-fit: cover; /* 图片保持比例并填充整个容器，可能会裁剪部分内容 */
    image-rendering: pixelated; /* 像素风格渲染，保持Minecraft游戏的像素感 */
}

/* 右侧部分 - 其他信息 */
.right-section {
    flex: 1;
    min-width: 300px;
    padding-left: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 头像容器样式 - 外层容器，控制头像在页面中的水平位置 */
.avatar-container {
    display: inline-block; /* 行内块元素，使元素可以在一行内显示，同时保持块元素的特性 */
    vertical-align: middle; /* 垂直居中对齐，确保与旁边的名字容器在同一水平线上 */
    margin-right: 40px; /* 头像与文字之间的间距，设置为40像素 */
    margin-left: 300px; /* 头像距离页面最左侧300像素 */
}

/* 名字容器样式 */
.name-container {
    display: block;
    position: absolute;
    left: 800px;
    top: calc(50% - 200px);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* 文字部分样式 */
.text-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保两个容器在同一水平线上 */
.hero .container {
    text-align: center;
    margin-top: 40px;
}

/* 打字机效果相关样式 */
#typing-text {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
}

#typing-text .highlight {
    color: #FF5500; /* 保持原有的高亮颜色 */
    position: relative;
    display: inline-block;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #FFFF55;
    text-shadow: 3px 3px 0 #000;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #98FB98;
    text-shadow: 2px 2px 0 #000;
}

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

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFFFFF;
    background-color: #3C3C3C;
    padding: 15px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #5D5D5D;
    border-radius: 0;
    color: #FFFFFF;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

/* 导航栏中的社交链接样式 */
header .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.social-icon:hover {
    background-color: #7B7B7B;
    top: -2px;
    left: -2px;
    box-shadow: 4px 4px 0 #000;
    transform: none;
}

.social-icon:active {
    top: 0;
    left: 0;
    box-shadow: 1px 1px 0 #000;
}



/* 关于我部分样式 - Minecraft风格 */
.about {
    padding: 80px 0;
    background-color: #8BAA36;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: #FFFFFF;
    text-shadow: 3px 3px 0 #000;
    background-color: #5D7031;
    padding: 15px;
    border: 4px solid #000;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 4px 4px 0 #000;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: #FF5555;
    margin: 10px auto 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: #C6D39C;
    padding: 30px;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
}

/* 技能部分样式 - Minecraft风格 */
.skills {
    padding: 80px 0;
    background-color: #2C62A0;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.skills-category {
    margin-bottom: 50px;
    background-color: #3C8BDF;
    padding: 25px;
    border-radius: 0;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 0 #000;
    background-color: #1E4A7A;
    padding: 10px;
    border: 3px solid #000;
    display: inline-block;
    box-shadow: 3px 3px 0 #000;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 0 #000;
    font-size: 1.1rem;
}

.skill-bar {
    width: 100%;
    height: 20px;
    background-color: #2A2A2A;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #000;
}

.skill-progress {
    height: 100%;
    background-color: #4ADE80;
    border-radius: 0;
    transition: width 1s ease-in-out;
    image-rendering: pixelated;
    background-image: 
        linear-gradient(90deg, transparent 8px, rgba(255, 255, 255, 0.2) 8px, rgba(255, 255, 255, 0.2) 10px, transparent 10px),
        linear-gradient(transparent 8px, rgba(255, 255, 255, 0.1) 8px, rgba(255, 255, 255, 0.1) 10px, transparent 10px);
    background-size: 10px 10px;
}

/* 项目经验部分样式 - Minecraft风格 */
.projects {
    background-color: #A55233;
    padding: 80px 0;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.project-card {
    background-color: #E8A87C;
    border-radius: 0;
    overflow: hidden;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 10px 10px 0 #000;
}

.project-image {
    height: 200px;
    overflow: hidden;
    border-bottom: 4px solid #000;
    image-rendering: pixelated;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFFF55;
    text-shadow: 2px 2px 0 #000;
    font-weight: bold;
}

.project-description {
    margin-bottom: 20px;
    color: #333;
    font-size: 1rem;
    background-color: #F4C430;
    padding: 10px;
    border: 2px solid #000;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: #5D5D5D;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 0;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    font-weight: bold;
}

.project-link {
    display: inline-block;
    color: #FFFFFF;
    background-color: #FF5555;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
}

.project-link:hover {
    background-color: #FF0000;
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 5px 5px 0 #000;
}

.project-link:active {
    transform: translateY(0) translateX(0);
    box-shadow: 1px 1px 0 #000;
}




/* 页脚样式 - Minecraft风格 */
.footer {
    background-color: #3C3C3C;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
    border-top: 4px solid #000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 20px;
    background-color: #5D5D5D;
    padding: 15px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
}

.footer-links a {
    color: #FFFF55;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #FFFF00;
    text-shadow: 2px 2px 0 #000;
    transform: translateY(-2px);
}

/* 博客页面样式 - Minecraft风格 */
.blog {
    padding: 80px 0;
    background-color: #7C7463;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background-color: #A09688;
    padding: 30px;
    border-radius: 0;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 10px 10px 0 #000;
}

.blog-header {
    margin-bottom: 20px;
    background-color: #8C8070;
    padding: 15px;
    border-bottom: 3px solid #000;
}

.blog-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.blog-title a {
    color: #FFFF55;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    transition: all 0.2s ease;
    font-weight: bold;
}

.blog-title a:hover {
    color: #FFFF00;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 0 #000;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #666;
    padding: 5px 10px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.blog-excerpt {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #555;
    padding: 15px;
    border: 2px solid #000;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.blog-readmore {
    display: inline-block;
    color: #FFFFFF;
    background-color: #FF5555;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
}

.blog-readmore:hover {
    background-color: #FF0000;
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 5px 5px 0 #000;
}

.blog-readmore:active {
    transform: translateY(0) translateX(0);
    box-shadow: 1px 1px 0 #000;
}

/* 博客页面样式 - 三栏布局 */
.blog-container {
    display: grid;
    grid-template-columns: 220px 1fr 250px; /* 调整列宽，让中间更宽 */
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px 20px;
    padding-top: 20px; /* 添加适当的顶部内边距 */
    margin-top: 80px; /* 调整外边距，与导航栏保持合适间距 */
}

/* 左侧导航样式 - Minecraft风格 */
.blog-sidebar-left {
    background-color: #A09688; /* Minecraft木材质颜色 */
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 50px;
}

.blog-nav h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF55; /* Minecraft黄色文字 */
    text-shadow: 2px 2px 0 #000;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
    background-color: #8C8070;
    padding: 10px;
    text-align: center;
}

.blog-nav ul {
    list-style: none;
    padding: 0;
}

.blog-nav li {
    margin-bottom: 8px;
}

.blog-nav a {
    display: block;
    padding: 8px 12px;
    color: #FFF;
    text-decoration: none;
    background-color: #666;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
}

.blog-nav a:hover {
    background-color: #888;
    color: #FFF;
    transform: translateX(3px) translateY(-3px);
    box-shadow: 5px 5px 0 #000;
}

/* 中间内容区样式 - 增加宽度并融合MC元素 */
.blog-main-content {
    background-color: #A09688; /* Minecraft木材质颜色 */
    border: 4px solid #000;
    box-shadow: 5px 5px 0 #000;
    padding: 40px 25px; /* 左右padding减少25px，总共缩小50px */
    margin-top: 20px;
}



.article-meta i {
    margin-right: 5px;
}

/* 文章标题样式 */
.blog-article h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFF55; /* Minecraft黄色文字 */
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 20px;
    background-color: #666;
    padding: 15px;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
}

/* 文章元数据样式 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #FFF;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background-color: #555;
    padding: 10px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.article-meta i {
    color: #4ADE80;
    margin-right: 5px;
}

/* 标签样式 */
.tags {
    display: flex;
    gap: 8px;
}

.tag {
    background-color: #4ADE80;
    color: #000;
    padding: 3px 10px;
    border: 2px solid #000;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

/* 分隔线样式 */
.blog-article hr {
    border: none;
    border-top: 3px solid #000;
    margin-bottom: 30px;
}

/* 阅读收获区域 - Minecraft风格 */
.takeaway-section {
    background-color: #8C8070; /* 深色木头 */
    border: 3px solid #000;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 5px 5px 0 #000;
}

.takeaway-section h2 {
    color: #4ADE80; /* Minecraft绿色文字 */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background-color: #666;
    padding: 10px;
    border: 2px solid #000;
    display: inline-block;
}

.takeaway-section ul {
    margin: 0;
    padding-left: 0;
}

.takeaway-section li {
    margin-bottom: 8px;
    color: #FFF;
    background-color: #666;
    padding: 8px 12px 8px 25px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.takeaway-section li:before {
    content: "●";
    color: #FFFF55;
    position: absolute;
    left: 8px;
    font-size: 0.8rem;
}

.article-body {
    line-height: 1.8;
    color: #FFF;
}

.article-body h2 {
    color: #4ADE80; /* Minecraft绿色文字 */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    text-shadow: 2px 2px 0 #000;
    padding: 15px;
    background-color: #5D5D5D;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.article-body h2[id] {
    scroll-margin-top: 30px;
}

.article-body h3 {
    color: #FFF;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 0 #000;
}

.article-body p {
    margin-bottom: 20px;
    background-color: #555;
    padding: 15px;
    border: 2px solid #000;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.article-body li {
    margin-bottom: 10px;
    background-color: #666;
    padding: 10px 12px 10px 30px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.article-body ul li:before {
    content: "▸";
    color: #FFFF55;
    position: absolute;
    left: 10px;
    font-weight: bold;
}
.article-body ul li:before {
    content: none;
}

/* 代码块样式 - Minecraft风格 */
.article-body pre {
    background-color: transparent;
    color: #FFFFFF;
    padding: 20px;
    margin: 25px 0;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    overflow-x: auto;
    font-family: 'Microsoft YaHei UI', 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    line-height: 1.5;
}

.article-body code {
    font-family: 'Microsoft YaHei UI', 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: transparent;
    color: #ffffff;
    padding: 2px 4px;
}

.article-navigation {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.back-to-blog {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-to-blog:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 右侧目录样式 - Minecraft风格 */
.blog-sidebar-right {
    background-color: #A09688; /* Minecraft木材质颜色 */
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 50px;
}

.toc h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF55; /* Minecraft黄色文字 */
    text-shadow: 2px 2px 0 #000;
    padding: 10px;
    background-color: #8C8070;
    border: 2px solid #000;
    text-align: center;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    display: block;
    padding: 8px 10px;
    color: #FFF;
    text-decoration: none;
    background-color: #666;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.toc a:hover {
    background-color: #888;
    color: #FFF;
    transform: translateX(3px) translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

/* 返回按钮样式 - Minecraft风格 */
.article-navigation {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: center;
    padding-top: 30px;
}

.back-to-blog {
    display: inline-block;
    color: #FFFFFF;
    background-color: #FF5555; /* Minecraft红色 */
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.back-to-blog:hover {
    background-color: #FF0000;
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 7px 7px 0 #000;
}

.back-to-blog:active {
    transform: translateY(0) translateX(0);
    box-shadow: 2px 2px 0 #000;
}

/* 特定笔记页面的样式 */
.notes-content {
    background-color: #A09688;
    padding: 30px;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
}

.notes-content h2 {
    color: #4ADE80;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
    font-size: 1.8rem;
    background-color: #5D5D5D;
    padding: 15px;
    border: 2px solid #000;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 180px 1fr 200px;
        gap: 20px;
        max-width: 1300px;
    }
    
    .blog-sidebar-left,
    .blog-sidebar-right {
        padding: 20px;
    }
    
    .blog-main-content {
        padding: 30px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px 20px;
    }
    
    .blog-sidebar-left,
    .blog-sidebar-right {
        position: static;
    }
    
    .blog-sidebar-right {
        display: none; /* 在中等屏幕上隐藏右侧目录 */
    }
    
    .blog-main-content {
        margin-top: 10px;
        padding: 25px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px 15px;
    }
    
    .blog-main-content {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 1.4rem;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
    }
    
    .blog-sidebar-left {
        padding: 15px;
    }
}

/* 博客内容区域基础样式 - Minecraft风格 */
section.blog-content {
    padding: 60px 0;
    background-color: #7C7463; /* Minecraft地面颜色 */
    min-height: 70vh;
    background-image: 
        linear-gradient(45deg, #6B6253 25%, transparent 25%),
        linear-gradient(-45deg, #6B6253 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #6B6253 75%),
        linear-gradient(-45deg, transparent 75%, #6B6253 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* 前言部分样式 */
#intro {
    background-color: #8C8070;
    padding: 20px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    margin-bottom: 30px;
}

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

/* 返回顶部按钮样式 - Minecraft风格 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4ADE80;
    color: #FFFFFF;
    border: 3px solid #000;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 3px 3px 0 #000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #22C55E;
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 6px 6px 0 #000;
}

.back-to-top:active {
    transform: translateY(0) translateX(0);
    box-shadow: 1px 1px 0 #000;
}

/* 响应式设计 - Minecraft风格 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #3C3C3C;
        transition: left 0.3s ease;
        z-index: 999;
        border-top: 4px solid #000;
    }

    .menu.active {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        padding: 20px;
    }

    .menu ul li {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .menu ul li a {
        display: block;
        text-align: center;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        color: #FFFFFF;
        background-color: #5D5D5D;
        padding: 8px 12px;
        border: 2px solid #000;
        box-shadow: 2px 2px 0 #000;
        cursor: pointer;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .right-section {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 10px;
    }
    
    .about-content,
    .skills-category,
    .project-card,
    .contact-info,
    .contact-form,
    .blog-post {
        padding: 20px;
    }
}