/* --- 保持之前的 CSS 不变，只修改 .logo 相关的部分 --- */

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #6a5acd;
    --accent-gradient: linear-gradient(45deg, #6a5acd, #00d2ff);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; /*稍微调整了高度*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

/* --- 修改开始：Logo 图片样式 --- */
.nav-logo {
    height: 100px; /* 控制 Logo 高度，根据你的图片比例可以改成 40px 或 60px */
    width: auto;  /* 宽度自动，保持比例 */
    object-fit: contain;
    /* 如果你的 Logo 是黑底的但没有透明背景，可以加一点圆角 */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}
/* --- 修改结束 --- */

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.contact-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent-color);
    color: white !important;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    position: relative;
}

h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
}

#hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    margin-bottom: 4rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    margin-top: 5px;
}

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

.content-block p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #ccc;
}

.email-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 2rem;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.underline-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.email-link:hover .underline-animation {
    width: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #1a1a1a;
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }
    .nav-links a:not(.contact-btn) {
        display: none;
    }
    section {
        padding: 0 5%;
    }
    h2 {
        font-size: 2rem;
    }
    .email-link {
        font-size: 1.5rem;
    }
    /* 移动端稍微缩小一点 Logo */
    .nav-logo {
        height: 40px;
    }
}