/* 通用样式 */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #222;
    color: #fff;
}

/* 顶部横幅 */
.banner-bar {
    width: 100%;
    height: 180px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.banner-title {
    font-size: 3.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px #000;
    letter-spacing: 0.2em;
}

/* 侧边栏切换按钮 (移动端) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    background: rgba(0, 150, 255, 0.7);
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

.sidebar-toggle:hover {
    background: rgba(0, 150, 255, 0.9);
}

/* 主体布局 */
.container {
    display: flex;
    margin-top: 180px;
}

/* 侧边栏 */
.sidebar {
    width: 220px;
    background: #232323;
    border-right: 1px solid #333;
    padding: 20px;
    min-height: calc(100vh - 180px);
    box-sizing: border-box;
}

/* 主内容区 */
.main {
    flex: 1;
    padding: 20px 40px;
}

/* 页面列表样式 */
ul.page-list {
    padding-left: 18px;
}

ul.page-list ul.page-list {
    margin-left: 12px;
}

/* 链接样式 */
a {
    color: #0ff;
    text-decoration: none;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 显示侧边栏切换按钮 */
    .sidebar-toggle {
        display: block;
    }
    
    /* 侧边栏默认隐藏 */
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        z-index: 999;
        transition: left 0.3s ease;
        margin-top: 180px;
        min-height: calc(100vh - 180px);
    }
    
    /* 侧边栏显示状态 */
    .sidebar.active {
        left: 0;
    }
    
    /* 主内容区调整 */
    .main {
        padding: 20px 20px;
    }
    
    /* 顶部横幅调整 */
    .banner-bar {
        height: 120px;
    }
    
    .banner-title {
        font-size: 2em;
    }
    
    .container {
        margin-top: 120px;
        display: block;
    }
}