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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #f6f6f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: grab;
}

body:active {
    cursor: grabbing;
}

/* 加载页面样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f6f6f6;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-title {
    font-size: 24px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.loader-progress-container {
    width: 300px;
    height: 2px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 1px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: #1a1a1a;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.loader-progress-text {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* 3D 场景容器 */
.scene {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#webglCanvas {
    width: 100%;
    height: 100%;
    display: block;
}



/* 导航栏 - 极简编辑风格 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 48px;
    background: transparent;
    pointer-events: auto;
}

.navbar-logo {
    font-size: 11px;
    font-weight: 300;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    border: 1px solid #aaa;
    padding: 30px 20px;
    border-radius: 5px;
}

.navbar-logo:hover {
    opacity: 0.6;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu-item {
    font-size: 11px;
    font-weight: 300;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.navbar-menu-item:hover {
    opacity: 0.5;
}

/* 移动设备导航栏 */
@media (max-width: 768px) {
    .navbar {
        padding: 24px 18px;
        gap: 32px;
    }

    .navbar-logo {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 20px 10px;
    }

    .navbar-menu {
        gap: 24px;
    }

    .navbar-menu-item {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

/* 个人介绍区域 */
.intro-section {
    position: fixed;
    top: 200px;
    left: 45px;
    z-index: 999;
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-name {
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.intro-text {
    font-size: 14px;
    font-weight: 400;
    color: #111;
    line-height: 1.6;
    margin: 0 0 16px 0;
    letter-spacing: 0.2px;
}

.intro-contact {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.2px;
}

.intro-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.intro-contact a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* 移动设备个人介绍区域 */
@media (max-width: 768px) {
    .intro-section {
        top: auto;
        bottom: 40px;
        left: auto;
        right: 20px;
        max-width: calc(100% - 40px);
        text-align: right;
    }

    .intro-name {
        font-size: 18px;
        margin-bottom: 10px;
        text-align: right;
    }

    .intro-text {
        font-size: 12px;
        margin-bottom: 12px;
        text-align: right;
    }

    .intro-contact {
        font-size: 11px;
        text-align: right;
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动设备样式 */
    .loader-title {
        font-size: 18px;
    }

    .loader-progress-container {
        width: 250px;
    }
}
