.message-form {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
}

.message-header {
    background: #15aedc;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

.message-minimize {
    cursor: pointer;
    font-size: 18px;
}

.message-content {
    padding: 15px;
}

.company-phone {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    background: #15aedc;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #1399c2;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 移动端留言触发按钮 */
.mobile-message-trigger {
    display: none;
    position: fixed;
    right: 0;
    bottom: 50px;
    background: #15aedc;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    align-items: center;
    gap: 5px;
}

.mobile-message-trigger img {
    width: 20px;
    height: 20px;
}

.mobile-message-trigger span {
    font-size: 14px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-form {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 8px 8px 0 0;
    }

    .mobile-message-trigger {
        display: flex;
    }

    /* 默认隐藏表单主体 */
    .message-header,
    .message-content {
        display: none;
    }

    /* 展开状态 */
    .message-form.expanded {
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .message-form.expanded .mobile-message-trigger {
        display: none;
    }

    .message-form.expanded .message-header,
    .message-form.expanded .message-content {
        display: block;
    }
} 