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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f5f5f5;
    padding: 20px 0;
}

/* 导航栏容器 */
.navbar {
    background-color: #ffffff00;
    width: 44%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 17, 26, 0.3);
    position: sticky;
    top: 20px;
    z-index: 1000;
}

/* 导航栏内容 */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 60px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.logo:hover {
    transform: translateY(-1px);
}

/* 头像样式 */
.logo-avatar {
    height: 43px;
    border-radius: 50%;
    border: 2px solid #64B5F6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.4);
    transition: all 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

/* ✨ 修改后：将所有悬停效果合并到这一个规则里 */
.logo:hover .logo-avatar {
    transform: scale(1.1);
    /* 放大一点 */
    border-color: #E3F2FD;
    /* 边框变得更亮 */
    box-shadow: 0 0 20px rgba(144, 202, 249, 0.8);
    /* 辉光更强 */
    transform: rotate(360deg) scale(1.1);
    box-shadow:
        0 0 30px rgba(0, 245, 255, 0.6),
        0 0 60px rgba(0, 245, 255, 0.3),
        0 0 90px rgba(0, 245, 255, 0.1);
}

/* (之前用于精确悬停的 .logo:hover .logo-avatar:hover 规则已被删除) */


/* 渐变投影描边文字 */
.logo-text {
    font-size: 21px;
    font-weight: bold;
    background: linear-gradient(135deg, #64B5F6, #90CAF9, #BBDEFB, #E3F2FD);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        1px 1px 0px rgba(100, 181, 246, 0.3),
        -1px -1px 0px rgba(100, 181, 246, 0.3),
        1px -1px 0px rgba(100, 181, 246, 0.3),
        -1px 1px 0px rgba(100, 181, 246, 0.3),
        0 0 10px rgba(100, 181, 246, 0.5);
    animation: gradientShift 3s ease-in-out infinite;
    transition: all 0.3s ease;
    line-height: 1;
}

.logo:hover .logo-text {
    text-shadow:
        1px 1px 0px rgba(144, 202, 249, 0.4),
        -1px -1px 0px rgba(144, 202, 249, 0.4),
        1px -1px 0px rgba(144, 202, 249, 0.4),
        -1px 1px 0px rgba(144, 202, 249, 0.4),
        0 0 15px rgba(144, 202, 249, 0.7);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 导航链接容器 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    display: block;
    /* 确保 transform 生效 */
}

.nav-links li a:hover {
    color: #64B5F6;
    background-color: rgba(100, 181, 246, 0.1);
    transform: translateY(-1px);
}

.nav-links li a.active {
    color: #64B5F6;
    background-color: rgba(100, 181, 246, 0.15);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
    }

    .navbar-content {
        padding: 0 20px;
    }

    .logo-avatar {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 14px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0F111A;
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 20px rgba(15, 17, 26, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        border-radius: 4px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: relative;
    }
}





/* 页面内容示例 */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: #333;
}

.content h1 {
    margin-bottom: 20px;
    color: #0F111A;
}

.content p {
    line-height: 1.6;
    margin-bottom: 15px;
}