/* 留言板容器样式 */
.message-board-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 500px;
    background-color: rgba(30, 40, 60, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 80vh;
    border: 1px solid rgba(160, 214, 255, 0.2); /* 添加浅蓝色边框 */
}

.message-board-container.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: message-pulse 1s ease-out; /* 添加脉冲动画效果 */
}

@keyframes message-pulse {
    0% { box-shadow: 0 0 0 0 rgba(160, 214, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(160, 214, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(160, 214, 255, 0); }
}

.message-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.message-board-header h3 {
    color: #a0d6ff; /* 使用浅蓝色，使标题更加突出 */
    font-size: 20px; /* 减小字体大小 */
    font-weight: 600; /* 加粗标题 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 增强文字阴影 */
    line-height: 1.2; /* 添加行高控制 */
    margin: 0;
}

.close-message-board-btn {
    background: none;
    border: none;
    color: rgba(224, 240, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-message-board-btn:hover {
    color: #e0f0ff;
    transform: scale(1.1);
}

.message-board-content {
    padding: 20px;
    color: #ffffff;
}

.message-board-intro {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.message-input-container {
    position: relative;
    margin-bottom: 20px;
}

#messageInput {
    width: 100%;
    height: 150px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(160, 214, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    resize: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#messageInput:focus {
    outline: none;
    border-color: rgba(160, 214, 255, 0.6);
    box-shadow: 0 0 10px rgba(160, 214, 255, 0.2);
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.submit-message-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-message-btn i {
    margin-right: 8px;
}

.submit-message-btn:hover {
    background: linear-gradient(135deg, #5a9ff2, #7c6cf7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.submit-message-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(108, 92, 231, 0.3);
}

/* 消息提示样式 */
.message-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(30, 40, 60, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 4px solid #4CAF50;
}

.message-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.message-notification i {
    margin-right: 10px;
    font-size: 20px;
    color: #4CAF50;
}

.message-notification.error {
    border-left-color: #f44336;
}

.message-notification.error i {
    color: #f44336;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .message-board-container {
        width: 90%;
    }

    .message-board-content {
        padding: 15px;
    }

    #messageInput {
        height: 120px;
    }
}
