* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

header {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    animation: gradientBG 15s ease infinite;
    background-size: 300% 300%;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFE66D;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

main {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px auto;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

main:hover {
    transform: translateY(-5px);
}

footer {
    background: linear-gradient(45deg, #4ECDC4, #45B7D1, #FF6B6B);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 添加新的容器样式 */
.header-container {
    display: flex;
    align-items: center;
    gap: 20px;  /* 头像和标题之间的间距 */
    justify-content: center;
}

/* 修改头像容器样式 */
.avatar-container {
    margin: 0 20px;
    position: relative;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    padding: 3px;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

/* 添加头像动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.avatar {
    animation: float 3s ease-in-out infinite;
}

/* 表格悬停效果 */
.custom-table tr {
    transition: all 0.3s ease;
}

.custom-table tr:hover {
    background-color: #FFE66D20;
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 添加背景动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 页脚也添加渐变效果 */
footer {
    background: linear-gradient(45deg, #4ECDC4, #45B7D1, #FF6B6B);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
}

/* 标题文字发光效果 */
h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(255,230,109,0.5),
                     0 0 20px rgba(255,230,109,0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(78,205,196,0.7),
                     0 0 25px rgba(78,205,196,0.5);
    }
}

/* 添加彩虹分隔线 */
hr {
    height: 3px;
    border: none;
    background: linear-gradient(to right, 
        #FF6B6B, 
        #4ECDC4, 
        #FFE66D, 
        #45B7D1
    );
    margin: 20px 0;
    border-radius: 2px;
}

/* 卡片容器式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* 重新设计进度条样式 */
.progress-bar {
    width: 100%;
    height: 30px;  /* 增加进度条高度 */
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 0 4px;
    position: relative;
    display: flex;
    align-items: center;
}

.progress-fill {
    height: 22px;  /* 增加填充条高度 */
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
    border-radius: 11px;
    transition: width 1s ease;
}

.progress-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 14px;  /* 增加进度文字大小 */
    font-weight: bold;
    z-index: 1;
}

/* 状态标签样式 */
.status-badge {
    padding: 8px 16px;  /* 增加状态标签内边距 */
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    min-width: 100px;  /* 设置最小宽度 */
    text-align: center;
}

.status-badge.progress {
    background-color: #FFE66D;
    color: #333;
}

.status-badge.complete {
    background-color: #4ECDC4;
    color: white;
}

.status-badge.pending {
    background-color: #FF6B6B;
    color: white;
}

/* 联系信息样式 */
.contact-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5em;
}

/* 标题样式优化 */
h2 {
    color: #333;
    margin: 40px 0 20px;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #4ECDC4, #45B7D1);
    border-radius: 3px;
}

/* 更新表格样式 */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;  /* 增加字体大小 */
}

.custom-table th,
.custom-table td {
    padding: 20px;  /* 增加单元格内边距 */
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
    color: white;
    font-size: 18px;  /* 表头字体更大 */
    font-weight: 600;
}

/* 调整进度条容器宽度 */
.custom-table td:nth-child(3) {
    width: 30%;  /* 进度条列宽度 */
}

/* 表格行悬停效果 */
.custom-table tbody tr {
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 添加表格容器以支持响应滚动 */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    padding: 10px 0;
}

/* 简化的加载动画样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-text {
    color: white;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: white;
    animation: loading 0.8s ease forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* 确保body默认可以滚动 */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* 轮播图样式 */
.slider-section {
    margin: -20px -20px 30px -20px;  /* 抵消main的padding */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slider {
    display: flex;
    width: 300%;  /* 三张图片的宽度 */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.333%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* 轮播图按钮 */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-button:hover {
    background: rgba(255,255,255,0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 轮播图指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

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

/* 添加炫酷动画效果 */

/* 1. 卡片悬浮效果 */
.card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(-20px); }
}

/* 2. 文���发光动画 */
h2 {
    position: relative;
    color: transparent;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 8s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3. 滚动显示动画 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20vh);
    visibility: hidden;
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* 4. 进度条发光效果 */
.progress-fill {
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressGlow 2s linear infinite;
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* 5. 状态标签呼吸效果 */
.status-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 6. 表格行悬浮效果 */
.custom-table tr {
    transition: all 0.3s ease;
}

.custom-table tr:hover {
    transform: scale(1.02) translateX(10px);
    background: linear-gradient(90deg, transparent, rgba(78,205,196,0.1));
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* 7. 3D按钮效果 */
button {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(2px);
}

/* 简化卡片动画效果 */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 图标样式 */
.card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #4ECDC4;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

/* 卡片标题 */
.card h3 {
    color: #333;
    margin: 15px 0;
    font-size: 1.5em;
}

/* 卡片描述文字 */
.card p {
    color: #666;
    line-height: 1.6;
}

/* 卡���容器布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 30px 0;
}

/* 简化的淡入动画 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 博客文章卡片样式 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: #4ECDC4;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

/* 技能区域样式 */
.skills-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.skill-item {
    margin: 15px 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
    border-radius: 4px;
    transition: width 1s ease;
}

/* 关于我部分样式 */
.about-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #4ECDC4;
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #4ECDC4;
}

.timeline-item {
    position: relative;
    margin: 30px 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ECDC4;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}