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

/* 页面基础样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

/* 全局背景效果 - 应用渐变和纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    background: linear-gradient(135deg, #ff0000, #00ff00, #0000ff, #ffff00);
    background-image: linear-gradient(135deg, #ff0000, #00ff00, #0000ff, #ffff00), 
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><rect width="30" height="30" fill="rgba(255,255,255,0.2)"/><circle cx="15" cy="15" r="10" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 1;
    z-index: -2;
    animation: gradientShift 10s ease infinite;
    background-size: 400% 400%, 30px 30px;
}

/* 清除body的默认背景，确保渐变效果能够显示 */
body {
    background: none;
}

/* 背景渐变动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子背景效果 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
}

/* 为不同部分添加特定的背景效果 */
section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

/* 关于我部分背景 */
#about {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px;
    padding: 60px 0;
}

/* 项目部分背景 */
#projects {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px;
    padding: 60px 0;
}

/* 联系我部分背景 */
#contact {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #about, #projects {
        margin: 10px;
        padding: 40px 0;
    }
}

/* 背景音乐控制样式 */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.music-volume {
    width: 80px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
    outline: none;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .music-control {
        bottom: 20px;
        right: 20px;
        gap: 10px;
        padding: 8px 12px;
    }
    
    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .music-volume {
        width: 60px;
    }
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 页面元素滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动效果 - 导航栏 */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

/* 导航栏链接动画 */
nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #667eea;
}

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

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

/* 按钮动画效果 */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* 图片悬停放大效果 */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 项目卡片增强动画 */
.project-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 1;
}

/* 博客文章卡片动画 */
.blog-post {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 126, 234, 0.05);
    transition: right 0.5s ease;
    z-index: -1;
}

.blog-post:hover::after {
    right: 0;
}

/* 滚动指示器 */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    z-index: -1;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 容器背景 */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

nav ul li a:hover {
    color: #667eea;
}

section {
    padding: 6rem 0 3rem;
}

#about {
    background: #fff;
}

#about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-img {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 5px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.skills {
    margin: 25px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.skill-category h5 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.skill-category ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.skill-category ul li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.experience, .education, .interests {
    margin: 30px 0;
}

.exp-item, .edu-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.exp-item:last-child, .edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.exp-item h5, .edu-item h5 {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.exp-date, .edu-date {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.interests-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interests-list li {
    background-color: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.interests-list li:hover {
    background-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* 项目部分 */
#projects {
    padding: 80px 0;
    background: #f4f4f4;
}

#projects h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#projects .project-card .project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}

#projects .project-card .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#projects .project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.project-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

.project-features li::before {
    content: "✓";
    color: #00aaff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.project-card a {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.project-card a:hover {
    background-color: #555;
}

.project-card .view-details {
    background-color: #4CAF50;
}

.project-card .view-details:hover {
    background-color: #45a049;
}

/* 博客部分 */
#blog {
    padding: 80px 0;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-search {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.blog-search input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

.blog-search button {
    padding: 12px 20px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-search button:hover {
    background-color: #5a6fd8;
}

.blog-categories {
    flex: 0 0 250px;
}

.blog-categories h3 {
    margin-bottom: 15px;
    color: #333;
}

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

.blog-categories li {
    margin-bottom: 10px;
}

.blog-categories a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-categories a:hover {
    color: #667eea;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-header {
    margin-bottom: 20px;
}

.post-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.8rem;
}

.post-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.post-excerpt {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #666;
}

.read-more {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #5a6fd8;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pagination-btn:hover {
    background-color: #f0f0f0;
}

.pagination-btn.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-search {
        order: 2;
    }
    
    .blog-categories {
        order: 1;
        flex: 1;
    }
}

/* 作品集部分 */
#portfolio {
    padding: 80px 0;
}

.portfolio-header {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.filter-btn:hover {
    background-color: #f0f0f0;
}

.filter-btn.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 126, 234, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.overlay-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.view-project {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-project:hover {
    background-color: #f0f0f0;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
}

.portfolio-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 响应式设计 - 作品集 */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 项目详细页面 */
#project-detail {
    padding: 80px 0;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-header h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-url {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.visit-site {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.visit-site:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.project-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-intro, .project-features, .project-technologies, .project-screenshots, .project-background, .project-challenges, .project-results, .project-timeline, .project-summary {
    margin-bottom: 40px;
}

.project-content h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.project-intro p, .project-features p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    color: #666;
    line-height: 2;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.project-features li::before {
    content: "\2713"; /* 对勾符号 */
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: #667eea;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.screenshots-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.screenshots-grid img:hover {
    transform: scale(1.05);
}

/* 响应式设计 - 项目详细页面 */
@media (max-width: 768px) {
    #project-detail {
        padding: 60px 0;
    }
    
    .project-header h2 {
        font-size: 2rem;
    }
    
    .project-content {
        padding: 25px;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-tags {
        gap: 10px;
    }
    
    .tech-tag {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

#contact {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#contact .container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#contact h2 {
    margin-bottom: 50px;
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(102, 126, 234, 0.05);
}

.contact-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
}

.contact-details h3 {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #4a5568;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    color: #4a5568;
    background-color: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #contact h2 {
        font-size: 2rem;
    }
}

/* 页面底部样式 - 添加纹理和增强对比度 */
footer {
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(51, 51, 51, 1) 100%);
    background-image: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(51, 51, 51, 1) 100%), 
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.03)"/><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="75" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 1rem;
    }

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