/**
 * 留言板样式文件
 * 功能：定义留言板的视觉样式和布局
 * 主题色：#f7b645（金黄色）
 * 设计理念：简洁、美观、响应式
 */

/* 留言板容器 */
.message-board-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 留言板包装器 */
.message-board-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(247, 182, 69, 0.15);
    padding: 40px;
    border: 2px solid #f7b645;
}

/* 标题样式 */
.message-board-title {
    text-align: center;
    color: #000;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #f7b645;
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

/* 标签样式 */
.form-group label {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* 必填标识 */
.required {
    color: #f7b645;
    font-weight: bold;
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

/* 单选按钮标签 */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
    font-weight: normal;
}

/* 单选按钮输入 */
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    cursor: pointer;
    accent-color: #f7b645;
}

/* 单选按钮文字 */
.radio-text {
    user-select: none;
}

/* 输入框和选择框通用样式 */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 输入框聚焦状态 */
.form-control:focus {
    outline: none;
    border-color: #f7b645;
    box-shadow: 0 0 0 3px rgba(247, 182, 69, 0.1);
}

/* 文本域特殊样式 */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 错误提示信息 */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* 提交按钮容器 */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* 提交按钮样式 */
.submit-button {
    background-color: #f7b645;
    color: #fff;
    border: none;
    padding: 14px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 182, 69, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 按钮悬停效果 */
.submit-button:hover:not(:disabled) {
    background-color: #f5a623;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 182, 69, 0.4);
}

/* 按钮按下效果 */
.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

/* 禁用状态的按钮 */
.submit-button:disabled {
    background-color: #ddd;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* 表单提示消息 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    display: none;
}

/* 成功消息 */
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* 错误消息 */
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .message-board-wrapper {
        padding: 30px 25px;
    }
    
    .message-board-title {
        font-size: 24px;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
    .message-board-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .message-board-wrapper {
        padding: 25px 20px;
    }
    
    .message-board-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    /* 单选按钮组在移动端垂直排列 */
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .submit-button {
        width: 100%;
        padding: 12px 30px;
    }
}
