/* 留言板页面样式 */
.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* 留言表单 */
.message-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.message-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e88e5;
    outline: none;
}

/* 留言列表 */
.message-list h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.message-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.message-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.message-info time {
    color: #999;
    font-size: 0.9rem;
}

.message-content {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.message-actions {
    margin-bottom: 1rem;
}

.reply-btn {
    background: none;
    border: none;
    color: #1e88e5;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.reply-btn:hover {
    text-decoration: underline;
}

/* 回复样式 */
.message-replies {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

.reply-item {
    margin-top: 1rem;
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-info h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.reply-content {
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:not(:disabled):hover {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-num {
    margin: 0 1rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guestbook-container {
        padding: 1rem;
    }

    .message-replies {
        margin-left: 1rem;
    }
} 