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

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.nav-link:active,
.nav-link:focus,
.nav-link:visited {
    color: rgba(255, 255, 255, 0.8);
    outline: none;
}

/* 容器样式 */
.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 内容区域 */
.content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

/* 主标题样式 */
.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* 作者信息 */
.author {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* 副标题 */
.subtitle2 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 4rem;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 1);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .author {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .subtitle2 {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .main-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .author {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .subtitle2 {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}

/* 深色主题变体 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #9b59b6 100%);
    }
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .main-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .author, .subtitle {
        opacity: 1;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}
