/* styles.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding-top: 60px;
}

.sidebar.active {
    right: 0;
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-menu li {
    margin: 12px 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 12px;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(8px);
}

.nav-menu .active {
    background: var(--secondary-color);
    color: white;
}

main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin: 12px 8px 0 0;
    transition: all 0.2s ease;
}

.link-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

footer {
    text-align: center;
    padding: 24px;
    background: white;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .toggle-btn {
        top: 12px;
        right: 12px;
        padding: 10px 16px;
    }
}
/* styles.css */
/* 通用样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    transition: margin 0.3s;
}

/* 侧边栏样式 */
#sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1000;
    padding: 20px;
}

#sidebar.active {
    right: 0;
}

/* 按钮样式 */
.toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-btn:hover {
    background: #0056b3;
}

/* 导航菜单 */
.nav-menu {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.nav-menu li {
    margin: 15px 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* 内容区域 */
main {
    margin: 80px 30px 30px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #sidebar {
        width: 80%;
        right: -80%;
    }
    
    .toggle-btn {
        top: 15px;
        right: 15px;
        padding: 10px;
    }
}
