/* 留言板组件样式 */

.message-board-container {
    position: fixed;
    bottom: 6.2rem;
    right: 3rem;
    z-index: 1000;
}

/* 按钮容器 */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* 动作按钮通用样式 */
.action-btn {
    width: 4.2rem;
    height: 4.2rem;
    background: #0075C1;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-btn img {
    width: 2.9rem;
    height: auto;
}

/* 回到顶部按钮 */
.top-btn {
    background-color: #0075C1;
}

/* 机器人按钮 */
.robot-btn {
    background-color: #0075C1;
}

/* 留言板样式 */
.message-board {
    position: absolute;
    bottom: 0;
    right: -450px;
    width: 25rem;
    background: #E8F1FF;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.message-board h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.message-board p {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 0.9rem;
    color: #000000;
    color: #666;
    margin-bottom: 1.2rem;
    text-align: left;
}

/* 表单样式 */
#message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 1px solid #e0e0e0;
    border-radius: 1.25rem;
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 0.88rem;
    color: #666666;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 11rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0075C1;
    box-shadow: 0 0 0 2px rgba(0, 117, 193, 0.1);
}

.form-group textarea {
    resize: none;
}

.submit-btn {
    background-color: #0075C1;
    border: none;
    padding: 10px 15px;
    border-radius: 1.25rem;
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 1.13rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-board {
        width: 280px;
        right: -310px;
    }
    
    .message-board-container {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .message-board {
        width: 250px;
        right: -280px;
    }
    
    .robot-btn {
        width: 50px;
        height: 50px;
    }
    
    .robot-btn img {
        width: 25px;
        height: 25px;
    }
}
