/* 留言板模块命名空间 */
.message-board {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.message-board * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 表单容器 */
.message-board .form-container {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* 表单元素 */
.message-board .form-group {
    margin-bottom: 1rem;
}

.message-board label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message-board input,
.message-board textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.message-board input:focus,
.message-board textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 按钮 */
.message-board button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.message-board button:hover {
    background-color: #0069d9;
}

.message-board button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* 状态消息 */
.message-board .status-message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    display: none;
}

.message-board .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-board .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-board .loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-board .show {
    display: block;
}

/* 验证错误 */
.message-board .validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}