/* ===== 导航栏 ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* 网站标题 - 金色流光渐变 */
.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #d4a017, #f5d76e, #d4a017, #f5d76e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldFlow 4s ease infinite;
    cursor: default;
}

/* 导航栏左侧（标题 + 暗夜按钮） */
.nav-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 导航栏右侧 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 暗夜模式按钮 */
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-btn .icon-sun,
.theme-btn .icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-btn .icon-moon {
    opacity: 0;
    transform: scale(0.5);
}

/* 暗夜模式时切换图标 */
.dark-mode .theme-btn .icon-sun {
    opacity: 0;
    transform: scale(0.5);
}

.dark-mode .theme-btn .icon-moon {
    opacity: 1;
    transform: scale(1);
}

.dark-mode .theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
}

/* 汉堡按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span + span {
    margin-top: 5px;
}

/* 汉堡按钮激活态 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
