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

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #f8f8f8;
    background-color: #000000;
    overflow-x: hidden;
    height: 100vh;
}

/* 壁纸容器 */
.wallpaper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wallpaper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #f8f8f8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    min-height: 100vh;
}

/* 页面部分 - 修复抖动问题 */
.section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* 首页样式 */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #4a90e2, #7bb3f0, #a8d0f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 16px;
    color: #a8d0f8;
    margin-bottom: 30px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #d0e0f0;
    margin-bottom: 8px;
}

.english-text {
    font-size: 14px;
    color: #a8d0f8;
    font-style: italic;
    margin-bottom: 20px;
}

/* 内容部分样式 - 统一排版 */
.section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 50px;
    text-align: center;
    color: #4a90e2;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
}

.content-text {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.text-item {
    margin-bottom: 30px;
    text-align: center;
}

.text-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #d0e0f0;
    margin-bottom: 8px;
}

.text-item .english-text {
    font-size: 14px;
    color: #a8d0f8;
    font-style: italic;
}

/* 作品网格 - 统一排版 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.work-item {
    background: rgba(26, 26, 46, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.5);
}

.work-item h3 {
    font-size: 18px;
    color: #4a90e2;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
}

.english-title {
    font-size: 14px;
    color: #7bb3f0;
    margin-bottom: 15px;
    font-style: italic;
}

.work-item p {
    font-size: 14px;
    color: #d0e0f0;
    line-height: 1.6;
    margin-bottom: 5px;
}

.work-item .english-text {
    font-size: 12px;
    color: #a8d0f8;
    font-style: italic;
    margin-bottom: 0;
}

/* 联系信息 - 统一排版 */
.contact-info {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

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

.contact-item p {
    font-size: 16px;
    color: #d0e0f0;
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-item .english-text {
    font-size: 14px;
    color: #a8d0f8;
    font-style: italic;
    margin-bottom: 0;
}

/* 版权信息 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    z-index: 1000;
}

.footer p {
    font-size: 12px;
    color: #a8d0f8;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-content {
        padding: 60px 15px 40px;
    }
    
    .hero-content {
        padding: 80px 15px 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .text-item p,
    .hero-description p,
    .contact-item p {
        font-size: 14px;
    }
    
    .english-text {
        font-size: 12px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}

/* 选择文本样式 */
::selection {
    background: rgba(74, 144, 226, 0.3);
    color: #ffffff;
}

/* 焦点样式 */
.nav-link:focus {
    outline: 2px solid rgba(74, 144, 226, 0.5);
    outline-offset: 2px;
}

/* 键盘导航样式 */
.keyboard-navigation .nav-link:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* 飘雪动画 - 简化版本 */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2147483647; /* 最高可能的z-index值 */
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.snowflake {
    position: absolute;
    color: #ffffff !important;
    font-size: 16px !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
    animation: snowfall linear infinite;
    user-select: none;
    pointer-events: none;
    z-index: 2147483647 !important;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* 确保雪花显示 */
.snow-container > div {
    color: #ffffff !important;
    font-size: 16px !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
    pointer-events: none !important;
    z-index: 2147483647 !important;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    animation: snowfall linear infinite;
    user-select: none;
}

.snowflake::before {
    content: '❄';
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: