/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zen Maru Gothic', sans-serif, 'Microsoft YaHei';
}



/*自定义样式，可能经常会改*/
.url {
    color: #144384;
    font-weight: bold;
    text-decoration: none;
}

.url:hover {
    background-color: aqua;
}

.url:visited {
    color: #144384;
}

.cmd{
    background-color: rgba(255, 88, 0, 0.05);
}

.stress {
    font-weight: bold;
    background-color: #e0d8d8;
}




/*Json表格样式*/
.json-table{
    background-color: rgb(245, 245, 245);
    /*margin: 0 auto;*/
}
.json-table tr th,td{
    border: 1px solid rgb(0, 0, 0);
    text-align: center;
}




/*导航栏样式*/
/* 导航栏容器 */
#navbar-common {
    background: rgba(255,255,255,0.98);
    padding: 1rem 2rem;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 3%;
}
/* 导航logo */
.nav-logo {
    color: #666;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 40px;
}
.nav-logo::before {
    content: '☆';
    position: absolute;
    left: 0;
    color: #89c3eb;
    font-size: 1.2em;
}
/* 导航菜单容器 */
.nav-list {
    display: flex;
    gap: 2rem;
}
/* 导航链接样式 */
.nav-item {
    color: #444;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #89c3eb;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}
.nav-item:hover {
    color: #89c3eb;
}
.nav-item:hover::after {
    width: 100%;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .simple-anime-nav {
        padding: 1rem;
    }
    
    .simple-nav-menu {
        gap: 1rem;
    }
    
    .simple-nav-item {
        font-size: 1rem;
    }
}






/* 汉堡菜单按钮 */
.sidebar-toggle {
    position: absolute;
    top: 80px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar.show {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu div {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-menu div:hover {
    background: #f8f8f8;
    cursor: pointer;
}



/* 当侧边栏打开时 */
.sidebar.show  {
    margin-left: 0;
}

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

    .sidebar.show  {
        margin-left: 0;
    }
}


    /* 子菜单样式 */
    .submenu {
        display: none;
        padding-left: 15px;
    }
    
    .submenu.active {
        display: block;
    }
    
    .menu-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .menu-item.has-children::after {
        content: '▶';
        font-size: 0.8em;
        margin-left: 10px;
        transition: transform 0.3s;
    }
    
    .menu-item.has-children.open::after {
        transform: rotate(90deg);
    }
    
    .menu-item:hover {
        background: #f5f5f5;
    }
    
    /* 三级菜单缩进 */
    .submenu .submenu {
        padding-left: 25px;
    }






.section-page{
    margin: 0 5%;
    display: none;
}
.active-page {
    display: block;
}







/* footer的样式 */

footer a{
    margin: 0 15px; /* 左右间距 */
    text-decoration: none;      /*去掉下划线*/
    color: #a9a8a8; /*字体颜色*/
    transition: color 0.5s ease-in-out; /*过渡效果*/
}
footer a:hover{
    color:#89c3eb; /*悬停颜色*/
}
