/* 侧边栏基础样式 - 应用于所有设备 */
#secondary {
    width: 100%;
}

.widget {
    background-color: #3a3a3a;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #4a4a4a;
}

.widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-list a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s;
}

.widget-list a:hover {
    color: #feb47b;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 修改实际的网格容器 */
    #body > div:first-child {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }
    
    /* 侧边栏从右侧fixed滑入 */
    #secondary {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #2d2d2d;
        z-index: 100; /* 设置为100避免遮挡其他元素 */
        transition: right 0.3s ease;
        padding: 20px;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    #secondary.show {
        right: 0;
    }
    
    /* 确保主内容区域填满宽度 */
    #main {
        width: 100%;
    }
    
    /* 移动端菜单按钮样式 */
    .mobile-menu-toggle {
        display: block !important;
        background-color: #4a4a4a;
        border: none;
        color: white;
        font-size: 24px;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        transition: background-color 0.3s;
        z-index: 999; /* 确保在主内容之上，但在侧边栏之下 */
        position: relative;
    }
    
    .mobile-menu-toggle:hover {
        background-color: #5a5a5a;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .header-content {
        justify-content: space-between !important;
    }
    
    #header form {
        display: none !important;
    }
}