.drawer-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    transition: background-color 0.3s;
    z-index: 1000;
}

.drawer-toggle:hover {
    background-color: #45a049;
}

.drawer {
    position: fixed;
    top: 0;
    right: -800px; /* 初始隐藏 */
    width: 800px;
    height: 100%;
    background-color: #333;
    color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    right: 0; /* 抽屉滑出 */
}

/* 抽屉头部 */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #444;
    border-bottom: 1px solid #555;
    font-size: 18px;
}

.drawer-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff6b6b;
}

#discussion-frame {
    flex-grow: 1;
}