/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #B0B3B8;
    background: #0B0E14;
    overflow-x: hidden;
    position: relative;
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.lazy.loaded {
    opacity: 1;
}

/* 确保所有图片都是响应式的 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 图片占位符，避免布局跳动 */
.work-cover, .banner-image {
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 240, 255, 0.05);
}

.work-cover img, .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 科技风背景网格 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    /* Only animate on desktop */
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Disable grid animation on mobile for better performance */
@media (max-width: 768px) {
    body::before {
        animation: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 29, 38, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 240, 255, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #00F0FF;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #B0B3B8;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #00F0FF;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* 章节样式 */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F0FF, transparent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 首页样式 */
.home {
    position: relative;
    padding-top: 150px;
    overflow: hidden;
}

/* 动态背景效果 */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(112, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
    animation: auroraMove 8s ease-in-out infinite alternate;
    z-index: -1;
    /* 使用硬件加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes auroraMove {
    0% {
        transform: translateX(0) translateY(0) scale(1);
    }
    100% {
        transform: translateX(30px) translateY(30px) scale(1.1);
    }
}

/* Optimize animations for mobile */
@media (max-width: 768px) {
    .home::before {
        /* Simplify background animation on mobile */
        animation: auroraMove 12s ease-in-out infinite alternate;
        /* Reduce opacity to improve performance */
        opacity: 0.5;
    }
    
    /* Disable some animations on mobile */
    .typing-animation {
        /* Simplify typing animation on mobile */
        animation-duration: 0.5s;
    }
    
    /* Reduce animation complexity for work items */
    .work-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Simplify hover effects on mobile */
    .social-card:hover::before {
        /* Disable rotating background on mobile */
        opacity: 0;
    }
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
    animation: fadeInLeft 0.8s ease;
}

/* 打字机效果容器 */
.typing-container {
    position: relative;
    overflow: hidden;
}

.banner-text h2 {
    font-size: 32px;
    color: #7000FF;
    margin-bottom: 10px;
    font-weight: 300;
    text-shadow: 0 0 8px rgba(112, 0, 255, 0.5);
}

.banner-text h3 {
    font-size: 48px;
    color: #00F0FF;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    overflow: hidden;
    border-right: 3px solid #00F0FF;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

/* 打字机动画 */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* 光标闪烁动画 */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00F0FF; }
}

.banner-text .subtitle {
    font-size: 18px;
    color: #B0B3B8;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

.banner-image {
    flex: 0 0 300px;
    animation: fadeInRight 0.8s ease;
}

.profile-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(0, 240, 255, 0.3);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    border-color: rgba(0, 240, 255, 0.6);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.15);
}

.tag:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(123, 104, 238, 0.2));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.6);
}

/* 作品展区样式 */
.works {
    background: transparent;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(26, 29, 38, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.3);
    color: #B0B3B8;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 200px;
    height: 200px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(26, 29, 38, 0.9);
    border-color: #00F0FF;
    color: #00F0FF;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.work-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card {
    height: 100%;
    background: #1A1D26;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: #00F0FF;
}

.work-cover {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 150px;
}

.work-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-cover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.7), rgba(112, 0, 255, 0.7));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 25px;
    background-color: rgba(26, 29, 38, 0.9);
    color: #00F0FF;
    border: 2px solid #00F0FF;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.view-btn:hover {
    background-color: #00F0FF;
    color: #0B0E14;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.work-category {
    font-size: 14px;
    color: #7b68ee;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(123, 104, 238, 0.5);
}

/* 社交聚合页样式 */
.social {
    background: transparent;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.social-card {
    background: rgba(15, 15, 35, 0.8);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.social-card:hover {
    background: rgba(26, 26, 46, 0.9);
    border-color: #00ffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.social-card > * {
    position: relative;
    z-index: 1;
}

.social-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon svg {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.social-card:hover .social-icon svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
}

.social-card h3 {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.social-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(123, 104, 238, 0.2));
    color: #00ffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(123, 104, 238, 0.4));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
}

/* 个人履历页样式 */
.resume {
    background: transparent;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.resume-left {
    background: rgba(15, 15, 35, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.resume-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section:last-child {
    margin-bottom: 0;
}

.resume-section-title {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.resume-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #7b68ee);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 600;
    color: #00ffff;
    margin-right: 10px;
    min-width: 80px;
}

.value {
    color: #b0b0b0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #00F0FF;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.1);
}

.skill-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #00F0FF;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.skill-name {
    margin: 0;
    color: inherit;
    text-shadow: inherit;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00ffff, #7b68ee);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    background: rgba(15, 15, 35, 0.8);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -36px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #00ffff, #7b68ee);
    border-radius: 50%;
    border: 3px solid rgba(15, 15, 35, 0.8);
    box-shadow: 0 0 0 2px #00ffff, 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-date {
    font-size: 14px;
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.timeline-content h4 {
    font-size: 18px;
    color: #00ffff;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.position {
    font-size: 14px;
    color: #7b68ee;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(123, 104, 238, 0.5);
}

.timeline-list {
    list-style: none;
    padding-left: 20px;
}

.timeline-list li {
    color: #b0b0b0;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.6;
}

.timeline-list li::before {
    content: '▶';
    position: absolute;
    left: -20px;
    color: #00ffff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* 联系页样式 */
.contact {
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: rgba(15, 15, 35, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b0b0b0;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.contact-item:hover {
    color: #00ffff;
    transform: translateX(5px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.contact-item i {
    font-size: 20px;
    color: #00ffff;
    width: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-form {
    background: rgba(15, 15, 35, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-size: 20px;
    color: #00ffff;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #e0e0e0;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(26, 26, 46, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00F0FF, #7000FF);
    color: #0B0E14;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    align-self: flex-start;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #7000FF, #00F0FF);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(112, 0, 255, 0.3);
    color: #0B0E14;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
.footer {
    background: rgba(15, 15, 35, 0.95);
    color: #b0b0b0;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-content {
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 50px rgba(0, 255, 255, 0.2);
}

.close {
    color: #b0b0b0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.close:hover {
    color: #00ffff;
    transform: rotate(90deg);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .resume-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 调整Tech Stack标签在中等屏幕上的布局 */
    .skills-list {
        gap: 10px;
    }
    
    .skill-item {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 255, 255, 0.15);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .banner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .banner-text h2 {
        font-size: 24px;
    }
    
    .banner-text h3 {
        font-size: 36px;
    }
    
    .banner-image {
        flex: 0 0 250px;
    }
    
    .profile-img {
        height: 250px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .home {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-text h2 {
        font-size: 20px;
    }
    
    .banner-text h3 {
        font-size: 28px;
    }
    
    .banner-text .subtitle {
        font-size: 16px;
    }
    
    .banner-image {
        flex: 0 0 200px;
    }
    
    .profile-img {
        height: 200px;
    }
    
    .resume-left,
    .resume-right .timeline-item,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* 调整Tech Stack标签在移动设备上的布局 */
    .skills-list {
        gap: 8px;
    }
    
    .skill-item {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00ffff, #7b68ee);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7b68ee, #00ffff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

/* 表单提交成功提示 */
.form-success {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(123, 104, 238, 0.1));
    color: #00ffff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.form-success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}