/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fff5f8;
    color: #333;
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.history-panel {
    width: 25%;
    background-color: #ffe4e9;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.history-panel h2 {
    color: #d42f53;
    font-size: 20px;
    margin-bottom: 10px;
}

#postList {
    list-style: none;
    padding: 0;
}

#postList li {
    background: #fff;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ff6b81;
}

#postList button {
    background-color: #ff6b81;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#postList button:hover {
    background-color: #d42f53;
}

/* 主体内容 */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content h1 {
    color: #d42f53;
    font-size: 28px;
}

#searchBox {
    width: 60%;
    padding: 10px;
    border: 2px solid #ff6b81;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

.text-area-container {
    width: 70%;
    margin-bottom: 20px;
    text-align: center;
}

.text-area-container h2 {
    color: #d42f53;
    font-size: 18px;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 2px solid #ff6b81;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    background: #fff;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #FF2D55;
    color: white;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: #E60033;
    transform: scale(1.05);
}

.delete-btn {
    background-color: #FF3B30;
    margin-left: 10px;
}

.delete-btn:hover {
    background-color: #D32F2F;
}