/* ===== 重置导航栏默认样式 ===== */
#navigator {
    position: fixed;
    top: 0;
    left: -300px; /* 完全隐藏在左侧 */
    width: 280px;
    height: 100vh;
    background: #2c3e50;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 80px 0 20px 0;
    overflow-y: auto;
    display: block !important;
}

/* 菜单激活状态 */
#navigator.menu-active {
    left: 0;
}

/* ===== 汉堡菜单按钮 ===== */
.menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: transparent !important;
    color: white;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

/* 菜单激活时的关闭按钮样式 */
body.menu-active .menu-toggle {
    left: 300px; /* 跟随菜单移动 */
    background: #e74c3c;
}

/* ===== 导航菜单样式 ===== */
#navList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#navList li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

#navList li a {
    display: block;
    color: #ecf0f1 !important;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

#navList li a:hover {
    background: #34495e;
    color: #1abc9c !important;
    padding-left: 35px;
}

/* ===== 确保博客内容始终居中 ===== */
#home {
    width: 100%;
    max-width: 1200px; /* 控制最大宽度 */
    margin: 0 auto !important; /* 强制居中 */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    left: 0 !important;
    transition: all 0.3s ease;
}

/* 当菜单激活时，为内容添加半透明遮罩 */
body.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    #navigator {
        width: 250px;
        left: -250px;
    }
    
    body.menu-active .menu-toggle {
        left: 270px;
    }
    
    #home {
        padding: 15px;
    }
}

.announcement-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tech-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
    margin: 2px;
}





/* 博客园导航菜单全面透明化 */
#navigator #navList * {
    background: transparent !important;
    border: none !important;
}

/* 单独设置链接文字的默认和悬停颜色 */
#navigator #navList a {
    color: #ecf0f1 !important; /* 一种柔和的浅灰色，比纯白色更柔和 */
}

#navigator #navList a:hover {
    color: #1abc9c !important; /* 悬停时变换一个亮色，增加交互感 */
    text-decoration: none !important;
}